#include <streamObject_ScriptBinding.h>
Inherits SimObject.
Inherited by FileStreamObject.
|
Boolean | copyFrom (StreamObject other) |
|
Integer | getPosition () |
|
const char * | getStatus () |
|
Integer | getStreamSize () |
|
Boolean | isEOF () |
|
Boolean | isEOS () |
|
const char * | readLine () |
|
const char * | readLongString (maxLength) |
|
const char * | readString () |
|
const char * | readSTString ([caseSensitive=false]) |
|
Boolean | setPosition (newPosition) |
|
void | writeLine (line) |
|
void | writeLongString (maxLength, string) |
|
void | writeString (string, [maxLength=255]) |
|
void | assignFieldsFrom (SimObject) |
|
Integer | clone ([copyDynamicFields=false]?) |
|
void | delete () |
|
Integer | getId () |
|
void | setName (newName) |
|
String | getName () |
|
String | getClassNamespace () |
|
String | getSuperClassNamespace () |
|
void | setClassNamespace (nameSpace) |
|
void | setSuperClassNamespace () |
|
Boolean | isMethod (string methodName) |
|
String | call (methodName, [args] *) |
|
void | dumpClassHierarchy () |
|
void | dump () |
|
Boolean | isMemberOfClass (string classname) |
|
String | getClassName () |
|
String | getFieldValue (fieldName) |
|
Boolean | setFieldValue (fieldName, value) |
|
Boolean | setEditFieldValue (fieldName, value) |
|
Integer | getDynamicFieldCount () |
|
String | getDynamicField (index) |
|
Integer | getFieldCount () |
|
String | getField (int index) |
|
void | setProgenitorFile (file) |
|
String | getProgenitorFile () |
|
Integer | getType () |
|
String | getFieldType (fieldName) |
|
void | setInternalName (string InternalName) |
|
String | getInternalName () |
|
Boolean | isChildOfGroup (groupID) |
|
Integer | getGroup () |
|
Boolean | startTimer (callbackFunction, float timePeriod, [repeat]?) |
|
void | stopTimer () |
|
Boolean | isTimerActive () |
|
Integer | schedule (time, command, [arg] *) |
|
void | startListening (SimObject) |
|
void | stopListening (SimObject) |
|
void | addListener (SimObject) |
|
void | removeListener (SimObject) |
|
void | removeAllListeners () |
|
void | postEvent (String eventName, String data) |
|
Boolean | save (fileName, [selectedOnly]?) |
|
void | addFieldFilter (fieldName) |
|
void | removeFieldFilter (fieldName) |
|
◆ copyFrom()
Copies stream contents from current position
- Parameters
-
- Returns
- Returns true on success, and false otherwise.
◆ getPosition()
- Returns
- Returns the current position in the stream as an integer or zero if failed
◆ getStatus()
const char * getStatus |
( |
| ) |
|
Gets the current status of the StreamObject
- Returns
- The current status as a string (Ok, IOError, EOS, IllegalCall, Closed, UnknownError, Invalid)
◆ getStreamSize()
Get the size of the stream
- Returns
- The size of the stream as an integer
◆ isEOF()
Test for end of file stream (identical to isEOS()
- Returns
- Returns true if at the end of the stream, false otherwise.
- See also
- isEOS
◆ isEOS()
Test for end of stream
- Returns
- Returns true if at the end of the stream, false otherwise.
◆ readLine()
const char * readLine |
( |
| ) |
|
Read the stream until '\' or EOS
- Returns
- A string containing the read line or an empty string if failed
◆ readLongString()
const char * readLongString |
( |
maxLength |
| ) |
|
Reads a string of provided length from the stream buffer.
- Parameters
-
The | maximum length to read in |
- Returns
- The requested string
◆ readString()
const char * readString |
( |
| ) |
|
Reads a string from a stream buffer
- Returns
- The string or an empty string if failed.
◆ readSTString()
const char * readSTString |
( |
| ) |
|
Read a String and insert it into a StringTable
- Parameters
-
caseSensitive | A boolean representing whether the parser should ignore case or not (default false) |
- Returns
- Returns the string, or empty string if failed
◆ setPosition()
Boolean setPosition |
( |
newPosition |
| ) |
|
Resets the current stream position
- Parameters
-
- Returns
- Returns true if succeeded, flase otherwise
◆ writeLine()
Writes a line of text to the stream buffer
- Parameters
-
- Returns
- No return value.
◆ writeLongString()
void writeLongString |
( |
maxLength |
, |
|
|
string |
|
|
) |
| |
Writes a string to buffer or provided length
- Parameters
-
maxLength | The maximum length to write |
string | The string to write |
- Returns
- No return value
◆ writeString()
void writeString |
( |
string |
| ) |
|
Write a string to the stream buffer
- Parameters
-
string | The string to write |
maxLength | The maximum length to write (default 255). |
- Returns
- No return value.