Version: 8.3.0
MEDFileFieldRepresentationTree Class Reference

#include <MEDFileFieldRepresentationTree.hxx>

Public Member Functions

 MEDFileFieldRepresentationTree ()
 
int getNumberOfLeavesArrays () const
 
void assignIds () const
 
void activateTheFirst () const
 
void computeFullNameInLeaves () const
 
void feedSIL (vtkMutableDirectedGraph *sil, vtkIdType root, vtkVariantArray *edge, std::vector< std::string > &names) const
 
std::string getActiveMeshName () const
 
std::string feedSILForFamsAndGrps (vtkMutableDirectedGraph *sil, vtkIdType root, vtkVariantArray *edge, std::vector< std::string > &names) const
 
std::string getNameOf (int id) const
 
const char * getNameOfC (int id) const
 
bool getStatusOf (int id) const
 
int getIdHavingZeName (const char *name) const
 
bool changeStatusOfAndUpdateToHaveCoherentVTKDataSet (int id, bool status) const
 
int getMaxNumberOfTimeSteps () const
 
std::string getDftMeshName () const
 
std::vector< double > getTimeSteps (int &lev0, const TimeKeeper &tk) const
 
vtkDataSet * buildVTKInstance (bool isStdOrMode, double timeReq, std::string &meshName, const TimeKeeper &tk, ExportedTinyInfo *internalInfo=0) const
 
void printMySelf (std::ostream &os) const
 
std::map< std::string, bool > dumpState () const
 
void loadMainStructureOfFile (const char *fileName, bool isMEDOrSauv, int iPart, int nbOfParts)
 
void loadInMemory (MEDCoupling::MEDFileFields *fields, MEDCoupling::MEDFileMeshes *meshes)
 
void removeEmptyLeaves ()
 

Static Public Member Functions

static bool IsFieldMeshRegardingInfo (const std::vector< std::string > &compInfos)
 
static std::string PostProcessFieldName (const std::string &fullFieldName)
 

Static Public Attributes

static const char ROOT_OF_GRPS_IN_TREE [] ="zeGrps"
 
static const char ROOT_OF_FAM_IDS_IN_TREE [] ="zeFamIds"
 
static const char COMPO_STR_TO_LOCATE_MESH_DA [] ="-@?|*_"
 

Private Member Functions

const
MEDFileFieldRepresentationLeavesArrays
getLeafArr (int id) const
 
const
MEDFileFieldRepresentationLeaves
getTheSingleActivated (int &lev0, int &lev1, int &lev2) const
 

Static Private Member Functions

static MEDCoupling::MEDFileFields * BuildFieldFromMeshes (const MEDCoupling::MEDFileMeshes *ms)
 
static void AppendFieldFromMeshes (const MEDCoupling::MEDFileMeshes *ms, MEDCoupling::MEDFileFields *ret)
 
static std::string BuildAUniqueArrayNameForMesh (const std::string &meshName, const MEDCoupling::MEDFileFields *ret)
 
static std::vector< std::string > SplitFieldNameIntoParts (const std::string &fullFieldName, char sep)
 

Private Attributes

std::vector< std::vector
< std::vector
< MEDFileFieldRepresentationLeaves > > > 
_data_structure
 
MEDCoupling::MCAuto
< MEDCoupling::MEDFileMeshes > 
_ms
 
MEDCoupling::MCAuto
< MEDCoupling::MEDFileFields > 
_fields
 

Constructor & Destructor Documentation

MEDFileFieldRepresentationTree::MEDFileFieldRepresentationTree ( )

Member Function Documentation

int MEDFileFieldRepresentationTree::getNumberOfLeavesArrays ( ) const

References _data_structure.

void MEDFileFieldRepresentationTree::assignIds ( ) const

References _data_structure.

void MEDFileFieldRepresentationTree::activateTheFirst ( ) const

References _data_structure.

void MEDFileFieldRepresentationTree::computeFullNameInLeaves ( ) const
void MEDFileFieldRepresentationTree::feedSIL ( vtkMutableDirectedGraph *  sil,
vtkIdType  root,
vtkVariantArray *  edge,
std::vector< std::string > &  names 
) const
std::string MEDFileFieldRepresentationTree::getActiveMeshName ( ) const
std::string MEDFileFieldRepresentationTree::feedSILForFamsAndGrps ( vtkMutableDirectedGraph *  sil,
vtkIdType  root,
vtkVariantArray *  edge,
std::vector< std::string > &  names 
) const
std::string MEDFileFieldRepresentationTree::getNameOf ( int  id) const
const char * MEDFileFieldRepresentationTree::getNameOfC ( int  id) const
bool MEDFileFieldRepresentationTree::getStatusOf ( int  id) const
int MEDFileFieldRepresentationTree::getIdHavingZeName ( const char *  name) const

