Version: 5.1.6

MEDMEM.MED_i Class Reference

#include <MEDMEM_Med_i.hxx>

Inheritance diagram for MEDMEM.MED_i:
Inheritance graph

Public Member Functions

 MED_i ()
 ~MED_i ()
void init (SALOMEDS::Study_ptr myStudy, driverTypes driverType, const string &fileName)
void initWithFieldType (SALOMEDS::Study_ptr myStudy, driverTypes driverType, const string &fileName, bool persistence=false)
void addInStudy (SALOMEDS::Study_ptr myStudy, SALOME_MED::MED_ptr myIor, SALOMEDS::SComponent_ptr mySComp, const char *medObjName) throw (SALOME::SALOME_Exception, SALOMEDS::StudyBuilder::LockProtection)
SALOME_MED::SUPPORT_ptr getSupport (string meshName, MED_EN::medEntityMesh entity) throw (SALOME::SALOME_Exception)
 Return support.
CORBA::Long getNumberOfMeshes () throw (SALOME::SALOME_Exception)
CORBA::Long getNumberOfFields () throw (SALOME::SALOME_Exception)
SALOME_TYPES::ListOfString * getMeshNames () throw (SALOME::SALOME_Exception)
SALOME_TYPES::ListOfString * getFieldNames () throw (SALOME::SALOME_Exception)
SALOME_MED::MESH_ptr getMeshByName (const char *meshName) throw (SALOME::SALOME_Exception)
SALOME_MED::MESH_ptr getMesh (SALOME_MED::FIELD_ptr fieldPtr) throw (SALOME::SALOME_Exception)
CORBA::Long getFieldNumberOfIteration (const char *fieldName) throw (SALOME::SALOME_Exception)
SALOME_TYPES::ListOfLong * getFieldIteration (const char *fieldName, CORBA::Long i) throw (SALOME::SALOME_Exception)
SALOME_TYPES::ListOfLong * getFieldIterations (const char *fieldName) throw (SALOME::SALOME_Exception)
SALOME_MED::FIELD_ptr getField (const char *fieldName, CORBA::Long pasTemps, CORBA::Long numOrdre) throw (SALOME::SALOME_Exception)
CORBA::Long addDriver (SALOME_MED::medDriverTypes driverType, const char *fileName) throw (SALOME::SALOME_Exception)
void rmDriver (CORBA::Long i) throw (SALOME::SALOME_Exception)
void readFileStruct (CORBA::Long i) throw (SALOME::SALOME_Exception)
void writeFrom (CORBA::Long i) throw (SALOME::SALOME_Exception)
void write (CORBA::Long i) throw (SALOME::SALOME_Exception)
void addMesh (SALOME_MED::MESH_ptr ptrMesh) throw (SALOME::SALOME_Exception)
void addField (SALOME_MED::FIELD_ptr ptrField) throw (SALOME::SALOME_Exception)
void addInStudy (SALOMEDS::Study_ptr myStudy, SALOME_MED::MED_ptr myIor) throw (SALOME::SALOME_Exception, SALOMEDS::StudyBuilder::LockProtection)

Data Fields

::MEDMEM::MED_med
string _medId
map< string, SALOME_MED::MESH_ptr > _meshes
map< string, map
< MED_EN::medEntityMesh,
SALOME_MED::SUPPORT_ptr > > 
_supports
map< string, MAP_IOR_DT_IT__fields

Constructor & Destructor Documentation

MED_i::MED_i (  ) 

Default constructor

MED_i::~MED_i (  ) 

Destructor


Member Function Documentation

void MED_i::init ( SALOMEDS::Study_ptr  myStudy,
driverTypes  driverType,
const string &  fileName 
)
void MED_i::initWithFieldType ( SALOMEDS::Study_ptr  myStudy,
driverTypes  driverType,
const string &  fileName,
bool  persistence = false 
)
void MED_i::addInStudy ( SALOMEDS::Study_ptr  myStudy,
SALOME_MED::MED_ptr  myIor,
SALOMEDS::SComponent_ptr  medfather,
const char *  fileName 
) throw (SALOME::SALOME_Exception, SALOMEDS::StudyBuilder::LockProtection)

CORBA: Add Med object in Study with a name medObjName

FOR PERSISTANCE: if fileName is NULL string, looks for a SObject with a suitable name and bad IOR and update the IOR

References ASSERT, Med_Gen_test.fileName, init, MEDCouplingCorbaSwigTestClt.ior, Med_Gen_test.medObj, MESSAGE, medClient_test.name, and TestMedCorba1.orb.

SALOME_MED::SUPPORT_ptr MED_i::getSupport ( string  meshName,
MED_EN::medEntityMesh  entity 
) throw (SALOME::SALOME_Exception)

Return support.

Parameters:
meshName - name of the mesh the suppotr belongs to
entity - support entity
Return values:
SALOME_MED.SUPPORT_ptr - found support

Raises if support not found

References med_opsupp_test.entity, MED_EXCEPTION, and Med_Gen_test.meshName.

CORBA::Long MED_i::getNumberOfMeshes ( void   )  throw (SALOME::SALOME_Exception)

CORBA: Accessor for Number of meshes

