Open CASCADE Technology
7.5.0
|
A CheckCounter allows to see a CheckList (i.e. CheckIterator) not per entity, its messages, but per message, the entities attached (count and list). Because many messages can be repeated if they are due to systematic errors. More...
#include <IFSelect_CheckCounter.hxx>
Public Member Functions | |
IFSelect_CheckCounter (const Standard_Boolean withlist=Standard_False) | |
Creates a CheckCounter, empty ready to work. More... | |
void | SetSignature (const Handle< MoniTool_SignText > &sign) |
Sets a specific signature Else, the current SignType (in the model) is used. More... | |
Handle< MoniTool_SignText > | Signature () const |
Returns the Signature;. More... | |
void | Analyse (const Interface_CheckIterator &list, const Handle< Interface_InterfaceModel > &model, const Standard_Boolean original=Standard_False, const Standard_Boolean failsonly=Standard_False) |
Analyses a CheckIterator according a Model (which detains the entities for which the CheckIterator has messages), i.e. counts messages for entities If <original> is True, does not consider final messages but those before interpretation (such as inserting variables : integers, reals, strings) If <failsonly> is True, only Fails are considered Remark : global messages are recorded with a Null entity. More... | |
Public Member Functions inherited from IFSelect_SignatureList | |
IFSelect_SignatureList (const Standard_Boolean withlist=Standard_False) | |
Creates a SignatureList. If <withlist> is True, entities will be not only counted per signature, but also listed. More... | |
void | SetList (const Standard_Boolean withlist) |
Changes the record-list status. The list is not cleared but its use changes. More... | |
Standard_Boolean & | ModeSignOnly () |
Returns modifiable the SignOnly Mode If False (D), the counter normally counts If True, the counting work is turned off, Add only fills the LastValue, which can be used as signature, when a counter works from data which are not available from a Signature. More... | |
virtual void | Clear () |
void | Add (const Handle< Standard_Transient > &ent, const Standard_CString sign) |
Adds an entity with its signature, i.e. : More... | |
Standard_CString | LastValue () const |
Returns the last value recorded by Add (only if SignMode set) Cleared by Clear or Init. More... | |
void | Init (const Standard_CString name, const NCollection_IndexedDataMap< TCollection_AsciiString, Standard_Integer > &count, const NCollection_IndexedDataMap< TCollection_AsciiString, Handle< Standard_Transient >> &list, const Standard_Integer nbnuls) |
Aknowledges the list in once. Name identifies the Signature. More... | |
Handle< TColStd_HSequenceOfHAsciiString > | List (const Standard_CString root="") const |
Returns the list of signatures, as a sequence of strings (but without their respective counts). It is ordered. By default, for all the signatures. If <root> is given non empty, for the signatures which begin by <root> More... | |
Standard_Boolean | HasEntities () const |
Returns True if the list of Entities is aknowledged, else the method Entities will always return a Null Handle. More... | |
Standard_Integer | NbNulls () const |
Returns the count of null entities. More... | |
Standard_Integer | NbTimes (const Standard_CString sign) const |
Returns the number of times a signature was counted, 0 if it has not been recorded at all. More... | |
Handle< TColStd_HSequenceOfTransient > | Entities (const Standard_CString sign) const |
Returns the list of entities attached to a signature It is empty if <sign> has not been recorded It is a Null Handle if the list of entities is not known. More... | |
void | SetName (const Standard_CString name) |
Defines a name for a SignatureList (used to print it) More... | |
virtual Standard_CString | Name () const |
Returns the recorded Name. Remark : default is "..." (no SetName called) More... | |
virtual void | PrintCount (Standard_OStream &S) const |
Prints the counts of items (not the list) More... | |
virtual void | PrintList (Standard_OStream &S, const Handle< Interface_InterfaceModel > &model, const IFSelect_PrintCount mod=IFSelect_ListByItem) const |
Prints the lists of items, if they are present (else, prints a message "no list available") Uses <model> to determine for each entity to be listed, its number, and its specific identifier (by PrintLabel) <mod> gives a mode for printing : More... | |
virtual void | PrintSum (Standard_OStream &S) const |
Prints a summary Item which has the greatest count of entities For items which are numeric values : their count, maximum, minimum values, cumul, average. More... | |
Public Member Functions inherited from Standard_Transient | |
Standard_Transient () | |
Empty constructor. More... | |
Standard_Transient (const Standard_Transient &) | |
Copy constructor – does nothing. More... | |
Standard_Transient & | operator= (const Standard_Transient &) |
Assignment operator, needed to avoid copying reference counter. More... | |
virtual | ~Standard_Transient () |
Destructor must be virtual. More... | |
virtual void | Delete () const |
Memory deallocator for transient classes. More... | |
virtual const opencascade::handle< Standard_Type > & | DynamicType () const |
Returns a type descriptor about this object. More... | |
Standard_Boolean | IsInstance (const opencascade::handle< Standard_Type > &theType) const |
Returns a true value if this is an instance of Type. More... | |
Standard_Boolean | IsInstance (const Standard_CString theTypeName) const |
Returns a true value if this is an instance of TypeName. More... | |
Standard_Boolean | IsKind (const opencascade::handle< Standard_Type > &theType) const |
Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More... | |
Standard_Boolean | IsKind (const Standard_CString theTypeName) const |
Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More... | |
Standard_Transient * | This () const |
Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero. More... | |
Standard_Integer | GetRefCount () const |
Get the reference counter of this object. More... | |
void | IncrementRefCounter () const |
Increments the reference counter of this object. More... | |
Standard_Integer | DecrementRefCounter () const |
Decrements the reference counter of this object; returns the decremented value. More... | |
Additional Inherited Members | |
Public Types inherited from Standard_Transient | |
typedef void | base_type |
Returns a type descriptor about this object. More... | |
Static Public Member Functions inherited from Standard_Transient | |
static const char * | get_type_name () |
Returns a type descriptor about this object. More... | |
static const opencascade::handle< Standard_Type > & | get_type_descriptor () |
Returns type descriptor of Standard_Transient class. More... | |
A CheckCounter allows to see a CheckList (i.e. CheckIterator) not per entity, its messages, but per message, the entities attached (count and list). Because many messages can be repeated if they are due to systematic errors.
IFSelect_CheckCounter::IFSelect_CheckCounter | ( | const Standard_Boolean | withlist = Standard_False | ) |
Creates a CheckCounter, empty ready to work.
void IFSelect_CheckCounter::Analyse | ( | const Interface_CheckIterator & | list, |
const Handle< Interface_InterfaceModel > & | model, | ||
const Standard_Boolean | original = Standard_False , |
||
const Standard_Boolean | failsonly = Standard_False |
||
) |
Analyses a CheckIterator according a Model (which detains the entities for which the CheckIterator has messages), i.e. counts messages for entities If <original> is True, does not consider final messages but those before interpretation (such as inserting variables : integers, reals, strings) If <failsonly> is True, only Fails are considered Remark : global messages are recorded with a Null entity.
void IFSelect_CheckCounter::SetSignature | ( | const Handle< MoniTool_SignText > & | sign | ) |
Sets a specific signature Else, the current SignType (in the model) is used.
Handle< MoniTool_SignText > IFSelect_CheckCounter::Signature | ( | ) | const |
Returns the Signature;.