Open CASCADE Technology 6.6.0
|
Multiple Signature : ordered list of other Signatures
It concatenates on a same line the result of its sub-items
separated by sets of 3 blanks
It is possible to define tabulations between sub-items
Moreover, match rules are specific
#include <IFSelect_SignMultiple.hxx>
Public Member Functions | |
IFSelect_SignMultiple (const Standard_CString name) | |
Creates an empty SignMultiple with a Name This name should take expected tabulations into account | |
void | Add (const Handle< IFSelect_Signature > &subsign, const Standard_Integer width=0, const Standard_Boolean maxi=Standard_False) |
Adds a Signature. Width, if given, gives the tabulation If <maxi> is True, it is a forced tabulation (overlength is replaced by a final dot) If <maxi> is False, just 3 blanks follow an overlength | |
Standard_CString | Value (const Handle< Standard_Transient > &ent, const Handle< Interface_InterfaceModel > &model) const |
Concatenates the values of sub-signatures, with their tabulations | |
virtual Standard_Boolean | Matches (const Handle< Standard_Transient > &ent, const Handle< Interface_InterfaceModel > &model, const TCollection_AsciiString &text, const Standard_Boolean exact) const |
Specialized Match Rule If <exact> is False, simply checks if at least one sub-item matches If <exact> is True, standard match with Value (i.e. tabulations must be respected) |
IFSelect_SignMultiple::IFSelect_SignMultiple | ( | const Standard_CString | name | ) |
void IFSelect_SignMultiple::Add | ( | const Handle< IFSelect_Signature > & | subsign, |
const Standard_Integer | width = 0 , |
||
const Standard_Boolean | maxi = Standard_False |
||
) |
virtual Standard_Boolean IFSelect_SignMultiple::Matches | ( | const Handle< Standard_Transient > & | ent, |
const Handle< Interface_InterfaceModel > & | model, | ||
const TCollection_AsciiString & | text, | ||
const Standard_Boolean | exact | ||
) | const [virtual] |
Reimplemented from IFSelect_Signature.
Standard_CString IFSelect_SignMultiple::Value | ( | const Handle< Standard_Transient > & | ent, |
const Handle< Interface_InterfaceModel > & | model | ||
) | const [virtual] |
Implements Interface_SignType.