Version: 9.12.0
SMESH_ComputeError Struct Reference

Contains an algorithm and description of an occurred error. More...

#include <SMESH_ComputeError.hxx>

Inheritance diagram for SMESH_ComputeError:

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
 
virtual bool HasBadElems () const
 
std::string CommonName () const
 
virtual ~SMESH_ComputeError ()
 

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_AlgomyAlgo
 

Detailed Description

Contains an algorithm and description of an occurred error.

Constructor & Destructor Documentation

◆ SMESH_ComputeError()

SMESH_ComputeError::SMESH_ComputeError ( int  error = COMPERR_OK,
std::string  comment = "",
const SMESH_Algo algo = 0 
)

◆ ~SMESH_ComputeError()

virtual SMESH_ComputeError::~SMESH_ComputeError ( )
virtual

Member Function Documentation

◆ CommonName()

◆ HasBadElems()

virtual bool SMESH_ComputeError::HasBadElems ( ) const
virtual

Reimplemented in SMESH_BadInputElements.

◆ IsCommon()

bool SMESH_ComputeError::IsCommon ( ) const

◆ IsKO()

bool SMESH_ComputeError::IsKO ( ) const

References COMPERR_OK, and COMPERR_WARNING.

◆ IsOK()

bool SMESH_ComputeError::IsOK ( ) const

References COMPERR_OK.

◆ New()

◆ Worst()

SMESH_ComputeErrorPtr SMESH_ComputeError::Worst ( SMESH_ComputeErrorPtr  er1,
SMESH_ComputeErrorPtr  er2 
)
static

Field Documentation

◆ myAlgo

const SMESH_Algo* SMESH_ComputeError::myAlgo

◆ myComment

std::string SMESH_ComputeError::myComment

◆ myName

int SMESH_ComputeError::myName

SMESH_ComputeErrorName or anything algo specific.

Referenced by CommonName().