MEDMEM.MED Class Reference

#include <MEDMEM_Med.hxx>


Public Member Functions

 MED ()
 MED (driverTypes driverType, const string &fileName)
 ~MED ()
void addField (FIELD_ *const ptrField) throw (MED_EXCEPTION)
void addMesh (MESH *const ptrMesh) throw (MED_EXCEPTION)
int addDriver (driverTypes driverType, const string &fileName, MED_EN::med_mode_acces access=MED_EN::MED_REMP)
int addDriver (GENDRIVER &driver)
void rmDriver (int index=0) throw (MEDEXCEPTION)
void readFileStruct (int index=0) throw (MEDEXCEPTION)
void read (int index=0) throw (MEDEXCEPTION)
void writeFrom (int index=0) throw (MEDEXCEPTION)
void write (int index=0) throw (MEDEXCEPTION)
int getNumberOfMeshes (void) const
int getNumberOfFields (void) const
void getMeshNames (string *meshNames) const throw (MEDEXCEPTION)
deque< string > getMeshNames () const
MESHgetMesh (const string &meshName) const throw (MEDEXCEPTION)
MESHgetMesh (const FIELD_ *const field) const throw (MEDEXCEPTION)
void getFieldNames (string *fieldNames) const throw (MEDEXCEPTION)
deque< string > getFieldNames () const
deque< DT_IT_getFieldIteration (const string &fieldName) const throw (MEDEXCEPTION)
FIELD_getField (const string &fieldName, const int dt, const int it) const throw (MEDEXCEPTION)
template<class T>
FIELD< T > * getFieldT (const string &fieldName, const int dt, const int it) const throw (MEDEXCEPTION)
FIELD_getField2 (const string &fieldName, double time, int it=0) const throw (MEDEXCEPTION)
const map< MED_EN::medEntityMesh,
SUPPORT * > & 
getSupports (const string &meshName) const throw (MEDEXCEPTION)
SUPPORTgetSupport (const string &meshName, MED_EN::medEntityMesh entity) const throw (MEDEXCEPTION)
void updateSupport ()

Private Attributes

map< MESH_NAME_, MESH * > _meshes
map< FIELD_NAME_, MAP_DT_IT__fields
map< FIELD_ *, MESH_NAME__meshName
map< MESH_NAME_, map< MED_EN::medEntityMesh,
SUPPORT * > > 
_support
vector< GENDRIVER * > _drivers

Friends

class MED_MED_RDONLY_DRIVER21
class MED_MED_WRONLY_DRIVER21
class MED_MED_RDWR_DRIVER21
class MED_MED_RDONLY_DRIVER22
class MED_MED_WRONLY_DRIVER22
class MED_MED_RDWR_DRIVER22


Detailed Description

This class is use to group together some MESH, SUPPORT and FIELD objects.


Constructor & Destructor Documentation

MEDMEM.MED.MED  ) 
 

MEDMEM.MED.MED driverTypes  driverType,
const string &  fileName
 

MEDMEM.MED.~MED  ) 
 


Member Function Documentation

void MEDMEM.MED.addField FIELD_ *const   ptrField  )  throw (MED_EXCEPTION)
 

void MEDMEM.MED.addMesh MESH *const   ptrMesh  )  throw (MED_EXCEPTION)
 

int MEDMEM.MED.addDriver driverTypes  driverType,
const string &  fileName,
MED_EN::med_mode_acces  access = MED_EN::MED_REMP
 

int MEDMEM.MED.addDriver GENDRIVER driver  ) 
 

void MEDMEM.MED.rmDriver int  index = 0  )  throw (MEDEXCEPTION)
 

void MEDMEM.MED.readFileStruct int  index = 0  )  throw (MEDEXCEPTION)
 

void MEDMEM.MED.read int  index = 0  )  throw (MEDEXCEPTION)
 

void MEDMEM.MED.writeFrom int  index = 0  )  throw (MEDEXCEPTION)
 

void MEDMEM.MED.write int  index = 0  )  throw (MEDEXCEPTION)
 

int MEDMEM.MED.getNumberOfMeshes void   )  const
 

int MEDMEM.MED.getNumberOfFields void   )  const
 

void MEDMEM.MED.getMeshNames string *  meshNames  )  const throw (MEDEXCEPTION)
 

deque<string> MEDMEM.MED.getMeshNames  )  const
 

MESH* MEDMEM.MED.getMesh const string &  meshName  )  const throw (MEDEXCEPTION)
 

MESH* MEDMEM.MED.getMesh const FIELD_ *const   field  )  const throw (MEDEXCEPTION)
 

void MEDMEM.MED.getFieldNames string *  fieldNames  )  const throw (MEDEXCEPTION)
 

deque<string> MEDMEM.MED.getFieldNames  )  const
 

deque<DT_IT_> MEDMEM.MED.getFieldIteration const string &  fieldName  )  const throw (MEDEXCEPTION)
 

FIELD_* MEDMEM.MED.getField const string &  fieldName,
const int  dt,
const int  it
const throw (MEDEXCEPTION)
 

template<class T>
FIELD<T>* MEDMEM.MED.getFieldT const string &  fieldName,
const int  dt,
const int  it
const throw (MEDEXCEPTION)
 

FIELD_* MEDMEM.MED.getField2 const string &  fieldName,
double  time,
int  it = 0
const throw (MEDEXCEPTION)
 

const map<MED_EN::medEntityMesh,SUPPORT *>& MEDMEM.MED.getSupports const string &  meshName  )  const throw (MEDEXCEPTION)
 

SUPPORT* MEDMEM.MED.getSupport const string &  meshName,
MED_EN::medEntityMesh  entity
const throw (MEDEXCEPTION)
 

void MEDMEM.MED.updateSupport  ) 
 


Friends And Related Function Documentation

friend class MED_MED_RDONLY_DRIVER21 [friend]
 

friend class MED_MED_WRONLY_DRIVER21 [friend]
 

friend class MED_MED_RDWR_DRIVER21 [friend]
 

friend class MED_MED_RDONLY_DRIVER22 [friend]
 

friend class MED_MED_WRONLY_DRIVER22 [friend]
 

friend class MED_MED_RDWR_DRIVER22 [friend]
 


Field Documentation

map<MESH_NAME_,MESH*> MEDMEM.MED._meshes [private]
 

map<FIELD_NAME_,MAP_DT_IT_> MEDMEM.MED._fields [private]
 

map<FIELD_ *, MESH_NAME_> MEDMEM.MED._meshName [private]
 

map< MESH_NAME_, map < MED_EN::medEntityMesh, SUPPORT * > > MEDMEM.MED._support [private]
 

vector<GENDRIVER *> MEDMEM.MED._drivers [private]