// 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_MethodDefinitionsDictionary_HeaderFile #define _Dynamic_MethodDefinitionsDictionary_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_DefineHandle_HeaderFile #include #endif #ifndef _Handle_Dynamic_MethodDefinitionsDictionary_HeaderFile #include #endif #ifndef _Handle_TCollection_HAsciiString_HeaderFile #include #endif #ifndef _Standard_Time_HeaderFile #include #endif #ifndef _Handle_Dynamic_SequenceOfMethodDefinitions_HeaderFile #include #endif #ifndef _Standard_Transient_HeaderFile #include #endif #ifndef _Standard_CString_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _Handle_Dynamic_Method_HeaderFile #include #endif #ifndef _Handle_Dynamic_Parameter_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif #ifndef _Standard_OStream_HeaderFile #include #endif class TCollection_HAsciiString; class Dynamic_SequenceOfMethodDefinitions; class Dynamic_Method; class Dynamic_Parameter; //! This class groups in a dictionary of all the
//! various definitions of methods. It also allows the
//! share of the same definition by more than one
//! MethodInstance 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_MethodDefinitionsDictionary : public Standard_Transient { public: //! Starting with a file named , fills the
//! dictionary with all the wishes definitions.
Standard_EXPORT void Creates(const Standard_CString afilename) ; //! This method sets the new definition in
//! the dictionary. It returns true if the operation is
//! successful, false otherwise.
Standard_EXPORT Standard_Boolean Definition(const Handle(Dynamic_Method)& adefinition) ; //! This virtual method allows the user to add recognition
//! of its own parameters when reading the file to fill
//! the dictionary.
Standard_EXPORT 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_Method)& adefinition) const; //! Returns true if there has been no modification of the
//! file method-definitions.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_Method Definition(const Standard_Integer anindex) const; //! Useful for debugging.
Standard_EXPORT void Dump(Standard_OStream& astream) const; DEFINE_STANDARD_RTTI(Dynamic_MethodDefinitionsDictionary) protected: //! Deferred constructor of the class.
Standard_EXPORT Dynamic_MethodDefinitionsDictionary(); private: Handle_TCollection_HAsciiString thefilename; Standard_Time thetime; Handle_Dynamic_SequenceOfMethodDefinitions thesequenceofmethoddefinitions; }; // other Inline functions and methods (like "C++: function call" methods) #endif