|
|
Inherits SimObject.
Public Member Functions | |
| virtual void | close () |
| virtual bool | isEOF () |
| virtual bool | openForAppend (filename) |
| virtual bool | openForRead (filename) |
| virtual bool | openForWrite (filename) |
| virtual string | peekLine () |
| virtual string | readLine () |
| virtual void | writeLine (text) |
| virtual void | writeObject (SimObject, object prepend) |
Public Member Functions inherited from SimObject | |
| virtual void | addFieldFilter (fieldName) |
| virtual string | call (%args) |
| virtual int | clone ([bool copyDynamicFields?=false]) |
| virtual void | delete () |
| virtual void | dump () |
| virtual void | dumpClassHierarchy () |
| virtual string | getClassName () |
| virtual string | getClassNamespace () |
| virtual string | getDynamicField (index) |
| virtual int | getDynamicFieldCount () |
| virtual string | getField (int index) |
| virtual int | getFieldCount () |
| virtual string | getFieldType (fieldName) |
| virtual string | getFieldValue (fieldName) |
| virtual int | getGroup () |
| virtual int | getId () |
| virtual string | getInternalName () |
| virtual string | getName () |
| virtual string | getProgenitorFile () |
| virtual string | getSuperClassNamespace () |
| virtual int | getType () |
| virtual bool | isChildOfGroup () |
| virtual bool | isMemberOfClass (string classname) |
| virtual bool | isMethod (string method name) |
| virtual bool | isTimerActive () |
| virtual void | removeFieldFilter (fieldName) |
| virtual bool | save (fileName,[selectedOnly]) |
| virtual int | schedule (time, command,< arg1...argN >) |
| virtual void | setClassNamespace () |
| virtual bool | setFieldValue (fieldName, value) |
| virtual void | setInternalName () |
| virtual void | setName (newName) |
| virtual void | setProgenitorFile (file) |
| virtual void | setSuperClassNamespace () |
| virtual bool | startTimer (callbackFunction, float timePeriod,[repeat]) |
| virtual void | stopTimer () |
Public Attributes | |
SimBase | |
| bool | canSaveDynamicFields |
| string | internalName |
| SimObjectPtr | parentGroup |
Namespace Linking | |
| string | superclass |
| string | class |
Public Attributes inherited from SimObject | |
| bool | canSaveDynamicFields |
| string | internalName |
| SimObjectPtr | parentGroup |
| string | superclass |
| string | class |
|
virtual |
Use the close method to close the current file handle. If the file was opened for writing, this flushes the contents of the last write to disk.
|
virtual |
Use the isEOF method to check to see if the end of the current file (opened for read) has been reached.
|
virtual |
Use the openForAppend method to open a previously created file for appending. If the file specified by filename does not exist, the file is created first.
| filename | The path and filename of the file to open for appending. |
|
virtual |
Use the openForRead method to open a previously created file for reading.
| filename | The path and filename of the file to open for reading. |
|
virtual |
Use the openForWrite method to previously created or a new file for writing. In either case, the file will be overwritten.
| filename | The path and filename of the file to open for writing. |
|
virtual |
Read a line from the file without moving the stream position.
|
virtual |
Use the readLine method to read a single line from a file previously opened for reading. Use isEOF to check for end of file while reading.
|
virtual |
Use the writeLine method to write a value ( text ) into a file that was previously opened for appending or over-writing.
| text | The value to write to the file. |
|
virtual |
| bool FileObject::canSaveDynamicFields |
| string FileObject::class |
Script SuperClass of object.
| string FileObject::internalName |
| SimObjectPtr FileObject::parentGroup |
Group hierarchy parent of the object.
| string FileObject::superclass |
Script Class of object.