References _data_structure.

bool MEDFileFieldRepresentationTree::changeStatusOfAndUpdateToHaveCoherentVTKDataSet ( int  id,
bool  status 
) const
int MEDFileFieldRepresentationTree::getMaxNumberOfTimeSteps ( ) const

References _data_structure.

std::string MEDFileFieldRepresentationTree::getDftMeshName ( ) const

References _data_structure.

std::vector< double > MEDFileFieldRepresentationTree::getTimeSteps ( int &  lev0,
const TimeKeeper tk 
) const
vtkDataSet * MEDFileFieldRepresentationTree::buildVTKInstance ( bool  isStdOrMode,
double  timeReq,
std::string &  meshName,
const TimeKeeper tk,
ExportedTinyInfo internalInfo = 0 
) const
void MEDFileFieldRepresentationTree::printMySelf ( std::ostream &  os) const

References _data_structure.

std::map< std::string, bool > MEDFileFieldRepresentationTree::dumpState ( ) const

References _data_structure.

void MEDFileFieldRepresentationTree::loadMainStructureOfFile ( const char *  fileName,
bool  isMEDOrSauv,
int  iPart,
int  nbOfParts 
)

References loadInMemory().

void MEDFileFieldRepresentationTree::loadInMemory ( MEDCoupling::MEDFileFields *  fields,
MEDCoupling::MEDFileMeshes *  meshes 
)
void MEDFileFieldRepresentationTree::removeEmptyLeaves ( )

References _data_structure.

bool MEDFileFieldRepresentationTree::IsFieldMeshRegardingInfo ( const std::vector< std::string > &  compInfos)
static
std::string MEDFileFieldRepresentationTree::PostProcessFieldName ( const std::string &  fullFieldName)
static

Here the non regression tests. const char inp0[]=""; const char exp0[]=""; const char inp1[]="field"; const char exp1[]="field"; const char inp2[]="_________"; const char exp2[]="_________"; const char inp3[]="field_p"; const char exp3[]="field_p"; const char inp4[]="field__p"; const char exp4[]="field_p"; const char inp5[]="field_p__"; const char exp5[]="field_p"; const char inp6[]="field_p_"; const char exp6[]="field_p"; const char inp7[]="field_____EDFGEG//sdkjf_____PP_______________"; const char exp7[]="field_EDFGEG//sdkjf_PP"; const char inp8[]="field_____EDFGEG//sdkjf_____PP"; const char exp8[]="field_EDFGEG//sdkjf_PP"; const char inp9[]="_field_____EDFGEG//sdkjf_____PP_______________"; const char exp9[]="field_EDFGEG//sdkjf_PP"; const char inp10[]="___field_____EDFGEG//sdkjf_____PP_______________"; const char exp10[]="field_EDFGEG//sdkjf_PP";

References SplitFieldNameIntoParts().

const MEDFileFieldRepresentationLeavesArrays & MEDFileFieldRepresentationTree::getLeafArr ( int  id) const
private

References _data_structure.

const MEDFileFieldRepresentationLeaves & MEDFileFieldRepresentationTree::getTheSingleActivated ( int &  lev0,
int &  lev1,
int &  lev2 
) const
private

References _data_structure.

MEDCoupling::MEDFileFields * MEDFileFieldRepresentationTree::BuildFieldFromMeshes ( const MEDCoupling::MEDFileMeshes *  ms)
staticprivate
void MEDFileFieldRepresentationTree::AppendFieldFromMeshes ( const MEDCoupling::MEDFileMeshes *  ms,
MEDCoupling::MEDFileFields *  ret 
)
staticprivate
std::string MEDFileFieldRepresentationTree::BuildAUniqueArrayNameForMesh ( const std::string &  meshName,
const MEDCoupling::MEDFileFields *  ret 
)
staticprivate
std::vector< std::string > MEDFileFieldRepresentationTree::SplitFieldNameIntoParts ( const std::string &  fullFieldName,
char  sep 
)
staticprivate

Field Documentation

const char MEDFileFieldRepresentationTree::ROOT_OF_GRPS_IN_TREE ="zeGrps"
static
const char MEDFileFieldRepresentationTree::ROOT_OF_FAM_IDS_IN_TREE ="zeFamIds"
static
const char MEDFileFieldRepresentationTree::COMPO_STR_TO_LOCATE_MESH_DA ="-@?|*_"
static
std::vector< std::vector< std::vector< MEDFileFieldRepresentationLeaves > > > MEDFileFieldRepresentationTree::_data_structure
private
MEDCoupling::MCAuto<MEDCoupling::MEDFileMeshes> MEDFileFieldRepresentationTree::_ms
private
MEDCoupling::MCAuto<MEDCoupling::MEDFileFields> MEDFileFieldRepresentationTree::_fields
private