// 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 _Dynamic_FuzzyDefinitionsDictionary_HeaderFile #define _Dynamic_FuzzyDefinitionsDictionary_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_DefineHandle_HeaderFile #include #endif #ifndef _Handle_Dynamic_FuzzyDefinitionsDictionary_HeaderFile #include #endif #ifndef _Handle_TCollection_HAsciiString_HeaderFile #include #endif #ifndef _Standard_Time_HeaderFile #include #endif #ifndef _Handle_Dynamic_SequenceOfFuzzyDefinitions_HeaderFile #include #endif #ifndef _MMgt_TShared_HeaderFile #include #endif #ifndef _Standard_CString_HeaderFile #include #endif #ifndef _Handle_Dynamic_Parameter_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _Handle_Dynamic_FuzzyClass_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif #ifndef _Standard_OStream_HeaderFile #include #endif class TCollection_HAsciiString; class Dynamic_SequenceOfFuzzyDefinitions; class Dynamic_Parameter; class Dynamic_FuzzyClass; //! This class groups in a dictionary all of the
//! various definitions of an object. It also allows
//! the sharing of the same definition by more than
//! one FuzzyInstance to preserve a global coherence
//! and also to manage the memory. To use this class
//! an inheritance is necessary with perhaps the
//! overload of the Switch method if the parameter
//! types are not of the type BooleanParameter,
//! IntegerParameter, RealParameter and
//! StringParameter.
class Dynamic_FuzzyDefinitionsDictionary : public MMgt_TShared { public: //! Starting with a file named , fills the
//! dictionary with all the wishes definitions.
Standard_EXPORT void Creates(const Standard_CString afilename) ; //! This virtual method allows the user to add recognition
//! of its own parameters when reading the file to fill
//! the dictionary.
Standard_EXPORT virtual Handle_Dynamic_Parameter Switch(const Standard_CString aname,const Standard_CString atype,const Standard_CString avalue) const; //! Returns from the dictionary in the out variable
//! a reference to the right instance of the
//! definition identified by its type . The method
//! returns true if the definition exist, false otherwise.
Standard_EXPORT Standard_Boolean Definition(const Standard_CString atype,Handle(Dynamic_FuzzyClass)& adefinition) const; //! Returns true if there has been no modification of the
//! file fuzzyclasses.dat since the creation of the
//! dictionary object, false otherwise.
Standard_EXPORT Standard_Boolean UpToDate() const; //! Returns the number of definitions stored in the
//! dictionary.
Standard_EXPORT Standard_Integer NumberOfDefinitions() const; //! Returns a reference on the definition identified by
//! the index .
Standard_EXPORT Handle_Dynamic_FuzzyClass Definition(const Standard_Integer anindex) const; //! Useful for debugging.
Standard_EXPORT void Dump(Standard_OStream& astream) const; DEFINE_STANDARD_RTTI(Dynamic_FuzzyDefinitionsDictionary) protected: //! Deferred constructor of the class.
Standard_EXPORT Dynamic_FuzzyDefinitionsDictionary(); private: Handle_TCollection_HAsciiString thefilename; Standard_Time thetime; Handle_Dynamic_SequenceOfFuzzyDefinitions thesequenceoffuzzydefinitions; }; // other Inline functions and methods (like "C++: function call" methods) #endif