|
TorqueScript Reference
|
Inherits SimObject.
Public Member Functions | |
| void | addComment (string comment) |
| void | addData (string text) |
| void | addHeader () |
| void | addNewElement (string name) |
| void | addText (string text) |
| string | attribute (string attribute) |
| bool | attributeExists (string attribute) |
| float | attributeF32 (string attribute) |
| int | attributeS32 (string attribute) |
| void | clear () |
| void | clearError () |
| string | elementValue () |
| string | firstAttribute () |
| string | getData () |
| string | getErrorDesc () |
| string | getText () |
| string | lastAttribute () |
| int | loadFile (string fileName) |
| string | nextAttribute () |
| bool | nextSiblingElement (string name) |
| int | parse (string txtXML) |
| void | popElement () |
| string | prevAttribute () |
| bool | pushChildElement (int index) |
| bool | pushFirstChildElement (string name) |
| void | pushNewElement (string name) |
| string | readComment (S32 index) |
| void | removeText () |
| void | reset () |
| int | saveFile (string fileName) |
| void | setAttribute (string attributeName, string attributeValue) |
| void | setObjectAttributes (string attributeValue) |
Public Member Functions inherited from SimObject | |
| string | call (functionName,[args]*) |
| int | clone ([bool copyDynamicFields?=false]?) |
| void | delete () |
| void | dump () |
| void | dumpClassHierarchy () |
| const char * | getClassName () |
| string | getClassNamespace () |
| string | getDynamicField (index) |
| int | getDynamicFieldCount () |
| string | getField (int index) |
| int | getFieldCount () |
| const char * | getFieldType (fieldName) |
| const char * | getFieldValue (fieldName) |
| int | getGroup () |
| int | getId () |
| string | getInternalName () |
| const char * | getName () |
| string | getProgenitorFile () |
| string | getSuperClassNamespace () |
| int | getType () |
| bool | isChildOfGroup () |
| bool | isMemberOfClass (string classname) |
| bool | isMethod (const char *methodName) |
| bool | isMethod (string method name) |
| bool | isTimerActive () |
| bool | save (fileName,[selectedOnly]?) |
| int | schedule (time, command,[arg]*) |
| void | setClassNamespace () |
| bool | setFieldValue (fieldName, value) |
| void | setInternalName (string InternalName) |
| void | setName (newName) |
| void | setProgenitorFile (file) |
| void | setSuperClassNamespace () |
| bool | startTimer (callbackFunction, float timePeriod,[repeat]?) |
| void | stopTimer () |
Additional Inherited Members | |
Static Public Member Functions inherited from SimObject | |
| static S32 QSORT_CALLBACK | compareFields (const void *a, const void *b) |
| void addComment | ( | string | comment | ) |
Add the given comment as a child of current stack element.
| comment | The desired comment to add |
| void addData | ( | string | text | ) |
Add the given text as a child of current stack element.
| The | desired text to add |
| void addHeader | ( | ) |
Add XML header to document.
| void addNewElement | ( | string | name | ) |
Create new element as child of current stack element and push new element on to stack.
| name | The anme of the new element |
| void addText | ( | string | text | ) |
Add the given text as a child of current stack element.
| text | The desired text to add |
| string attribute | ( | string | attribute | ) |
Get attribute value if it exists.
| attribute | The desired SimXMLDocument attribute |
| bool attributeExists | ( | string | attribute | ) |
Get true if named attribute exists.
| attribute | The desired attribute's name |
| float attributeF32 | ( | string | attribute | ) |
Get attribute value if it exists.
| attribute | The desired SimXMLDocument attribute |
| int attributeS32 | ( | string | attribute | ) |
Get attribute value if it exists.
| attribute | The desired SimXMLDocument attribute |
| void clear | ( | ) |
Clear contents of XML document.
| void clearError | ( | ) |
Clear error description.
| string elementValue | ( | ) |
Get element value if it exists.
| string firstAttribute | ( | ) |
Obtain the name of the current element's first attribute.
| string getData | ( | ) |
Gets the text from the current stack element.
| string getErrorDesc | ( | ) |
Get current error description.
| string getText | ( | ) |
Gets the text from the current stack element.
| string lastAttribute | ( | ) |
Obtain the name of the current element's last attribute.
| int loadFile | ( | string | fileName | ) |
Load file from given filename.
| fileName | The name of the desired file |
| string nextAttribute | ( | ) |
Get the name of the next attribute for the current element after a call to firstAttribute().
| bool nextSiblingElement | ( | string | name | ) |
Set top element on stack to next element with given name.
| name | The name of the element. |
| int parse | ( | string | txtXML | ) |
Create document from XML string.
| txtXML | The text of the XML document |
| void popElement | ( | ) |
Pop last element off of stack.
| string prevAttribute | ( | ) |
Get the name of the previous attribute for the current element after a call to lastAttribute().
| bool pushChildElement | ( | int | index | ) |
Push the child element at the given index onto stack.
| index | A nonnegative integer representing the index of the child element |
| bool pushFirstChildElement | ( | string | name | ) |
Push first child element with given name onto stack.
| name | The name of the child element |
| void pushNewElement | ( | string | name | ) |
Create new element as child of current stack element and push new element on to stack.
| name | The anme of the new element |
| string readComment | ( | S32 | index | ) |
Returns the comment at the specified index.
| index | The index of the desired comment as a nonnegative integer value |
| void removeText | ( | ) |
Remove any text on the current stack element.
| void reset | ( | ) |
Set this to default state at construction.
| int saveFile | ( | string | fileName | ) |
Save file to given filename.
| fileName | A string presenting the filename to save the XML document as |
| void setAttribute | ( | string | attributeName, |
| string | attributeValue | ||
| ) |
Set attribute of top stack element to given value.
| attributeName | The name of the attribute of the element you wish to set |
| attributeValue | The value you wish to set the given attribute to |
| void setObjectAttributes | ( | string | attributeValue | ) |
Set attribute of top stack element to given value.
| attributeValue | The value you wish to set the given attribute to |
1.8.3.1