References MEDMEM.MED_i._med, MEDMEM.MED.getNumberOfMeshes(), MESSAGE, NULL, and MEDMEM.MEDEXCEPTION.what().

CORBA::Long MED_i::getNumberOfFields ( void   )  throw (SALOME::SALOME_Exception)

CORBA: Accessor for Number of fields

References MEDMEM.MED_i._med, MEDMEM.MED.getNumberOfFields(), MESSAGE, NULL, and MEDMEM.MEDEXCEPTION.what().

SALOME_TYPES::ListOfString * MED_i::getMeshNames (  )  throw (SALOME::SALOME_Exception)
SALOME_TYPES::ListOfString * MED_i::getFieldNames (  )  throw (SALOME::SALOME_Exception)
SALOME_MED::MESH_ptr MED_i::getMeshByName ( const char *  meshName  )  throw (SALOME::SALOME_Exception)

CORBA: Accessor for a specific mesh

References MED_test2.mesh, Med_Gen_test.meshName, MESSAGE, NULL, and MEDMEM.MEDEXCEPTION.what().

SALOME_MED::MESH_ptr MED_i::getMesh ( SALOME_MED::FIELD_ptr  fieldPtr  )  throw (SALOME::SALOME_Exception)
CORBA::Long MED_i::getFieldNumberOfIteration ( const char *  fieldName  )  throw (SALOME::SALOME_Exception)

CORBA: Accessor for Number of iteration of a given field by its name.

References Med_Gen_test.fieldName, MESSAGE, NULL, and MEDMEM.MEDEXCEPTION.what().

SALOME_TYPES::ListOfLong * MED_i::getFieldIteration ( const char *  fieldName,
CORBA::Long  i 
) throw (SALOME::SALOME_Exception)

CORBA: Accessor for the Corba equivalent DT_IT_ (see MEDMEM direcrtory) of a given field by its name and its number (sequence of two long integers).

References Med_Gen_test.fieldName, MESSAGE, NULL, and MEDMEM.MEDEXCEPTION.what().

SALOME_TYPES::ListOfLong * MED_i::getFieldIterations ( const char *  fieldName  )  throw (SALOME::SALOME_Exception)

CORBA: Accessor for the list of Corba equivalent DT_IT_ (see MEDMEM direcrtory) of a given field by its name (sequence of two by iteration number long integers).

References Med_Gen_test.fieldName, medClient_test.index, MESSAGE, NULL, test_NonCoincidentDEC.size, and MEDMEM.MEDEXCEPTION.what().

SALOME_MED::FIELD_ptr MED_i::getField ( const char *  fieldName,
CORBA::Long  pasTemps,
CORBA::Long  numOrdre 
) throw (SALOME::SALOME_Exception)

CORBA: Accessor for a specific field

References MEDMEM.DT_IT_.dt, Med_Gen_test.fieldName, and MEDMEM.DT_IT_.it.

CORBA::Long MED_i::addDriver ( SALOME_MED::medDriverTypes  driverType,
const char *  fileName 
) throw (SALOME::SALOME_Exception)

CORBA: Accessor for a specific field

References convertIdlDriverToMedDriver(), Med_Gen_test.fileName, MESSAGE, NULL, and MEDMEM.MEDEXCEPTION.what().

void MED_i::rmDriver ( CORBA::Long  i  )  throw (SALOME::SALOME_Exception)

CORBA: relase the driver (mandatory)

References MESSAGE, NULL, and MEDMEM.MEDEXCEPTION.what().

void MED_i::readFileStruct ( CORBA::Long  i  )  throw (SALOME::SALOME_Exception)

CORBA: read med objects relations

References MESSAGE, NULL, and MEDMEM.MEDEXCEPTION.what().

void MED_i::writeFrom ( CORBA::Long  i  )  throw (SALOME::SALOME_Exception)

CORBA: write specifics objects f

References MESSAGE, NULL, and MEDMEM.MEDEXCEPTION.what().

void MED_i::write ( CORBA::Long  i  )  throw (SALOME::SALOME_Exception)

CORBA: write objects

References MESSAGE, NULL, and MEDMEM.MEDEXCEPTION.what().

void MED_i::addMesh ( SALOME_MED::MESH_ptr  ptrMesh  )  throw (SALOME::SALOME_Exception)

CORBA: Add Mesh in Med objects

References ASSERT, med_test1.end, MED_test2.mesh, MEDMEM.MESH_i.meshMap, MESSAGE, NULL, and MEDMEM.MEDEXCEPTION.what().

void MED_i::addField ( SALOME_MED::FIELD_ptr  ptrField  )  throw (SALOME::SALOME_Exception)
void MED_i::addInStudy ( SALOMEDS::Study_ptr  myStudy,
SALOME_MED::MED_ptr  myIor 
) throw (SALOME::SALOME_Exception, SALOMEDS::StudyBuilder::LockProtection)

CORBA: Add Med object in Study

References ASSERT, init, MESSAGE, and TestMedCorba1.orb.


Field Documentation

map<string,SALOME_MED::MESH_ptr> MEDMEM.MED_i._meshes
map<string,map<MED_EN::medEntityMesh,SALOME_MED::SUPPORT_ptr> > MEDMEM.MED_i._supports