GemaCoreLib
The GeMA Core library
Loading...
Searching...
No Matches
GmHdf5Model Class Reference

A helper class with enums and methods common to GmHdf5ModelWriter & GmHdf5ModelReader. More...

#include <gmHdf5Model.h>

Inheritance diagram for GmHdf5Model:

Public Types

enum  DictionaryType {
  GM_HDF5MODEL_FUNCTIONS , GM_HDF5MODEL_PROPERTYSETS , GM_HDF5MODEL_CELLGROUPS , GM_HDF5MODEL_NODESETS ,
  GM_HDF5MODEL_EDGES , GM_HDF5MODEL_FACES , GM_HDF5MODEL_NUMDICTIONARIES
}
 
enum  GroupType {
  GM_HDF5MODEL_D_GROUP , GM_HDF5MODEL_G_GROUP , GM_HDF5MODEL_GCG_GROUP , GM_HDF5MODEL_GNS_GROUP ,
  GM_HDF5MODEL_GBE_GROUP , GM_HDF5MODEL_GBF_GROUP , GM_HDF5MODEL_ND_GROUP , GM_HDF5MODEL_CD_GROUP ,
  GM_HDF5MODEL_GD_GROUP , GM_HDF5MODEL_BC_GROUP , GM_HDF5MODEL_DS_GROUP , GM_HDF5MODEL_NUMGROUPS ,
  GM_HDF5MODEL_INVALID
}
 

Public Member Functions

QString dictionaryTableName (DictionaryType type) const
 Returns the name on the HDF5 file for the given dictionary type.
 
GroupType dictionaryGeometryGroup (DictionaryType type) const
 Returns the associated geometry group type associated with the dictionary or GM_HDF5MODEL_INVALID if there is none.
 
QString groupName (QString meshName, GroupType group, QString subGroupName) const
 Returns the group name for the given mesh / group type. If type is GM_HDF5MODEL_BC_GROUP or GM_HDF5MODEL_DS_GROUP, the subGroupName should contain the boundary condition / discontinuity set name (if empty, the path to the root bc/ds group will be returned).
 
QPair< QString, int > splitAttributeName (QString attrName) const
 Splits an attribute name formatted as 'attr_name[state]' or 'attr_name' into its components. State will be 0 if missing from the input string.
 

Detailed Description

A helper class with enums and methods common to GmHdf5ModelWriter & GmHdf5ModelReader.

Member Enumeration Documentation

◆ DictionaryType

Enumerator
GM_HDF5MODEL_FUNCTIONS 

User function dictionary table.

GM_HDF5MODEL_PROPERTYSETS 

Property sets dictionary table.

GM_HDF5MODEL_CELLGROUPS 

Mesh cell groups dictionary table.

GM_HDF5MODEL_NODESETS 

Mesh node sets dictionary table.

GM_HDF5MODEL_EDGES 

Mesh boundary edges dictionary table.

GM_HDF5MODEL_FACES 

Mesh boundary faces dictionary table.

◆ GroupType

Enumerator
GM_HDF5MODEL_D_GROUP 

The Dictionary group.

GM_HDF5MODEL_G_GROUP 

The Geometry group.

GM_HDF5MODEL_GCG_GROUP 

The Geometry/CellGroups group.

GM_HDF5MODEL_GNS_GROUP 

The Geometry/NodeSets group.

GM_HDF5MODEL_GBE_GROUP 

The Geometry/BoundaryEdges group.

GM_HDF5MODEL_GBF_GROUP 

The Geometry/BoundaryFaces group.

GM_HDF5MODEL_ND_GROUP 

The NodeData group.

GM_HDF5MODEL_CD_GROUP 

The CellData group.

GM_HDF5MODEL_GD_GROUP 

The GaussData group.

GM_HDF5MODEL_BC_GROUP 

The BoundaryConditions group.

GM_HDF5MODEL_DS_GROUP 

The DiscontinuitySets group.

GM_HDF5MODEL_NUMGROUPS 

The number of groups in the enum.

GM_HDF5MODEL_INVALID 

An invalid group.


The documentation for this class was generated from the following files: