Open CASCADE Technology  7.2.0
Public Member Functions
IGESData_DirChecker Class Reference

This class centralizes general Checks upon an IGES Entity's Directory Part. That is : such field Ignored or Required, or Required with a given Value (for an Integer field) More precise checks can be performed as necessary, by each Entity (method OwnCheck). More...

#include <IGESData_DirChecker.hxx>

Public Member Functions

 IGESData_DirChecker ()
 Returns a DirChecker, with no criterium at all to be checked. More...
 
 IGESData_DirChecker (const Standard_Integer atype)
 Returns a DirChecker, with no criterium except Required Type. More...
 
 IGESData_DirChecker (const Standard_Integer atype, const Standard_Integer aform)
 Returns a DirChecker, with no criterium except Required values for Type and Form numbers. More...
 
 IGESData_DirChecker (const Standard_Integer atype, const Standard_Integer aform1, const Standard_Integer aform2)
 Returns a DirChecker, with no criterium except Required values for Type number (atype), and Required Range for Form number (which must be between aform1 and aform2 included) More...
 
Standard_Boolean IsSet () const
 Returns True if at least one criterium has already been set Allows user to store a DirChecker (static variable) then ask if it has been set before setting it. More...
 
void SetDefault ()
 Sets a DirChecker with most current criteria, that is : Structure Ignored ( worths call Structure(crit = DefVoid) ) More...
 
void Structure (const IGESData_DefType crit)
 Sets Structure criterium. If crit is DefVoid, Ignored : should not be defined If crit is DefReference, Required : must be defined Other values are not taken in account. More...
 
void LineFont (const IGESData_DefType crit)
 Sets LineFont criterium If crit is DefVoid, Ignored : should not be defined If crit is DefAny, Required : must be defined (value or ref) If crit is DefValue, Required as a Value (error if Reference) Other values are not taken in account. More...
 
void LineWeight (const IGESData_DefType crit)
 Sets LineWeight criterium If crit is DefVoid, Ignored : should not be defined If crit is DefValue, Required Other values are not taken in account. More...
 
void Color (const IGESData_DefType crit)
 Sets Color criterium If crit is DefVoid, Ignored : should not be defined If crit is DefAny, Required : must be defined (value or ref) Other values are not taken in account. More...
 
void GraphicsIgnored (const Standard_Integer hierarchy=-1)
 Sets Graphics data (LineFont, LineWeight, Color, Level, View) to be ignored according value of Hierarchy status : If hierarchy is not given, they are Ignored any way (that is, they should not be defined) If hierarchy is given, Graphics are Ignored if the Hierarchy status has the value given in argument "hierarchy". More...
 
void BlankStatusIgnored ()
 Sets Blank Status to be ignored (should not be defined, or its value should be 0) More...
 
void BlankStatusRequired (const Standard_Integer val)
 Sets Blank Status to be required at a given value. More...
 
void SubordinateStatusIgnored ()
 Sets Subordinate Status to be ignored (should not be defined, or its value should be 0) More...
 
void SubordinateStatusRequired (const Standard_Integer val)
 Sets Subordinate Status to be required at a given value. More...
 
void UseFlagIgnored ()
 Sets Blank Status to be ignored (should not be defined, or its value should be 0) More...
 
void UseFlagRequired (const Standard_Integer val)
 Sets Blank Status to be required at a given value Give -1 to demand UseFlag not zero (but no precise value req.) More...
 
void HierarchyStatusIgnored ()
 Sets Hierarchy Status to be ignored (should not be defined, or its value should be 0) More...
 
void HierarchyStatusRequired (const Standard_Integer val)
 Sets Hierarchy Status to be required at a given value. More...
 
void Check (Handle< Interface_Check > &ach, const Handle< IGESData_IGESEntity > &ent) const
 Performs the Checks on an IGESEntity, according to the recorded criteria In addition, does minimal Checks, such as admitted range for Status, or presence of Error status in some data (Color, ...) More...
 
void CheckTypeAndForm (Handle< Interface_Check > &ach, const Handle< IGESData_IGESEntity > &ent) const
 Performs a Check only on Values of Type Number and Form Number This allows to do a check on an Entity not yet completely filled but of which Type and Form Number have been already set. More...
 
Standard_Boolean Correct (const Handle< IGESData_IGESEntity > &ent) const
 Corrects the Directory Entry of an IGES Entity as far as it is possible according recorded criteria without any ambiguity : More...
 

Detailed Description

This class centralizes general Checks upon an IGES Entity's Directory Part. That is : such field Ignored or Required, or Required with a given Value (for an Integer field) More precise checks can be performed as necessary, by each Entity (method OwnCheck).

Each class of Entity defines its DirChecker (method DirChecker) and the DirChecker is able to perform its Checks on an Entity

A Required Value or presence of a field causes a Fail Message if criterium is not satisfied An Ignored field causes a Correction Message if the field is not null/zero

Constructor & Destructor Documentation

◆ IGESData_DirChecker() [1/4]

IGESData_DirChecker::IGESData_DirChecker ( )

Returns a DirChecker, with no criterium at all to be checked.

◆ IGESData_DirChecker() [2/4]

IGESData_DirChecker::IGESData_DirChecker ( const Standard_Integer  atype)

Returns a DirChecker, with no criterium except Required Type.

◆ IGESData_DirChecker() [3/4]

IGESData_DirChecker::IGESData_DirChecker ( const Standard_Integer  atype,
const Standard_Integer  aform 
)

Returns a DirChecker, with no criterium except Required values for Type and Form numbers.

◆ IGESData_DirChecker() [4/4]

IGESData_DirChecker::IGESData_DirChecker ( const Standard_Integer  atype,
const Standard_Integer  aform1,
const Standard_Integer  aform2 
)

Returns a DirChecker, with no criterium except Required values for Type number (atype), and Required Range for Form number (which must be between aform1 and aform2 included)

Member Function Documentation

◆ BlankStatusIgnored()

void IGESData_DirChecker::BlankStatusIgnored ( )

Sets Blank Status to be ignored (should not be defined, or its value should be 0)

◆ BlankStatusRequired()

void IGESData_DirChecker::BlankStatusRequired ( const Standard_Integer  val)

Sets Blank Status to be required at a given value.

◆ Check()

void IGESData_DirChecker::Check ( Handle< Interface_Check > &  ach,
const Handle< IGESData_IGESEntity > &  ent 
) const

Performs the Checks on an IGESEntity, according to the recorded criteria In addition, does minimal Checks, such as admitted range for Status, or presence of Error status in some data (Color, ...)

◆ CheckTypeAndForm()

void IGESData_DirChecker::CheckTypeAndForm ( Handle< Interface_Check > &  ach,
const Handle< IGESData_IGESEntity > &  ent 
) const

Performs a Check only on Values of Type Number and Form Number This allows to do a check on an Entity not yet completely filled but of which Type and Form Number have been already set.

◆ Color()

void IGESData_DirChecker::Color ( const IGESData_DefType  crit)

Sets Color criterium If crit is DefVoid, Ignored : should not be defined If crit is DefAny, Required : must be defined (value or ref) Other values are not taken in account.

◆ Correct()

Standard_Boolean IGESData_DirChecker::Correct ( const Handle< IGESData_IGESEntity > &  ent) const

Corrects the Directory Entry of an IGES Entity as far as it is possible according recorded criteria without any ambiguity :

  • if a numeric Status is required a given value, this value is enforced
  • if an item is required to be Void, or if it recorded as Erroneous, it is cleared (set to Void)
  • Type Number is enforced
  • finally Form Number is enforced only if one and only Value is admitted (no range, see Constructors of DirChecker)

◆ GraphicsIgnored()

void IGESData_DirChecker::GraphicsIgnored ( const Standard_Integer  hierarchy = -1)

Sets Graphics data (LineFont, LineWeight, Color, Level, View) to be ignored according value of Hierarchy status : If hierarchy is not given, they are Ignored any way (that is, they should not be defined) If hierarchy is given, Graphics are Ignored if the Hierarchy status has the value given in argument "hierarchy".

◆ HierarchyStatusIgnored()

void IGESData_DirChecker::HierarchyStatusIgnored ( )

Sets Hierarchy Status to be ignored (should not be defined, or its value should be 0)

◆ HierarchyStatusRequired()

void IGESData_DirChecker::HierarchyStatusRequired ( const Standard_Integer  val)

Sets Hierarchy Status to be required at a given value.

◆ IsSet()

Standard_Boolean IGESData_DirChecker::IsSet ( ) const

Returns True if at least one criterium has already been set Allows user to store a DirChecker (static variable) then ask if it has been set before setting it.

◆ LineFont()

void IGESData_DirChecker::LineFont ( const IGESData_DefType  crit)

Sets LineFont criterium If crit is DefVoid, Ignored : should not be defined If crit is DefAny, Required : must be defined (value or ref) If crit is DefValue, Required as a Value (error if Reference) Other values are not taken in account.

◆ LineWeight()

void IGESData_DirChecker::LineWeight ( const IGESData_DefType  crit)

Sets LineWeight criterium If crit is DefVoid, Ignored : should not be defined If crit is DefValue, Required Other values are not taken in account.

◆ SetDefault()

void IGESData_DirChecker::SetDefault ( )

Sets a DirChecker with most current criteria, that is : Structure Ignored ( worths call Structure(crit = DefVoid) )

◆ Structure()

void IGESData_DirChecker::Structure ( const IGESData_DefType  crit)

Sets Structure criterium. If crit is DefVoid, Ignored : should not be defined If crit is DefReference, Required : must be defined Other values are not taken in account.

◆ SubordinateStatusIgnored()

void IGESData_DirChecker::SubordinateStatusIgnored ( )

Sets Subordinate Status to be ignored (should not be defined, or its value should be 0)

◆ SubordinateStatusRequired()

void IGESData_DirChecker::SubordinateStatusRequired ( const Standard_Integer  val)

Sets Subordinate Status to be required at a given value.

◆ UseFlagIgnored()

void IGESData_DirChecker::UseFlagIgnored ( )

Sets Blank Status to be ignored (should not be defined, or its value should be 0)

◆ UseFlagRequired()

void IGESData_DirChecker::UseFlagRequired ( const Standard_Integer  val)

Sets Blank Status to be required at a given value Give -1 to demand UseFlag not zero (but no precise value req.)


The documentation for this class was generated from the following file: