Open CASCADE Technology 6.6.0
|
#include <TObj_CheckModel.hxx>
Public Member Functions | |
TObj_CheckModel (const Handle< TObj_Model > &theModel) | |
Initialize checker by model. | |
void | SetToFix (const Standard_Boolean theToFix) |
Sets flag allowing fixing inconsistencies. | |
Standard_Boolean | IsToFix () const |
Returns true if it is allowed to fix inconsistencies. | |
const Handle< TObj_Model > & | GetModel () const |
Returns the checked model. | |
virtual | ~TObj_CheckModel () |
Empty virtual destructor. | |
virtual Standard_Boolean | Perform () |
Performs all checks. Descendants should call parent method before doing own checks. This implementation checks OCAF references and back references between objects of the model. Returns true if no inconsistencies found. |
This class provides consistency check of the TObj model. It collects all inconsistencies in the status bits and prepaires messages to be sent using SendStatusMessages (SendMessages) method. It supports also the fix mode, in which some inconsistencies are corrected.
TObj_CheckModel::TObj_CheckModel | ( | const Handle< TObj_Model > & | theModel | ) | [inline] |
virtual TObj_CheckModel::~TObj_CheckModel | ( | ) | [inline, virtual] |
const Handle< TObj_Model >& TObj_CheckModel::GetModel | ( | ) | const [inline] |
Standard_Boolean TObj_CheckModel::IsToFix | ( | ) | const [inline] |
virtual Standard_Boolean TObj_CheckModel::Perform | ( | ) | [virtual] |
void TObj_CheckModel::SetToFix | ( | const Standard_Boolean | theToFix | ) | [inline] |