#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 | ~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 |
enum Driver_Mesh::Status |
Driver_Mesh::Driver_Mesh | ( | ) |
|
virtual |
|
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().
|
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().
|
virtual |
References myMeshName.
Referenced by SMESH_Mesh::CGNSToMesh().
|
pure virtual |
|
virtual |
Reimplemented in DriverMED_W_SMESHDS_Mesh.
References myFile.
Referenced by SMESH_Mesh::CGNSToMesh(), SMESH_Gen_i::CreateMeshesFromCGNS(), SMESH_Gen_i::CreateMeshesFromMEDorSAUV(), SMESH_Mesh_i::ExportPartToMED(), SMESH_PreMeshInfo::FullLoadFromFile(), SMESH_Mesh::GMFToMesh(), SMESH_Mesh::MEDToMesh(), DriverMED_W_SMESHDS_Mesh::SetFile(), SMESH_Mesh::STLToMesh(), and SMESH_Mesh::UNVToMesh().
void Driver_Mesh::SetMeshId | ( | int | theMeshId | ) |
|
virtual |
References myMeshName.
Referenced by SMESH_Mesh_i::ExportPartToMED().
|
virtual |
|
protected |
Referenced by addMessage(), and GetError().
|
protected |
|
protected |
Referenced by DriverMED_W_Field::Perform(), DriverMED_W_SMESHDS_Mesh::Perform(), and SetMeshId().
|
protected |
Referenced by GetMeshName(), DriverMED_W_Field::Perform(), DriverMED_W_SMESHDS_Mesh::Perform(), and SetMeshName().
|
protected |
Referenced by addMessage(), GetError(), and DriverGMF_Read::storeBadNodeIds().