RigsofRods
Soft-body Physics Simulation
|
#include <GenericFileFormat.h>
Public Member Functions | |
GenericDocContext (GenericDocumentPtr d) | |
virtual | ~GenericDocContext () |
bool | moveNext () |
uint32_t | getPos () const |
bool | seekNextLine () |
int | countLineArgs () |
bool | endOfFile (int offset=0) const |
TokenType | tokenType (int offset=0) const |
std::string | getTokString (int offset=0) const |
float | getTokFloat (int offset=0) const |
int | getTokInt (int offset=0) const |
float | getTokNumeric (int offset=0) const |
bool | getTokBool (int offset=0) const |
std::string | getTokKeyword (int offset=0) const |
std::string | getTokComment (int offset=0) const |
bool | isTokString (int offset=0) const |
bool | isTokFloat (int offset=0) const |
bool | isTokInt (int offset=0) const |
bool | isTokBool (int offset=0) const |
bool | isTokKeyword (int offset=0) const |
bool | isTokComment (int offset=0) const |
bool | isTokLineBreak (int offset=0) const |
bool | isTokNumeric (int offset=0) const |
void | appendTokens (int count) |
Appends a series of TokenType::NONE and sets Pos at the first one added; use setTok* functions to fill them. More... | |
bool | insertToken (int offset=0) |
Inserts TokenType::NONE ;. More... | |
bool | eraseToken (int offset=0) |
void | appendTokString (const std::string &str) |
void | appendTokFloat (float val) |
void | appendTokInt (int val) |
void | appendTokBool (bool val) |
void | appendTokKeyword (const std::string &str) |
void | appendTokComment (const std::string &str) |
void | appendTokLineBreak () |
bool | setTokString (int offset, const std::string &str) |
bool | setTokFloat (int offset, float val) |
bool | setTokInt (int offset, int val) |
bool | setTokBool (int offset, bool val) |
bool | setTokKeyword (int offset, const std::string &str) |
bool | setTokComment (int offset, const std::string &str) |
bool | setTokLineBreak (int offset) |
const char * | getStringData (int offset=0) const |
float | getFloatData (int offset=0) const |
bool | setStringData (int offset, TokenType type, const std::string &data) |
bool | setFloatData (int offset, TokenType type, float data) |
Public Member Functions inherited from RefCountingObject< GenericDocContext > | |
RefCountingObject () | |
virtual | ~RefCountingObject () |
void | AddRef () |
void | Release () |
Data Fields | |
GenericDocumentPtr | doc |
uint32_t | token_pos = 0 |
Data Fields inherited from RefCountingObject< GenericDocContext > | |
int | m_refcount |
std::mutex | m_refcount_mtx |
Additional Inherited Members | |
Static Public Member Functions inherited from RefCountingObject< GenericDocContext > | |
static void | RegisterRefCountingObject (AS_NAMESPACE_QUALIFIER asIScriptEngine *engine, const char *name) |
Definition at line 89 of file GenericFileFormat.h.
|
inline |
Definition at line 91 of file GenericFileFormat.h.
|
inlinevirtual |
Definition at line 99 of file GenericFileFormat.h.
|
inline |
|
inline |
void GenericDocContext::appendTokens | ( | int | count | ) |
Appends a series of TokenType::NONE
and sets Pos at the first one added; use setTok*
functions to fill them.
Definition at line 1158 of file GenericFileFormat.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
int GenericDocContext::countLineArgs | ( | ) |
|
inline |
bool GenericDocContext::eraseToken | ( | int | offset = 0 | ) |
Definition at line 1179 of file GenericFileFormat.cpp.
|
inline |
Definition at line 155 of file GenericFileFormat.h.
|
inline |
Definition at line 107 of file GenericFileFormat.h.
|
inline |
Definition at line 154 of file GenericFileFormat.h.
|
inline |
|
inline |
|
inline |
Definition at line 114 of file GenericFileFormat.h.
|
inline |
Definition at line 115 of file GenericFileFormat.h.
|
inline |
Definition at line 118 of file GenericFileFormat.h.
|
inline |
Definition at line 116 of file GenericFileFormat.h.
|
inline |
Definition at line 113 of file GenericFileFormat.h.
bool GenericDocContext::insertToken | ( | int | offset = 0 | ) |
Inserts TokenType::NONE
;.
Definition at line 1170 of file GenericFileFormat.cpp.
|
inline |
Definition at line 124 of file GenericFileFormat.h.
|
inline |
Definition at line 126 of file GenericFileFormat.h.
|
inline |
Definition at line 122 of file GenericFileFormat.h.
|
inline |
Definition at line 123 of file GenericFileFormat.h.
|
inline |
Definition at line 125 of file GenericFileFormat.h.
|
inline |
Definition at line 127 of file GenericFileFormat.h.
|
inline |
Definition at line 128 of file GenericFileFormat.h.
|
inline |
Definition at line 121 of file GenericFileFormat.h.
|
inline |
bool GenericDocContext::seekNextLine | ( | ) |
bool GenericDocContext::setFloatData | ( | int | offset, |
TokenType | type, | ||
float | data | ||
) |
Definition at line 1205 of file GenericFileFormat.cpp.
bool GenericDocContext::setStringData | ( | int | offset, |
TokenType | type, | ||
const std::string & | data | ||
) |
Definition at line 1191 of file GenericFileFormat.cpp.
|
inline |
Definition at line 147 of file GenericFileFormat.h.
|
inline |
Definition at line 149 of file GenericFileFormat.h.
|
inline |
Definition at line 145 of file GenericFileFormat.h.
|
inline |
Definition at line 146 of file GenericFileFormat.h.
|
inline |
Definition at line 148 of file GenericFileFormat.h.
|
inline |
Definition at line 150 of file GenericFileFormat.h.
|
inline |
Definition at line 144 of file GenericFileFormat.h.
|
inline |
Definition at line 111 of file GenericFileFormat.h.
GenericDocumentPtr RoR::GenericDocContext::doc |
Definition at line 99 of file GenericFileFormat.h.
uint32_t RoR::GenericDocContext::token_pos = 0 |
Definition at line 102 of file GenericFileFormat.h.