Open CASCADE Technology 6.6.0
|
This inherited class is for describing the
definition of a method. This definition is
composed by its name which is readable by the type
function and a collection of variables which
defines the signature of the method definition in
term of arguments passed to the function and also
the useful internal or constant variables if the
function is a composite method. This class is also
a deferred class and can not be used directly
because it is necessary to specify if the method
is compiled, interpreted or composite.
#include <Dynamic_MethodDefinition.hxx>
Public Member Functions | |
virtual TCollection_AsciiString | Type () const |
Returns the name of the method definition. | |
void | AddVariable (const Handle< Dynamic_Parameter > &aparameter, const Dynamic_ModeEnum amode, const Standard_Boolean agroup=Standard_False) |
Adds a new variable created from the parameter <aparameter>, which defines the name of the variable its type and if necessary its default value, the mode <amode> which precise if it is an in, out, inout, internal or constant variable and the flag <agroup> for accepting a set of homogeneous variables. with the parameter value <aparameter>. | |
virtual void | Dump (Standard_OStream &astream) const |
Useful for debugging. | |
Protected Member Functions | |
Dynamic_MethodDefinition (const Standard_CString aname) | |
Creates a MethodDefinition with <aname> as type. |
Dynamic_MethodDefinition::Dynamic_MethodDefinition | ( | const Standard_CString | aname | ) | [protected] |
void Dynamic_MethodDefinition::AddVariable | ( | const Handle< Dynamic_Parameter > & | aparameter, |
const Dynamic_ModeEnum | amode, | ||
const Standard_Boolean | agroup = Standard_False |
||
) |
virtual void Dynamic_MethodDefinition::Dump | ( | Standard_OStream & | astream | ) | const [virtual] |
Reimplemented from Dynamic_Method.
Reimplemented in Dynamic_CompositMethod.
virtual TCollection_AsciiString Dynamic_MethodDefinition::Type | ( | ) | const [virtual] |
Implements Dynamic_Method.