RigsofRods
Soft-body Physics Simulation
Private Member Functions
Script2Game::GenericDocContextClass Class Reference

Binding of RoR::GenericDocContext; Traverses document tokens; See 'demo_script.as' for an example. More...

#include <GenericDocContextClass.h>

Private Member Functions

 GenericDocContext (GenericDocumentPtr@ d)
 
bool moveNext ()
 
uint getPos ()
 
bool seekNextLine ()
 
int countLineArgs ()
 
bool endOfFile (int offset=0)
 
TokenType tokenType (int offset=0)
 
string getTokString (int offset=0)
 
float getTokFloat (int offset=0)
 
bool gettokBool (int offset=0)
 
string getTokKeyword (int offset=0)
 
string getTokComment (int offset=0)
 
bool isTokString (int offset=0)
 
bool isTokFloat (int offset=0)
 
bool isTokBool (int offset=0)
 
bool isTokKeyword (int offset=0)
 
bool isTokComment (int offset=0)
 
bool insertToken (int offset=0)
 Inserts TokenType::NONE;. More...
 
bool eraseToken (int offset=0)
 
bool setTokString (int offset, const string &in str)
 
bool setTokFloat (int offset, float val)
 
bool setTokBool (int offset, bool val)
 
bool setTokKeyword (int offset, const string &in str)
 
bool setTokComment (int offset, const string &in str)
 
bool setTokLineBreak (int offset)
 

Detailed Description

Binding of RoR::GenericDocContext; Traverses document tokens; See 'demo_script.as' for an example.

Definition at line 25 of file GenericDocContextClass.h.

Member Function Documentation

◆ countLineArgs()

int Script2Game::GenericDocContextClass::countLineArgs ( )
private

◆ endOfFile()

bool Script2Game::GenericDocContextClass::endOfFile ( int  offset = 0)
private

◆ eraseToken()

bool Script2Game::GenericDocContextClass::eraseToken ( int  offset = 0)
private
Returns
false if offset is beyond EOF

◆ GenericDocContext()

Script2Game::GenericDocContextClass::GenericDocContext ( GenericDocumentPtr@  d)
private

◆ getPos()

uint Script2Game::GenericDocContextClass::getPos ( )
private

◆ gettokBool()

bool Script2Game::GenericDocContextClass::gettokBool ( int  offset = 0)
private

◆ getTokComment()

string Script2Game::GenericDocContextClass::getTokComment ( int  offset = 0)
private

◆ getTokFloat()

float Script2Game::GenericDocContextClass::getTokFloat ( int  offset = 0)
private

◆ getTokKeyword()

string Script2Game::GenericDocContextClass::getTokKeyword ( int  offset = 0)
private

◆ getTokString()

string Script2Game::GenericDocContextClass::getTokString ( int  offset = 0)
private

◆ insertToken()

bool Script2Game::GenericDocContextClass::insertToken ( int  offset = 0)
private

Inserts TokenType::NONE;.

Returns
false if offset is beyond EOF

◆ isTokBool()

bool Script2Game::GenericDocContextClass::isTokBool ( int  offset = 0)
private

◆ isTokComment()

bool Script2Game::GenericDocContextClass::isTokComment ( int  offset = 0)
private

◆ isTokFloat()

bool Script2Game::GenericDocContextClass::isTokFloat ( int  offset = 0)
private

◆ isTokKeyword()

bool Script2Game::GenericDocContextClass::isTokKeyword ( int  offset = 0)
private

◆ isTokString()

bool Script2Game::GenericDocContextClass::isTokString ( int  offset = 0)
private

◆ moveNext()

bool Script2Game::GenericDocContextClass::moveNext ( )
private

◆ seekNextLine()

bool Script2Game::GenericDocContextClass::seekNextLine ( )
private

◆ setTokBool()

bool Script2Game::GenericDocContextClass::setTokBool ( int  offset,
bool  val 
)
private

◆ setTokComment()

bool Script2Game::GenericDocContextClass::setTokComment ( int  offset,
const string &in  str 
)
private

◆ setTokFloat()

bool Script2Game::GenericDocContextClass::setTokFloat ( int  offset,
float  val 
)
private

◆ setTokKeyword()

bool Script2Game::GenericDocContextClass::setTokKeyword ( int  offset,
const string &in  str 
)
private

◆ setTokLineBreak()

bool Script2Game::GenericDocContextClass::setTokLineBreak ( int  offset)
private

◆ setTokString()

bool Script2Game::GenericDocContextClass::setTokString ( int  offset,
const string &in  str 
)
private

◆ tokenType()

TokenType Script2Game::GenericDocContextClass::tokenType ( int  offset = 0)
private

The documentation for this class was generated from the following file: