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

This class is the root class to dynamically define
objects of a given type but with various
definitions. This root class contains a parameter
list which describes in the definition context all
the useful information and in the instance context
only the redefined values. This class is deferred
because no instance has to be created.

#include <Dynamic_FuzzyClass.hxx>

Inheritance diagram for Dynamic_FuzzyClass:
Inheritance graph
[legend]

Public Member Functions

virtual TCollection_AsciiString Type () const =0
 This deferred method must returns the type of the
object. If the instance is of the type FuzzyDefinition
the method simply returns the field <thetype>. If the
instance is of the type FuzzyInstance the method calls
the Type method on the true definition.

Handle_Dynamic_ParameterNode FirstParameter () const
 Returns the head of the list of parameters. For the
FuzzyDefinition class this method returns the head of
the exaustive list of parameters defining the object
and for the FuzzyInstance it just returns the head of
the overloaded values.

Standard_Boolean Parameter (const Standard_CString aparameter) const
 Returns true if there is a parameter with <aparameter>
as name, false otherwise.

void Parameter (const Handle< Dynamic_Parameter > &aparameter)
 Adds another parameter <aparameter> to the sequence of
parameters.

virtual void Parameter (const Standard_CString aparameter, const Standard_Boolean avalue)
 Adds to the instance <me> the parameter <aparameter>
with the boolean value <avalue>.

virtual void Parameter (const Standard_CString aparameter, const Standard_Integer avalue)
 Adds to the instance <me> the parameter <aparameter>
with the integer value <avalue>.

virtual void Parameter (const Standard_CString aparameter, const Standard_Real avalue)
 Adds to the instance <me> the parameter <aparameter>
with the real value <avalue>.

virtual void Parameter (const Standard_CString aparameter, const Standard_CString astring)
 Adds to the instance <me> the parameter <aparameter>
with the string <astring>.

virtual void Parameter (const Standard_CString aparameter, const Handle< Standard_Transient > &anobject)
 Adds to the instance <me> the parameter <aparameter>
with the object value <anobject>.

virtual Standard_Boolean Value (const Standard_CString aparameter, Standard_Boolean &avalue) const
 Returns True, if there is a parameter <aparameter>
previously stored in the instance <me> and there is
the corresponding boolean value in the output argument
<avalue>, False otherwise.

virtual Standard_Boolean Value (const Standard_CString aparameter, Standard_Integer &avalue) const
 Returns True, if there is a parameter <aparameter>
previously stored in the instance <me> and there is
the corresponding integer value in the output argument
<avalue>, False otherwise.

virtual Standard_Boolean Value (const Standard_CString aparameter, Standard_Real &avalue) const
 Returns True, if there is a parameter <aparameter>
previously stored in the instance <me> and there is
the corresponding real value in the output argument
<avalue>, False otherwise.

virtual Standard_Boolean Value (const Standard_CString aparameter, TCollection_AsciiString &avalue) const
 Returns True, if there is a parameter <aparameter>
previously stored in the instance <me> and there is
the corresponding string in the output argument
<avalue>, False otherwise.

virtual Standard_Boolean Value (const Standard_CString aparameter, Handle< Standard_Transient > &avalue) const
 Returns True, if there is a parameter <aparameter>
previously stored in the instance <me> and there is
the corresponding object value in the output argument
<avalue>, False otherwise.

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

Protected Member Functions

 Dynamic_FuzzyClass ()
 Creates a FuzzyClass.


Constructor & Destructor Documentation

Dynamic_FuzzyClass::Dynamic_FuzzyClass ( ) [protected]

Member Function Documentation

virtual void Dynamic_FuzzyClass::Dump ( Standard_OStream astream) const [virtual]
Handle_Dynamic_ParameterNode Dynamic_FuzzyClass::FirstParameter ( ) const
void Dynamic_FuzzyClass::Parameter ( const Handle< Dynamic_Parameter > &  aparameter)
virtual void Dynamic_FuzzyClass::Parameter ( const Standard_CString  aparameter,
const Standard_CString  astring 
) [virtual]

Reimplemented in Materials_FuzzyInstance.

virtual void Dynamic_FuzzyClass::Parameter ( const Standard_CString  aparameter,
const Handle< Standard_Transient > &  anobject 
) [virtual]

Reimplemented in Materials_FuzzyInstance.

virtual void Dynamic_FuzzyClass::Parameter ( const Standard_CString  aparameter,
const Standard_Boolean  avalue 
) [virtual]

Reimplemented in Materials_FuzzyInstance.

virtual void Dynamic_FuzzyClass::Parameter ( const Standard_CString  aparameter,
const Standard_Real  avalue 
) [virtual]

Reimplemented in Materials_FuzzyInstance.

virtual void Dynamic_FuzzyClass::Parameter ( const Standard_CString  aparameter,
const Standard_Integer  avalue 
) [virtual]

Reimplemented in Materials_FuzzyInstance.

Standard_Boolean Dynamic_FuzzyClass::Parameter ( const Standard_CString  aparameter) const
virtual TCollection_AsciiString Dynamic_FuzzyClass::Type ( ) const [pure virtual]
virtual Standard_Boolean Dynamic_FuzzyClass::Value ( const Standard_CString  aparameter,
Standard_Boolean avalue 
) const [virtual]

Reimplemented in Materials_FuzzyInstance.

virtual Standard_Boolean Dynamic_FuzzyClass::Value ( const Standard_CString  aparameter,
Standard_Real avalue 
) const [virtual]

Reimplemented in Materials_FuzzyInstance.

virtual Standard_Boolean Dynamic_FuzzyClass::Value ( const Standard_CString  aparameter,
Standard_Integer avalue 
) const [virtual]

Reimplemented in Materials_FuzzyInstance.

virtual Standard_Boolean Dynamic_FuzzyClass::Value ( const Standard_CString  aparameter,
TCollection_AsciiString avalue 
) const [virtual]

Reimplemented in Materials_FuzzyInstance.

virtual Standard_Boolean Dynamic_FuzzyClass::Value ( const Standard_CString  aparameter,
Handle< Standard_Transient > &  avalue 
) const [virtual]

Reimplemented in Materials_FuzzyInstance.


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