#include <CDLInterface.hh>
Inherits CDLNamedEntity, and CDLTypedEntity.
Public Member Functions | |
| bool | Register () |
| bool | setArgList (utils::ManagedList< CDLVariable > *args) |
| bool | setParamList (utils::ManagedList< CDLVariable > *params) |
| CDLVariable * | findParam (const char *) |
| bool | removeParam (const char *) |
| CDLVariable * | nextParam () |
| int | numArgs () |
| CDLVariable * | nextArg () |
| bool | nextArg (double &arg) |
| bool | nextArg (char *&arg) |
| bool | nextArgF (double &arg) |
| bool | nextArgF (char *&arg) |
| Object * | setupObject (Object *, const char *) |
| bool | addBaseNode (Object *, const char *) |
| virtual bool | preCode () |
| virtual bool | postCode () |
| virtual double | Calculate () |
Protected Attributes | |
| int | _i |
| int | _pi |
| utils::ManagedList< CDLVariable > * | _args |
| utils::ListIterator< CDLVariable > * | _iter |
| utils::ManagedList< CDLVariable > * | _params |
| utils::ListIterator< CDLVariable > * | _piter |
|
||||||||||||
|
This method implements common functionality for adding objects to world |
|
|
This method is used for numeric functions |
|
|
These methods retrieve the next argument for a method. If an argument is not given, they return false. |
|
|
Unlike the below methods, this function returns a pointer to a CDLVariable, so the user can ascertain the type themselves, useful for functions with various possible input types. This method will return NULL at the end of the list. |
|
|
These two methods are wrappers for the previous two. The only difference is that if it fails, these print a message and exit. |
|
|
Returns the number of arguments given in a function call |
|
|
The following two methods are necessary for simulation functions |
|
|
This method registers the function with the CDLInterface singleton |
|
|
This method sets the pointer to the list of arguments, as supplied by the parser, before calling the processing sections |
|
||||||||||||
|
This method sets up common params like name and surface |