|
| virtual | ~ScriptNode () |
| | Destructor. More...
|
| |
| virtual bool | hasChildNodes () const =0 |
| | Returns true if the node contains child nodes. More...
|
| |
| virtual ScriptNode * | getNamedNode (const Str &nodeName)=0 |
| | Returns the child node, by name, or NULL if none. More...
|
| |
| virtual ScriptNode * | newChildNode (const Str &nodeName)=0 |
| | Returns a new child node than can contain other nodes. More...
|
| |
| virtual ScriptNode * | newChildFunction (const Str &functionName, const Str &functionBody, Logger &logger)=0 |
| | Returns a new child node that is a function. More...
|
| |
| virtual int | getNodeCount (const Str &nodeName) const =0 |
| | Returns the number of indexed (array, or list-like) nodes Returns 0 is this is not a table. More...
|
| |
| virtual ScriptNode * | getIndexedNode (unsigned int index)=0 |
| | Returns the indexed (array, or list-like) node at the zero-based index, or NULL if none. More...
|
| |
| virtual ScriptNode * | getParentNode () const =0 |
| | Returns the parent node, or NULL if this is the root. More...
|
| |
| virtual int | getIndex () const =0 |
| | Returns the index of the node, -1 if named. More...
|
| |
| virtual const Str & | getName () const =0 |
| | Returns the name of the node, undefined if indexed. More...
|
| |
| virtual bool | readBool (bool &readTo) const =0 |
| | Sets readTo to the value of the node, as a boolean Returns true if read success. More...
|
| |
| virtual bool | readDouble (double &readTo) const =0 |
| | Sets readTo to the value of the node, as a double Returns true if read success. More...
|
| |
| virtual bool | readString (Str &readTo) const =0 |
| | Sets readTo to the value of the node, unsigned char string Returns true if read success. More...
|
| |
| virtual DataValue * | asNewDataValue ()=0 |
| | If the node contains a dataValue, materialize such a dataValue Use the Unit + value paradigm, if possible. More...
|
| |
| virtual bool | execute (FlexArray< DataReader * > &inputs, FlexArray< SettingReader * > &settings, FlexArray< DataWriter * > &outputs, FlexArray< const Unit * > &outUnits, Logger &logger)=0 |
| | Attempt to execute the function contained in this node. More...
|
| |
| virtual bool | execute (FlexArray< DataReader * > &inputs, FlexArray< SettingReader * > &settings, bool &boolOutput, Logger &logger)=0 |
| | Attempt to execute the function contained in this node, returning only a single boolean value. More...
|
| |
| virtual bool | execute (Logger &logger)=0 |
| | Attempt to execute the function contained in this node, with no inputs and no return value. More...
|
| |
| virtual Str | toString () const =0 |
| | Returns a string representation of this node, with its ancestors, separated by "." characters. More...
|
| |
Abstract base class for nodes in tree-like scripts.
Intended to allow missions to be scripted in a variety of formats.