Version: 8.3.0
Driver_Mesh Class Referenceabstract

#include <Driver_Mesh.h>

Inheritance diagram for Driver_Mesh:

Public Types

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

Public Member Functions

 Driver_Mesh ()
 
virtual ~Driver_Mesh ()
 
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 &optionName, const std::string &optionValue)
 
virtual Status Perform ()=0
 
virtual SMESH_ComputeErrorPtr GetError ()
 Return a structure containing description of errors. More...
 

Protected Member Functions

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

Protected Attributes

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

Member Enumeration Documentation

Enumerator
DRS_OK 
DRS_EMPTY 
DRS_WARN_RENUMBER 
DRS_WARN_SKIP_ELEM 
DRS_WARN_DESCENDING 
DRS_FAIL 

Constructor & Destructor Documentation

Driver_Mesh::Driver_Mesh ( )
virtual Driver_Mesh::~Driver_Mesh ( )
virtual

Member Function Documentation

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

Stores an error message.

We consider an error fatal if none mesh can be read

References DRS_FAIL, DRS_WARN_SKIP_ELEM, MESSAGE, myErrorMessages, and myStatus.

Referenced by DriverGMF_Write::Perform(), DriverGMF_Read::Perform(), DriverMED_W_Field::Perform(), and DriverGMF_Read::storeBadNodeIds().

SMESH_ComputeErrorPtr Driver_Mesh::GetError ( )
virtual

Return a structure containing description of errors.

References COMPERR_OK, DRS_OK, myErrorMessages, myStatus, and SMESH_ComputeError::New().

Referenced by SMESH_Mesh_i::exportMEDFields(), SMESH_Mesh::GMFToMesh(), and SMESH_Mesh::MEDToMesh().

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

References myMeshName.

Referenced by SMESH_Mesh::CGNSToMesh().

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

References myMeshName.

Referenced by SMESH_Mesh_i::ExportPartToMED().

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

Field Documentation

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

Referenced by addMessage(), and GetError().

int Driver_Mesh::myMeshId
protected
std::string Driver_Mesh::myMeshName
protected
Status Driver_Mesh::myStatus
protected