Query methods
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] |
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.