Open CASCADE Technology
6.5.4
|
A dynamic class is defined as a sequence of
parameters and as a sequence of methods. The
specifications are similar to C++ classes. The
class has to be defined in terms of fields
(Parameters) and methods. An instance of the class
must be made to set the fields and to use the
functionalities.
#include <Dynamic_DynamicClass.hxx>
Public Member Functions | |
Dynamic_DynamicClass (const Standard_CString aname) | |
Creates a new empty instance of DynamicClass. | |
void | Parameter (const Handle< Dynamic_Parameter > &aparameter) |
Adds another parameter <aparameter> to the sequence of parameter definitions. | |
void | CompiledMethod (const Standard_CString amethod, const Standard_CString anaddress) |
Adds another method to the sequence of methods. It has <amethod> as name and <anaddress> as mangled name of the corresponding C++ function which must be called. | |
void | InterpretedMethod (const Standard_CString amethod, const Standard_CString afile) |
Adds another method to the sequence of methods. It has <amethod> as name and <afile> as interpreted file. | |
virtual Handle_Dynamic_Method | Method (const Standard_CString amethod) const |
Returns a reference to the method object identified by the string <amethod>. | |
virtual Handle_Dynamic_DynamicInstance | Instance () const |
Returns an instance object of this class. | |
virtual void | Dump (Standard_OStream &astream) const |
useful for debugging. |
void Dynamic_DynamicClass::CompiledMethod | ( | const Standard_CString | amethod, |
const Standard_CString | anaddress | ||
) |
virtual void Dynamic_DynamicClass::Dump | ( | Standard_OStream & | astream | ) | const [virtual] |
virtual Handle_Dynamic_DynamicInstance Dynamic_DynamicClass::Instance | ( | ) | const [virtual] |
Reimplemented in Dynamic_DynamicDerivedClass.
void Dynamic_DynamicClass::InterpretedMethod | ( | const Standard_CString | amethod, |
const Standard_CString | afile | ||
) |
virtual Handle_Dynamic_Method Dynamic_DynamicClass::Method | ( | const Standard_CString | amethod | ) | const [virtual] |
Reimplemented in Dynamic_DynamicDerivedClass.
void Dynamic_DynamicClass::Parameter | ( | const Handle< Dynamic_Parameter > & | aparameter | ) |