Version: 6.5.0
Functions
Query methods

Functions

std::string MEDMEM::MEDFILEBROWSER::getFileName () const
int MEDMEM::MEDFILEBROWSER::getNumberOfMeshes (void) const
int MEDMEM::MEDFILEBROWSER::getNumberOfFields (void) const
void MEDMEM::MEDFILEBROWSER::getMeshNames (std::string *meshNames) const
std::vector< std::string > MEDMEM::MEDFILEBROWSER::getMeshNames () const
void MEDMEM::MEDFILEBROWSER::getFieldNames (std::string *fieldNames) const
std::vector< std::string > MEDMEM::MEDFILEBROWSER::getFieldNames () const
bool MEDMEM::MEDFILEBROWSER::isStructuredMesh (const std::string &meshName) const throw (MEDEXCEPTION)
MED_EN::med_type_champ MEDMEM::MEDFILEBROWSER::getFieldType (const std::string &fieldName) const throw (MEDEXCEPTION)
std::string MEDMEM::MEDFILEBROWSER::getMeshName (const std::string &fieldName) const throw (MEDEXCEPTION)
VEC_DT_IT_ MEDMEM::MEDFILEBROWSER::getFieldIteration (const std::string &fieldName) const throw (MEDEXCEPTION)

Detailed Description

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

Function Documentation

std::string MEDFILEBROWSER::getFileName ( ) const

Returns the name of a browsed file.

int MEDFILEBROWSER::getNumberOfMeshes ( void  ) const

Gets the number of meshes in med file.

int MEDFILEBROWSER::getNumberOfFields ( void  ) const

Gets the number of fields in med file.

void MEDFILEBROWSER::getMeshNames ( std::string *  meshNames) const

Gets the names of all meshes.

meshNames is an in/out argument.

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

vector< string > MEDFILEBROWSER::getMeshNames ( ) const

Gets the names of all MESH objects.

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

void MEDFILEBROWSER::getFieldNames ( std::string *  fieldNames) const

Gets the names of all fields.

fieldNames is an in/out argument.

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

vector< string > MEDFILEBROWSER::getFieldNames ( ) const

Gets the names of all fields.

bool MEDFILEBROWSER::isStructuredMesh ( const std::string &  meshName) const throw (MEDEXCEPTION)

Return true if mesh meshName is a structured one.

med_type_champ MEDFILEBROWSER::getFieldType ( const std::string &  fieldName) const throw (MEDEXCEPTION)

Return type of values of FIELD named fieldName.

std::string MEDFILEBROWSER::getMeshName ( const std::string &  fieldName) const throw (MEDEXCEPTION)

Return name of mesh supporting the FIELD named fieldName.

vector< DT_IT_ > MEDFILEBROWSER::getFieldIteration ( const std::string &  fieldName) const throw (MEDEXCEPTION)

Returns a vector<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.

Copyright © 2007-2012 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