Open CASCADE Technology 6.6.0
Public Member Functions | Protected Member Functions
Dynamic_FuzzyDefinitionsDictionary Class Reference

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.

#include <Dynamic_FuzzyDefinitionsDictionary.hxx>

Inheritance diagram for Dynamic_FuzzyDefinitionsDictionary:
Inheritance graph
[legend]

Public Member Functions

void Creates (const Standard_CString afilename)
 Starting with a file named <afilename>, fills the
dictionary with all the wishes definitions.

virtual Handle_Dynamic_Parameter Switch (const Standard_CString aname, const Standard_CString atype, const Standard_CString avalue) const
 This virtual method allows the user to add recognition
of its own parameters when reading the file to fill
the dictionary.

Standard_Boolean Definition (const Standard_CString atype, Handle< Dynamic_FuzzyClass > &adefinition) const
 Returns from the dictionary in the out variable
<adefinition> a reference to the right instance of the
definition identified by its type <atype>. The method
returns true if the definition exist, false otherwise.

Standard_Boolean UpToDate () const
 Returns true if there has been no modification of the
file fuzzyclasses.dat since the creation of the
dictionary object, false otherwise.

Standard_Integer NumberOfDefinitions () const
 Returns the number of definitions stored in the
dictionary.

Handle_Dynamic_FuzzyClass Definition (const Standard_Integer anindex) const
 Returns a reference on the definition identified by
the index <anidex>.

void Dump (Standard_OStream &astream) const
 Useful for debugging.

Protected Member Functions

 Dynamic_FuzzyDefinitionsDictionary ()
 Deferred constructor of the class.


Constructor & Destructor Documentation

Dynamic_FuzzyDefinitionsDictionary::Dynamic_FuzzyDefinitionsDictionary ( ) [protected]

Member Function Documentation

void Dynamic_FuzzyDefinitionsDictionary::Creates ( const Standard_CString  afilename)
Standard_Boolean Dynamic_FuzzyDefinitionsDictionary::Definition ( const Standard_CString  atype,
Handle< Dynamic_FuzzyClass > &  adefinition 
) const
Handle_Dynamic_FuzzyClass Dynamic_FuzzyDefinitionsDictionary::Definition ( const Standard_Integer  anindex) const
void Dynamic_FuzzyDefinitionsDictionary::Dump ( Standard_OStream astream) const
Standard_Integer Dynamic_FuzzyDefinitionsDictionary::NumberOfDefinitions ( ) const
virtual Handle_Dynamic_Parameter Dynamic_FuzzyDefinitionsDictionary::Switch ( const Standard_CString  aname,
const Standard_CString  atype,
const Standard_CString  avalue 
) const [virtual]

Reimplemented in Materials_MaterialDefinition.

Standard_Boolean Dynamic_FuzzyDefinitionsDictionary::UpToDate ( ) const

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines