Version: 9.12.0
DriverMED_R_SMESHDS_Mesh Class Reference

#include <DriverMED_R_SMESHDS_Mesh.h>

Inheritance diagram for DriverMED_R_SMESHDS_Mesh:

Public Types

enum  Status {
  DRS_OK , DRS_EMPTY , DRS_WARN_RENUMBER , DRS_WARN_SKIP_ELEM ,
  DRS_WARN_DESCENDING , DRS_FAIL , DRS_TOO_LARGE_MESH
}
 

Public Member Functions

virtual Status Perform ()
 Reads a med file. More...
 
std::list< TNameAndTypeGetGroupNamesAndTypes ()
 
void GetGroup (SMESHDS_Group *theGroup)
 
void CreateAllSubMeshes ()
 
void GetSubMesh (SMESHDS_SubMesh *theSubMesh, const int theId)
 
std::list< std::string > GetMeshNames (Status &theStatus)
 
void SetMeshName (std::string theMeshName)
 Stores a mesh name. More...
 
void SetMesh (SMESHDS_Mesh *theMesh)
 
void SetMeshId (int theMeshId)
 
virtual void SetFile (const std::string &theFileName)
 
virtual void SetMeshName (const std::string &theMeshName)
 
virtual std::string GetMeshName () const
 
virtual void SetOption (const std::string &, const std::string &)
 
virtual SMESH_ComputeErrorPtr GetError ()
 Return a structure containing description of errors. More...
 

Static Public Member Functions

template<typename IDTYPE >
static bool IsMeshTooLarge (const SMDS_Mesh *mesh, bool checkIDs)
 

Protected Member Functions

Status addMessage (const std::string &msg, const bool isFatal=false)
 Stores an error message. More...
 

Static Protected Member Functions

static std::string fixUTF8 (const std::string &s)
 Assure a string is UTF-8 valid by replacing invalid chars. More...
 

Protected Attributes

SMESHDS_MeshmyMesh
 
std::string myFile
 
int myMeshId
 
std::vector< std::string > myErrorMessages
 
Status myStatus
 

Private Attributes

std::string myMeshName
 
std::map< int, DriverMED_FamilyPtrmyFamilies
 
TName2Falilies myGroups2FamiliesMap
 

Member Enumeration Documentation

◆ Status

enum Driver_Mesh::Status
inherited
Enumerator
DRS_OK 
DRS_EMPTY 
DRS_WARN_RENUMBER 
DRS_WARN_SKIP_ELEM 
DRS_WARN_DESCENDING 
DRS_FAIL 
DRS_TOO_LARGE_MESH 

Member Function Documentation

◆ addMessage()

Driver_Mesh::Status Driver_Mesh::addMessage ( const std::string &  msg,
const bool  isFatal = false 
)
protectedinherited

◆ CreateAllSubMeshes()

void DriverMED_R_SMESHDS_Mesh::CreateAllSubMeshes ( )

◆ fixUTF8()

std::string Driver_Mesh::fixUTF8 ( const std::string &  s)
staticprotectedinherited

Assure a string is UTF-8 valid by replacing invalid chars.

◆ GetError()

◆ GetGroup()

◆ GetGroupNamesAndTypes()

list< TNameAndType > DriverMED_R_SMESHDS_Mesh::GetGroupNamesAndTypes ( )

Referenced by SMESH_Mesh::MEDToMesh().

◆ GetMeshName()

std::string Driver_Mesh::GetMeshName ( ) const
virtualinherited

◆ GetMeshNames()

list< string > DriverMED_R_SMESHDS_Mesh::GetMeshNames ( Status theStatus)

◆ GetSubMesh()

void DriverMED_R_SMESHDS_Mesh::GetSubMesh ( SMESHDS_SubMesh theSubMesh,
const int  theId 
)

◆ IsMeshTooLarge()

template<typename IDTYPE >
static bool Driver_Mesh::IsMeshTooLarge ( const SMDS_Mesh mesh,
bool  checkIDs 
)
staticinherited

◆ Perform()

◆ SetFile()

◆ SetMesh()

◆ SetMeshId()

◆ SetMeshName() [1/2]

void Driver_Mesh::SetMeshName ( const std::string &  theMeshName)
virtualinherited

◆ SetMeshName() [2/2]

void DriverMED_R_SMESHDS_Mesh::SetMeshName ( std::string  theMeshName)

Stores a mesh name.

Referenced by SMESH_Mesh::MEDToMesh().

◆ SetOption()

virtual void Driver_Mesh::SetOption ( const std::string &  ,
const std::string &   
)
virtualinherited

Field Documentation

◆ myErrorMessages

std::vector< std::string > Driver_Mesh::myErrorMessages
protectedinherited

◆ myFamilies

std::map<int, DriverMED_FamilyPtr> DriverMED_R_SMESHDS_Mesh::myFamilies
private

◆ myFile

◆ myGroups2FamiliesMap

TName2Falilies DriverMED_R_SMESHDS_Mesh::myGroups2FamiliesMap
private

◆ myMesh

◆ myMeshId

int Driver_Mesh::myMeshId
protectedinherited

◆ myMeshName

std::string DriverMED_R_SMESHDS_Mesh::myMeshName
private

◆ myStatus

Status Driver_Mesh::myStatus
protectedinherited