24 #ifndef SMESH_ComputeError_HeaderFile
25 #define SMESH_ComputeError_HeaderFile
32 #include <boost/shared_ptr.hpp>
80 std::string comment =
"",
85 std::string comment =
"",
87 : myName(error), myComment(comment), myAlgo(algo) {}
97 std::string CommonName()
const;
113 std::string comment =
"",
120 virtual bool HasBadElems()
const {
return !myBadElements.empty(); }
124 virtual void tmpClear();
boost::shared_ptr< SMDS_Iterator< const SMDS_MeshElement * > > SMDS_ElemIteratorPtr
Definition: SMDS_ElemIterator.hxx:43
SMESH_ComputeErrorName
Definition: SMESH_ComputeError.hxx:43
@ COMPERR_LAST_ALGO_ERROR
terminator of mesh computation errors
Definition: SMESH_ComputeError.hxx:59
@ COMPERR_CANCELED
compute canceled
Definition: SMESH_ComputeError.hxx:56
@ COMPERR_NO_MESH_ON_SHAPE
no mesh elements assigned to sub-shape
Definition: SMESH_ComputeError.hxx:57
@ COMPERR_WARNING
algo reports error but sub-mesh is computed anyway
Definition: SMESH_ComputeError.hxx:55
@ COMPERR_BAD_SHAPE
bad geometry
Definition: SMESH_ComputeError.hxx:54
@ COMPERR_SLM_EXCEPTION
SALOME exception raised.
Definition: SMESH_ComputeError.hxx:50
@ COMPERR_MEMORY_PB
std::bad_alloc exception
Definition: SMESH_ComputeError.hxx:52
@ EDITERR_NO_MEDIUM_ON_GEOM
Definition: SMESH_ComputeError.hxx:61
@ COMPERR_BAD_INPUT_MESH
wrong mesh on lower submesh
Definition: SMESH_ComputeError.hxx:47
@ COMPERR_EXCEPTION
other exception raised
Definition: SMESH_ComputeError.hxx:51
@ COMPERR_OK
Definition: SMESH_ComputeError.hxx:46
@ COMPERR_ALGO_FAILED
algo failed for some reason
Definition: SMESH_ComputeError.hxx:53
@ COMPERR_BAD_PARMETERS
incorrect hypotheses parameters
Definition: SMESH_ComputeError.hxx:58
@ COMPERR_OCC_EXCEPTION
OCC exception raised.
Definition: SMESH_ComputeError.hxx:49
@ COMPERR_STD_EXCEPTION
some std exception raised
Definition: SMESH_ComputeError.hxx:48
boost::shared_ptr< SMESH_ComputeError > SMESH_ComputeErrorPtr
Definition: SMESH_ComputeError.hxx:36
#define SMESHUtils_EXPORT
Definition: SMESH_Utils.hxx:37
Base class of object holding SMDS_MeshElement pointers.
Definition: SMDS_ElementHolder.hxx:48
Base class for elements.
Definition: SMDS_MeshElement.hxx:56
Definition: SMDS_Mesh.hxx:53
Root of all algorithms.
Definition: SMESH_Algo.hxx:79
Contains an algorithm and description of an occurred error.
Definition: SMESH_ComputeError.hxx:74
SMESH_ComputeError(int error=COMPERR_OK, std::string comment="", const SMESH_Algo *algo=0)
Definition: SMESH_ComputeError.hxx:84
const SMESH_Algo * myAlgo
Definition: SMESH_ComputeError.hxx:77
bool IsOK() const
Definition: SMESH_ComputeError.hxx:89
bool IsKO() const
Definition: SMESH_ComputeError.hxx:90
static SMESH_ComputeErrorPtr New(int error=COMPERR_OK, std::string comment="", const SMESH_Algo *algo=0)
Definition: SMESH_ComputeError.hxx:79
virtual ~SMESH_ComputeError()
Definition: SMESH_ComputeError.hxx:103
virtual bool HasBadElems() const
Definition: SMESH_ComputeError.hxx:92
int myName
SMESH_ComputeErrorName or anything algo specific.
Definition: SMESH_ComputeError.hxx:75
bool IsCommon() const
Definition: SMESH_ComputeError.hxx:91
std::string myComment
Definition: SMESH_ComputeError.hxx:76