Version: 5.1.6

Med_Gen_i Class Reference

#include <Med_Gen_i.hxx>

Inheritance diagram for Med_Gen_i:
Inheritance graph

Public Member Functions

 Med_Gen_i (CORBA::ORB_ptr orb, PortableServer::POA_ptr poa, PortableServer::ObjectId *contId, const char *instanceName, const char *interfaceName)
virtual ~Med_Gen_i ()
SALOME_MED::MESH_ptr readMeshInFile (const char *fileName, const char *studyName, const char *meshName) throw (SALOME::SALOME_Exception)
SALOME_MED::FIELD_ptr readFieldInFile (const char *fileName, const char *studyName, const char *fieldName, CORBA::Long ordre, CORBA::Long iter) throw (SALOME::SALOME_Exception)
SALOME_MED::MED_ptr readStructFile (const char *fileName, const char *studyName) throw (SALOME::SALOME_Exception)
void readStructFileWithFieldType (const char *fileName, const char *studyName) throw (SALOME::SALOME_Exception)
char * ComponentDataType ()
virtual Engines::Component_ptr GetComponentInstance ()

Static Public Member Functions

static Med_Gen_iGetMEDGen ()
static SALOME_MED::MED_ptr GetMED (SALOMEDS::SComponent_ptr theStudy)
static
PortableServer::ServantBase_var 
GetServant (CORBA::Object_ptr theObject)
template<class T >
static T DownCast (CORBA::Object_ptr theArg)

Private Member Functions

SALOMEDS::Study_var studyName2Study (const char *studyName) throw (SALOME::SALOME_Exception)
void addInStudy (SALOMEDS::Study_var myStudy) throw (SALOME::SALOME_Exception)

Private Attributes

bool _duringLoad

Static Private Attributes

static Med_Gen_i_MEDGen = 0

Constructor & Destructor Documentation

Med_Gen_i::Med_Gen_i ( CORBA::ORB_ptr  orb,
PortableServer::POA_ptr  poa,
PortableServer::ObjectId *  contId,
const char *  instanceName,
const char *  interfaceName 
)

default constructor: not for use

standard constructor

References _duringLoad, _MEDGen, and MESSAGE.

Med_Gen_i::~Med_Gen_i (  )  [virtual]

Destructor

References MESSAGE.


Member Function Documentation

SALOMEDS::Study_var Med_Gen_i::studyName2Study ( const char *  studyName  )  throw (SALOME::SALOME_Exception) [private]

private method : change a study name in SALOMEDS.Study_var

void Med_Gen_i::addInStudy ( SALOMEDS::Study_var  myStudy  )  throw (SALOME::SALOME_Exception) [private]

private method : add Med component in Study (Not MedGen ???)

References MESSAGE.

SALOME_MED::MESH_ptr Med_Gen_i::readMeshInFile ( const char *  fileName,
const char *  studyName,
const char *  meshName 
) throw (SALOME::SALOME_Exception)
SALOME_MED::FIELD_ptr Med_Gen_i::readFieldInFile ( const char *  fileName,
const char *  studyName,
const char *  fieldName,
CORBA::Long  ordre,
CORBA::Long  iter 
) throw (SALOME::SALOME_Exception)
SALOME_MED::MED_ptr Med_Gen_i::readStructFile ( const char *  fileName,
const char *  studyName 
) throw (SALOME::SALOME_Exception)

Lit tous les objets contenus dans un fichier med et les lit en memoire

References Med_Gen_test.fileName, MEDMEM.MED_i.init(), MEDMEM.MED_DRIVER, and MESSAGE.

void Med_Gen_i::readStructFileWithFieldType ( const char *  fileName,
const char *  studyName 
) throw (SALOME::SALOME_Exception)

Prepare un Maillage sans le lire en memoire avec stokage dans l'etude des champs avec leur type

References MEDMEM.MED_i.addInStudy(), Med_Gen_test.fileName, MEDMEM.MED_i.initWithFieldType(), MEDMEM.MED_DRIVER, and MESSAGE.

static Med_Gen_i* Med_Gen_i.GetMEDGen (  )  [static]
static SALOME_MED::MED_ptr Med_Gen_i.GetMED ( SALOMEDS::SComponent_ptr  theStudy  )  [static]

Reimplemented from Med_Gen_Driver_i.

PortableServer::ServantBase_var Med_Gen_i::GetServant ( CORBA::Object_ptr  theObject  )  [static]

GetServant [ static ]

Get servant of the CORBA object

References _MEDGen, and NULL.

template<class T >
static T Med_Gen_i.DownCast ( CORBA::Object_ptr  theArg  )  [static]
char * Med_Gen_i::ComponentDataType (  ) 

References MESSAGE.

Engines::Component_ptr Med_Gen_i::GetComponentInstance (  )  [virtual]

from Driver

Implements Med_Gen_Driver_i.


Field Documentation

Med_Gen_i * Med_Gen_i::_MEDGen = 0 [static, private]
bool Med_Gen_i._duringLoad [private]