#include <robdefines.h>
Inheritance diagram for rt::DefineInputStream:

Public Methods | |
| DefineInputStream (InputStream *in, const String &separators, const char commentStart=0) | |
| virtual void | close () |
| Closes the stream, and releases any system resources. More... | |
| virtual | ~DefineInputStream () |
| void | setIgnoreComments (bool) |
| void | setAutoTrim (bool) |
| void | setEnableDefines (bool) |
| virtual void | mark () |
| Saves the current position in the stream for later restoring it. More... | |
| virtual void | reset () |
If possible, restores the stream position saved by mark(). More... | |
| virtual bool | markSupported () |
| Returns whether marking and resetting a position in the stream is supported. More... | |
| virtual bool | fail () |
| Returns true if there was some system failure for this stream (such as, it couldn't be opened). | |
| virtual int | read () |
| Reads a byte from the stream. More... | |
| RobLoadReturnType | getWord (String &word, const String &specialSeps="") |
| String | getLine (bool skipEmpty=true) |
| int | getLineNumber () |
| bool | skipRestOfLine () |
| bool | eos () |
| Checks if this stream's end has been reached. More... | |
| bool | isIdentifierValid (const String &str) |
| checks the identifier (eg label name, define param) for validity. More... | |
Static Public Attributes | |
| const String | whitespace |
|
|
Closes the stream, and releases any system resources.
Closed streams cannot be re-opened. The close method of class Reimplemented from lrt::InputStream. |
|
|
Checks if this stream's end has been reached. This method must be implemented by subclassers!
Implements lrt::InputStream. |
|
|
checks the identifier (eg label name, define param) for validity. The function assumes that the first magic char (eg '?') was removed from the identifier. |
|
|
Saves the current position in the stream for later restoring it.
Note that if marking is not supported,
Reimplemented from lrt::InputStream. |
|
|
Returns whether marking and resetting a position in the stream is supported. The markSupported method of class InputStream always returns false.
Reimplemented from lrt::InputStream. |
|
|
Reads a byte from the stream. If the stream cannot be read (or is EOF), this method returns -1. This method must be implemented by subclassers!
Implements lrt::InputStream. |
|
|
If possible, restores the stream position saved by
If marking is not supported,
Reimplemented from lrt::InputStream. |