This class is the root class for describing
variables. A variable is useful to specify the
signature of a method in terms of arguments and if
necessary variables and/or constants needed inside
a function. This set of information defines a
scope for these variables. This class is directly
used by the MethodDefinition class. From this
class is derived the instances of variables which
are used by the classes under the MethodInstance
class. A variable is composed by :
* an identifier for giving it a name,
* a type of expected value,
* possibly a default value,
* a mode which explains if the variable is :
More...
#include <Dynamic_Variable.hxx>
Public Member Functions |
| Dynamic_Variable () |
| Creates and returns an empty instance of this class.
|
void | Parameter (const Handle< Dynamic_Parameter > &aparameter) |
| Sets the parameter <aparameter> in <me>. This
parameter gives the name, the type of value, and if
necessary the default value of the variable.
|
Handle_Dynamic_Parameter | Parameter () const |
| Returns the parameter stored in <me>.
|
void | Mode (const Dynamic_ModeEnum amode) |
| Sets the mode to the variable. the mode is to take in
the enumeration IN, OUT, INOUT, INTERNAL, CONSTANT,
which describes the type of the variable.
|
Dynamic_ModeEnum | Mode () const |
| Returns the mode of the variable.
|
void | Dump (Standard_OStream &astream) const |
| Useful for debugging.
|
Detailed Description
- an input and/or output argument to the method,
- an internal or constant variable used in the
body of the method.
Constructor & Destructor Documentation
Dynamic_Variable::Dynamic_Variable |
( |
| ) |
|
Member Function Documentation
Handle_Dynamic_Parameter Dynamic_Variable::Parameter |
( |
| ) |
const |
The documentation for this class was generated from the following file: