Version: 6.3.1
Public Member Functions | Static Public Member Functions | Data Fields

SMESH_ComputeError Struct Reference

Contains algorithm and description of occured 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 ()
bool IsCommon ()
std::string CommonName () const

Static Public Member Functions

static SMESH_ComputeErrorPtr New (int error=COMPERR_OK, std::string comment="", const SMESH_Algo *algo=0)

Data Fields

int myName
 SMESH_ComputeErrorName or anything algo specific.
std::string myComment
const SMESH_AlgomyAlgo
std::list< const
SMDS_MeshElement * > 
myBadElements
 to explain COMPERR_BAD_INPUT_MESH

Detailed Description

Contains algorithm and description of occured error.

Definition at line 62 of file SMESH_ComputeError.hxx.


Constructor & Destructor Documentation

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

Definition at line 75 of file SMESH_ComputeError.hxx.

Referenced by New().

    :myName(error),myComment(comment),myAlgo(algo) {}

Member Function Documentation

std::string SMESH_ComputeError::CommonName ( ) const
bool SMESH_ComputeError.IsCommon ( )

Definition at line 81 of file SMESH_ComputeError.hxx.

References myName.

{ return myName < 0; }
bool SMESH_ComputeError.IsOK ( )

Definition at line 80 of file SMESH_ComputeError.hxx.

References COMPERR_OK, and myName.

{ return myName == COMPERR_OK; }
static SMESH_ComputeErrorPtr SMESH_ComputeError.New ( int  error = COMPERR_OK,
std::string  comment = "",
const SMESH_Algo algo = 0 
) [static]

Field Documentation

Definition at line 66 of file SMESH_ComputeError.hxx.

to explain COMPERR_BAD_INPUT_MESH

Definition at line 68 of file SMESH_ComputeError.hxx.

Definition at line 65 of file SMESH_ComputeError.hxx.

SMESH_ComputeErrorName or anything algo specific.

Definition at line 64 of file SMESH_ComputeError.hxx.

Referenced by CommonName(), IsCommon(), and IsOK().

Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS