Query methods

Functions

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
MESHMEDMEM::MED::getMesh (const string &meshName) const throw (MEDEXCEPTION)
MESHMEDMEM::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)
SUPPORTMEDMEM::MED::getSupport (const string &meshName, MED_EN::medEntityMesh entity) const throw (MEDEXCEPTION)

Detailed Description

These methods enable the user to retrieve information about a MED file structure, i.e. the meshes, supports and fields that it contains.


Function Documentation

int MED::getNumberOfMeshes ( void   )  const [inherited]

Gets the number of MESH objects.

int MED::getNumberOfFields ( void   )  const [inherited]

Gets the number of FIELD objects.

void MED::getMeshNames ( string *  meshNames  )  const throw (MEDEXCEPTION) [inherited]

Gets the names of all MESH objects.

meshNames is an in/out argument.

It is a string array of size the number of MESH objects. It must be allocated before calling this method. All names are put in it.

deque< string > MED::getMeshNames (  )  const [inherited]

Gets the names of all MESH objects.

Returns a deque<string> object which contain the name of all MESH objects.

MESH * MED::getMesh ( const string &  meshName  )  const throw (MEDEXCEPTION) [inherited]

Returns a reference to the MESH object named meshName.

MESH * MED::getMesh ( const FIELD_ *const   field  )  const throw (MEDEXCEPTION) [inherited]
void MED::getFieldNames ( string *  fieldNames  )  const throw (MEDEXCEPTION) [inherited]

Gets the names of all FIELD objects.

fieldNames is an in/out argument.

It is an array of string of size the number of FIELD objects. It must be allocated before calling this method. All names are put in it.

deque< string > MED::getFieldNames (  )  const [inherited]

Gets the names of all FIELD objects.

Returns a deque<string> object which contain the name of all FIELD objects.

deque< DT_IT_ > MED::getFieldIteration ( const string &  fieldName  )  const throw (MEDEXCEPTION) [inherited]

Returns a deque<DT_IT_> which contain all iteration step for the FIELD identified by its name. DT_IT_ definition is

typedef struct { int dt; int it; } DT_IT_;

dt represents the time iteration number, while it represents the inner iteration number.

FIELD_ * MED::getField ( const string &  fieldName,
const int  dt = MED_NOPDT,
const int  it = MED_NOPDT 
) const throw (MEDEXCEPTION) [inherited]

Returns a reference to the FIELD object named fieldName with time step number dt and order number it.

References MEDMEM::DT_IT_::dt, and MEDMEM::DT_IT_::it.

SUPPORT * MED::getSupport ( const string &  meshName,
MED_EN::medEntityMesh  entity 
) const throw (MEDEXCEPTION) [inherited]

Returns a reference to the SUPPORT object on all elements of entity for the MESH named meshName.

Generated on Tue Jul 27 22:08:45 2010 for Med Memory Users' Guide by  doxygen 1.6.3