![Logo](../../rorlogo.png) |
RigsofRods
Soft-body Physics Simulation
|
Go to the documentation of this file.
85 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)
bool insertToken(int offset=0)
Inserts TokenType::NONE;.
bool setTokKeyword(int offset, const std::string &str)
bool isTokKeyword(int offset=0) const
RefCountingObjectPtr< GenericDocument > GenericDocumentPtr
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
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
std::string getTokComment(int offset=0) const
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
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
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...
bool setTokLineBreak(int offset)
RefCountingObjectPtr< GenericDocContext > GenericDocContextPtr