This is the documentation for Enlighten.
class Geo GeoTokenStream
template<typename T>
class Geo::GeoTokenStream
A very simple utility class that wraps some common parsing functionality around a GeoTokenList.
The token list provided in Create is just referenced, not copied, so the token list must out-live this class.
Functions
Name | Description |
|---|---|
Creates a GeoTokenStream which reads from the given GeoTokenList. | |
Gets the index of the current token. | |
Gets a textual description of the last parsing error encountered. | |
Checks if there are more tokens to read. | |
Destroys this GeoTokenStream. | |
Resets the stream to the beginning of the token list. | |
Sets the stream position to the given token index. | |
Parses the current token into the appropriate type, and advances the stream if successful. | |
Parses the current token into the appropriate type, and advances the stream if successful. | |
Parses the current token into the appropriate type, and advances the stream if successful. | |
Parses the current token into the appropriate type, and advances the stream if successful. | |
Parses the current token into the appropriate type, and advances the stream if successful. | |
Parses the current token into the appropriate type, and advances the stream if successful. | |
Parses the current token into an enum, and advances the stream if successful. | |
Checks if the current token matches the given string, and advances the stream if successful. | |
Checks if the current token matches the given string, and advances the stream if successful. |
static GeoTokenStream* Geo::GeoTokenStream< T >::Create
public: GeoTokenStream * Create
(
GeoTokenList< T > & tl
)
Creates a GeoTokenStream which reads from the given GeoTokenList.
s32 Geo::GeoTokenStream< T >::GetCurrentTokenIdx
public: s32 GetCurrentTokenIdx() const
Gets the index of the current token.
const char* Geo::GeoTokenStream< T >::GetLastErrorString
public: const char * GetLastErrorString() const
Gets a textual description of the last parsing error encountered.