Version: 6.3.1
Public Member Functions | Protected Attributes

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, const string name="") throw (SALOME::SALOME_Exception)
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::GMESH_ptr getMeshByName (const char *meshName) throw (SALOME::SALOME_Exception)
SALOME_MED::GMESH_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::GMESH_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)

Protected Attributes

MEDFILEBROWSER _med
map< string,::MEDMEM::GMESH * > _medmem_meshes
vector< ::MEDMEM::FIELD_ * > _medmem_fields
string _medId
map< string,
SALOME_MED::GMESH_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 ( )

Member Function Documentation

void MEDMEM.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 MEDMEM.MED_i.getSupport ( string  meshName,
MED_EN::medEntityMesh  entity,
const string  name = "" 
) throw (SALOME::SALOME_Exception)
CORBA::Long MED_i::getNumberOfMeshes ( void  ) throw (SALOME::SALOME_Exception)
CORBA::Long MED_i::getNumberOfFields ( void  ) throw (SALOME::SALOME_Exception)
SALOME_TYPES::ListOfString * MED_i::getMeshNames ( ) throw (SALOME::SALOME_Exception)

CORBA: Accessor for meshes names

References MESSAGE, batchmode_medcorba_test.nbMeshes, and MEDMEM.MEDEXCEPTION.what().

SALOME_TYPES::ListOfString * MED_i::getFieldNames ( ) throw (SALOME::SALOME_Exception)

CORBA: Accessor for fields names

References MESSAGE, batchmode_medcorba_test.nbFields, and MEDMEM.MEDEXCEPTION.what().

SALOME_MED::GMESH_ptr MED_i::getMeshByName ( const char *  meshName) throw (SALOME::SALOME_Exception)
SALOME_MED::GMESH_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)
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, 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, 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::Long MED_i::addDriver ( SALOME_MED::medDriverTypes  driverType,
const char *  fileName 
) throw (SALOME::SALOME_Exception)
void MED_i::rmDriver ( CORBA::Long  i) throw (SALOME::SALOME_Exception)
void MED_i::readFileStruct ( CORBA::Long  i) throw (SALOME::SALOME_Exception)
void MED_i::writeFrom ( CORBA::Long  i) throw (SALOME::SALOME_Exception)
void MED_i::write ( CORBA::Long  i) throw (SALOME::SALOME_Exception)
void MED_i::addMesh ( SALOME_MED::GMESH_ptr  ptrMesh) throw (SALOME::SALOME_Exception)
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)

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


Field Documentation

map<string, ::MEDMEM::GMESH* > MEDMEM.MED_i._medmem_meshes [protected]
vector< ::MEDMEM::FIELD_* > MEDMEM.MED_i._medmem_fields [protected]
string MEDMEM.MED_i._medId [protected]
map<string,SALOME_MED::GMESH_ptr> MEDMEM.MED_i._meshes [protected]
map<string,map<MED_EN::medEntityMesh,SALOME_MED::SUPPORT_ptr> > MEDMEM.MED_i._supports [protected]
map<string,MAP_IOR_DT_IT_> MEDMEM.MED_i._fields [protected]
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS