Version: 9.16.0
DriverCGNS_Write Class Reference

Driver writinging a mesh into the CGNS file. More...

#include <DriverCGNS_Write.hxx>

Inheritance diagram for DriverCGNS_Write:

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

 DriverCGNS_Write ()
 Constructor. More...
 
 ~DriverCGNS_Write ()
 Close the cgns file at destruction. More...
 
virtual Status Perform ()
 Write the mesh into the CGNS file. More...
 
void SetElementsByType (bool isByType)
 
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
 
std::string myMeshName
 
int myMeshId
 
std::vector< std::string > myErrorMessages
 
Status myStatus
 

Private Attributes

int _fn
 file index More...
 
bool _elementsByType
 

Detailed Description

Driver writinging a mesh into the CGNS file.

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 

Constructor & Destructor Documentation

◆ DriverCGNS_Write()

DriverCGNS_Write::DriverCGNS_Write ( )

Constructor.

◆ ~DriverCGNS_Write()

DriverCGNS_Write::~DriverCGNS_Write ( )

Close the cgns file at destruction.

References _fn.

Member Function Documentation

◆ addMessage()

◆ fixUTF8()

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

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

Referenced by DriverMED_R_SMESHDS_Mesh::Perform().

◆ GetError()

◆ GetMeshName()

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

◆ IsMeshTooLarge()

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

◆ Perform()

◆ SetElementsByType()

void DriverCGNS_Write::SetElementsByType ( bool  isByType)

Referenced by SMESH_Mesh::ExportCGNS().

◆ SetFile()

◆ SetMesh()

◆ SetMeshId()

◆ SetMeshName()

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

◆ SetOption()

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

Field Documentation

◆ _elementsByType

bool DriverCGNS_Write::_elementsByType
private

Referenced by Perform().

◆ _fn

int DriverCGNS_Write::_fn
private

file index

Referenced by Perform(), and ~DriverCGNS_Write().

◆ myErrorMessages

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

◆ myFile

◆ myMesh

◆ myMeshId

◆ myMeshName

◆ myStatus

Status Driver_Mesh::myStatus
protectedinherited