// This file is generated by WOK (CPPExt). // Please do not edit this file; modify original file instead. // The copyright and license terms as defined for the original file apply to // this header file considered to be the "object code" form of the original source. #ifndef _IFSelect_Signature_HeaderFile #define _IFSelect_Signature_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_DefineHandle_HeaderFile #include #endif #ifndef _Handle_IFSelect_Signature_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif #ifndef _Handle_TColStd_HSequenceOfAsciiString_HeaderFile #include #endif #ifndef _TCollection_AsciiString_HeaderFile #include #endif #ifndef _Interface_SignType_HeaderFile #include #endif #ifndef _Standard_CString_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _Handle_Standard_Transient_HeaderFile #include #endif #ifndef _Handle_Interface_InterfaceModel_HeaderFile #include #endif class TColStd_HSequenceOfAsciiString; class TCollection_AsciiString; class Standard_Transient; class Interface_InterfaceModel; //! Signature provides the basic service used by the classes
//! SelectSignature and Counter (i.e. Name, Value), which is :
//! - for an entity in a model, give a characteristic string, its
//! signature
//! This string has not to be unique in the model, but gives a
//! value for such or such important feature.
//! Exemples : Dynamic Type; Category; etc
class IFSelect_Signature : public Interface_SignType { public: //! Sets the information data to tell "integer cases" with
//! possible min and max values
//! To be called when creating
Standard_EXPORT void SetIntCase(const Standard_Boolean hasmin,const Standard_Integer valmin,const Standard_Boolean hasmax,const Standard_Integer valmax) ; //! Tells if this Signature gives integer values
//! and returns values from SetIntCase if True
Standard_EXPORT Standard_Boolean IsIntCase(Standard_Boolean& hasmin,Standard_Integer& valmin,Standard_Boolean& hasmax,Standard_Integer& valmax) const; //! Adds a possible case
//! To be called when creating, IF the list of possible cases for
//! Value is known when starting
//! For instance, for CDL types, rather do not fill this,
//! but for a specific enumeration (such as a status), can be used
Standard_EXPORT void AddCase(const Standard_CString acase) ; //! Returns the predefined list of possible cases, filled by AddCase
//! Null Handle if no predefined list (hence, to be counted)
//! Useful to filter on really possible vase, for instance, or
//! for a help
Standard_EXPORT Handle_TColStd_HSequenceOfAsciiString CaseList() const; //! Returns an identification of the Signature (a word), given at
//! initialization time
//! Returns the Signature for a Transient object. It is specific
//! of each sub-class of Signature. For a Null Handle, it should
//! provide ""
//! It can work with the model which contains the entity
Standard_EXPORT Standard_CString Name() const; //! The label of a Signature uses its name as follow :
//! "Signature : "
Standard_EXPORT TCollection_AsciiString Label() const; //! Tells if the value for in matches a text, with
//! a criterium .
//! The default definition calls MatchValue
//! Can be redefined
Standard_EXPORT virtual Standard_Boolean Matches(const Handle(Standard_Transient)& ent,const Handle(Interface_InterfaceModel)& model,const TCollection_AsciiString& text,const Standard_Boolean exact) const; //! Default procedure to tell if a value matches a text
//! with a criterium . = True requires equality,
//! else only contained (no reg-exp)
Standard_EXPORT static Standard_Boolean MatchValue(const Standard_CString val,const TCollection_AsciiString& text,const Standard_Boolean exact) ; //! This procedure converts an Integer to a CString
//! It is a convenient way when the value of a signature has the
//! form of a simple integer value
//! The value is to be used immediately (one buffer only, no copy)
Standard_EXPORT static Standard_CString IntValue(const Standard_Integer val) ; DEFINE_STANDARD_RTTI(IFSelect_Signature) protected: //! Initializes a Signature with its name
Standard_EXPORT IFSelect_Signature(const Standard_CString name); TCollection_AsciiString thename; private: Standard_Integer thecasi[3]; Handle_TColStd_HSequenceOfAsciiString thecasl; }; // other Inline functions and methods (like "C++: function call" methods) #endif