 |
RigsofRods
Soft-body Physics Simulation
|
Go to the documentation of this file.
87 virtual bool saveToResource(std::string resource_name, std::string resource_group_name);
95 if (
doc ==
nullptr && AngelScript::asGetActiveContext() !=
nullptr)
97 AngelScript::asGetActiveContext()->SetException(
"Cannot create GenericDocContextClass from null GenericDocument!");
#define ROR_ASSERT(_EXPR)
bool setFloatData(int offset, TokenType type, float data)
void appendTokBool(bool val)
bool isTokInt(int offset=0) const
bool insertToken(int offset=0)
Inserts TokenType::NONE;.
bool setTokKeyword(int offset, const std::string &str)
void appendTokComment(const std::string &str)
float getTokNumeric(int offset=0) const
bool isTokKeyword(int offset=0) const
void appendTokKeyword(const std::string &str)
static const BitMask_t OPTION_ALLOW_SEPARATOR_COLON
Allow ':' as separator between tokens.
bool getTokBool(int offset=0) const
static const BitMask_t OPTION_ALLOW_SLASH_COMMENTS
Allow comments starting with //.
bool isTokLineBreak(int offset=0) const
void appendTokInt(int val)
std::string getTokString(int offset=0) const
bool setTokComment(int offset, const std::string &str)
TokenType tokenType(int offset=0) const
bool isTokFloat(int offset=0) const
virtual bool loadFromResource(std::string resource_name, std::string resource_group_name, BitMask_t options=0)
bool setTokString(int offset, const std::string &str)
float getTokFloat(int offset=0) const
virtual bool saveToResource(std::string resource_name, std::string resource_group_name)
virtual void saveToDataStream(Ogre::DataStreamPtr datastream)
bool isTokString(int offset=0) const
bool setTokInt(int offset, int val)
void appendTokString(const std::string &str)
bool isTokNumeric(int offset=0) const
std::string getTokComment(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 fil...
std::vector< Token > tokens
static const BitMask_t OPTION_ALLOW_BRACED_KEYWORDS
Allow INI-like '[keyword]' tokens.
Central state/object manager and communications hub.
static const BitMask_t OPTION_FIRST_LINE_IS_TITLE
First non-empty & non-comment line is a naked string with spaces.
std::vector< char > string_pool
bool setStringData(int offset, TokenType type, const std::string &data)
static const BitMask_t OPTION_ALLOW_SEPARATOR_EQUALS
Allow '=' as separator between tokens.
const char * getStringData(int offset=0) const
bool endOfFile(int offset=0) const
bool isTokBool(int offset=0) const
float getFloatData(int offset=0) const
static const BitMask_t OPTION_NAKEDSTR_USCORES_TO_SPACES
Only for OPTION_ALLOW_NAKED_STRINGS: Replace underscores with spaces in naked strings (classic behavi...
bool eraseToken(int offset=0)
std::string getTokKeyword(int offset=0) const
GenericDocContext(GenericDocumentPtr d)
virtual ~GenericDocument()
virtual void loadFromDataStream(Ogre::DataStreamPtr datastream, BitMask_t options=0)
bool setTokBool(int offset, bool val)
virtual ~GenericDocContext()
Self reference-counting objects, as requred by AngelScript garbage collector.
bool setTokFloat(int offset, float val)
bool isTokComment(int offset=0) const
void appendTokFloat(float val)
static const BitMask_t OPTION_ALLOW_NAKED_STRINGS
Allow strings without quotes, for backwards compatibility.
static const BitMask_t OPTION_ALLOW_HASH_COMMENTS
Allow comments starting with #.
static const BitMask_t OPTION_PARENTHESES_CAPTURE_SPACES
If non-empty NAKED string encounters '(', following spaces will be captured until matching ')' is fou...
void appendTokLineBreak()
bool setTokLineBreak(int offset)
int getTokInt(int offset=0) const