Contains an algorithm and description of an occurred error. More...
#include <SMESH_ComputeError.hxx>
Public Member Functions | |
SMESH_ComputeError (int error=COMPERR_OK, std::string comment="", const SMESH_Algo *algo=0) | |
bool | IsOK () const |
bool | IsKO () const |
bool | IsCommon () const |
bool | HasBadElems () const |
std::string | CommonName () const |
Static Public Member Functions | |
static SMESH_ComputeErrorPtr | New (int error=COMPERR_OK, std::string comment="", const SMESH_Algo *algo=0) |
static SMESH_ComputeErrorPtr | Worst (SMESH_ComputeErrorPtr er1, SMESH_ComputeErrorPtr er2) |
Data Fields | |
int | myName |
SMESH_ComputeErrorName or anything algo specific. More... | |
std::string | myComment |
const SMESH_Algo * | myAlgo |
std::list< const SMDS_MeshElement * > | myBadElements |
to explain COMPERR_BAD_INPUT_MESH More... | |
Contains an algorithm and description of an occurred error.
SMESH_ComputeError::SMESH_ComputeError | ( | int | error = COMPERR_OK , |
std::string | comment = "" , |
||
const SMESH_Algo * | algo = 0 |
||
) |
std::string SMESH_ComputeError::CommonName | ( | ) | const |
References _case2char, COMPERR_ALGO_FAILED, COMPERR_BAD_INPUT_MESH, COMPERR_BAD_PARMETERS, COMPERR_BAD_SHAPE, COMPERR_CANCELED, COMPERR_EXCEPTION, COMPERR_MEMORY_PB, COMPERR_NO_MESH_ON_SHAPE, COMPERR_OCC_EXCEPTION, COMPERR_OK, COMPERR_SLM_EXCEPTION, COMPERR_STD_EXCEPTION, COMPERR_WARNING, and myName.
bool SMESH_ComputeError::HasBadElems | ( | ) | const |
bool SMESH_ComputeError::IsCommon | ( | ) | const |
References COMPERR_LAST_ALGO_ERROR.
bool SMESH_ComputeError::IsKO | ( | ) | const |
References COMPERR_OK, and COMPERR_WARNING.
bool SMESH_ComputeError::IsOK | ( | ) | const |
References COMPERR_OK.
|
static |
Referenced by VISCOUS_3D::_ViscousBuilder::_ViscousBuilder(), VISCOUS_2D::_ViscousBuilder2D::_ViscousBuilder2D(), SMESH_subMesh::checkComputeError(), StdMeshers_ViscousLayers2D::CheckHypothesis(), StdMeshers_Prism_3D::Compute(), StdMeshers_Prism_3D::compute(), ComputePentahedralMesh(), SMESH_subMesh::ComputeStateEngine(), _QuadFaceGrid::error(), StdMeshers_PrismAsBlock::error(), VISCOUS_3D::_ViscousBuilder::error(), SMESH_subMesh::Evaluate(), SMESH_Algo::GetComputeError(), Driver_Mesh::GetError(), StdMeshers_SMESHBlock::GetError(), StdMeshers_PrismAsBlock::Init(), and StdMeshers_Prism_3D::projectBottomToTop().
|
static |
References COMPERR_CANCELED.
Referenced by SMESH_subMesh::ComputeStateEngine().
const SMESH_Algo* SMESH_ComputeError::myAlgo |
std::list<const SMDS_MeshElement*> SMESH_ComputeError::myBadElements |
to explain COMPERR_BAD_INPUT_MESH
std::string SMESH_ComputeError::myComment |
int SMESH_ComputeError::myName |
SMESH_ComputeErrorName or anything algo specific.
Referenced by CommonName().