Driver_Mesh Class Referenceabstract

#include <Driver_Mesh.h>

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 SMESH_ComputeErrorPtr GetError ()
 Return a structure containing description of errors. More...
 
virtual std::string GetMeshName () const
 
virtual Status Perform ()=0
 
virtual void SetFile (const std::string &theFileName)
 
void SetMeshId (int theMeshId)
 
virtual void SetMeshName (const std::string &theMeshName)
 
virtual void SetOption (const std::string &optionName, const std::string &optionValue)
 
virtual ~Driver_Mesh ()
 

Protected Member Functions

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

Protected Attributes

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

Member Enumeration Documentation

◆ Status

Enumerator
DRS_OK 
DRS_EMPTY 
DRS_WARN_RENUMBER 
DRS_WARN_SKIP_ELEM 
DRS_WARN_DESCENDING 
DRS_FAIL 

Constructor & Destructor Documentation

◆ Driver_Mesh()

Driver_Mesh::Driver_Mesh ( )

◆ ~Driver_Mesh()

virtual Driver_Mesh::~Driver_Mesh ( )
virtual

Member Function Documentation

◆ addMessage()

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, myErrorMessages, and myStatus.

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

◆ GetError()

SMESH_ComputeErrorPtr Driver_Mesh::GetError ( )
virtual

Return a structure containing description of errors.

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

Referenced by SMESH_Mesh::GMFToMesh().

◆ GetMeshName()

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

References myMeshName.

◆ Perform()

◆ SetFile()

◆ SetMeshId()

◆ SetMeshName()

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

References myMeshName.

Referenced by SMESH_Mesh::ExportMED().

◆ SetOption()

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

Member Data Documentation

◆ myErrorMessages

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

Referenced by addMessage(), and GetError().

◆ myFile

◆ myMeshId

◆ myMeshName

◆ myStatus

Status Driver_Mesh::myStatus
protected

Referenced by addMessage(), and GetError().


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