Public Member Functions | |
void | setCharacterSettings (Common::HashMap< Common::String, Character::CharacterSettings > *settings) |
CUSTOM_XML_PARSER (CharacterSettingsXmlParser) | |
PARSER_END () bool parserCallback_ModelsSettings(ParserNode *node) | |
bool | parserCallback_Model (ParserNode *node) |
bool | parserCallback_modelFileName (ParserNode *node) |
bool | parserCallback_defaultScale (ParserNode *node) |
bool | parserCallback_walk (ParserNode *node) |
bool | parserCallback_animationFileName (ParserNode *node) |
bool | parserCallback_walkType (ParserNode *node) |
bool | parserCallback_start (ParserNode *node) |
bool | parserCallback_loop (ParserNode *node) |
bool | parserCallback_endD (ParserNode *node) |
bool | parserCallback_endG (ParserNode *node) |
bool | parserCallback_speed (ParserNode *node) |
bool | parserCallback_cutSceneCurveDemi (ParserNode *node) |
bool | parserCallback_position (ParserNode *node) |
bool | parserCallback_face (ParserNode *node) |
bool | parserCallback_eyes (ParserNode *node) |
bool | parserCallback_mouth (ParserNode *node) |
bool | parserCallback_body (ParserNode *node) |
bool | parserCallback_invertNormals (ParserNode *node) |
bool | textCallback (const Common::String &val) override |
bool | handleUnknownKey (ParserNode *node) override |
Public Member Functions inherited from Common::XMLParser | |
XMLParser () | |
ParserNode * | allocNode () |
void | freeNode (ParserNode *node) |
bool | loadFile (const Path &filename) |
bool | loadFile (const FSNode &node) |
bool | loadBuffer (const byte *buffer, uint32 size, DisposeAfterUse::Flag disposable=DisposeAfterUse::NO) |
bool | loadStream (SeekableReadStream *stream) |
void | close () |
bool | parse () |
ParserNode * | getActiveNode () |
ParserNode * | getParentNode (ParserNode *child) |
void | setAllowText () |
Additional Inherited Members | |
Public Types inherited from Common::XMLParser | |
enum | ParserState { kParserNeedHeader, kParserNeedKey, kParserNeedKeyName, kParserNeedPropertyName, kParserNeedPropertyOperator, kParserNeedPropertyValue, kParserError } |
typedef HashMap< String, XMLParser::XMLKeyLayout *, IgnoreCase_Hash, IgnoreCase_EqualTo > | ChildMap |
Public Attributes inherited from Common::XMLParser | |
XMLKeyLayout * | _XMLkeys |
ObjectPool< ParserNode, 8 > | _nodePool |
Protected Member Functions inherited from Common::XMLParser | |
virtual void | buildLayout ()=0 |
virtual bool | keyCallback (ParserNode *node)=0 |
virtual bool | closedKeyCallback (ParserNode *node) |
bool | closeKey () |
bool | parseKeyValue (String keyName) |
bool | parseActiveKey (bool closed) |
bool | parserError (const String &errStr) |
bool | skipSpaces () |
bool | skipComments () |
virtual bool | isValidNameChar (char c) |
bool | parseToken () |
bool | parseIntegerKey (const char *key, int count,...) |
bool | parseIntegerKey (const String &keyStr, int count,...) |
bool | vparseIntegerKey (const char *key, int count, va_list args) |
bool | parseXMLHeader (ParserNode *node) |
virtual void | cleanup () |
Protected Attributes inherited from Common::XMLParser | |
List< XMLKeyLayout * > | _layoutList |
|
overridevirtual |
Called when a text node is found. This will only be called if setAllowText() has been called, otherwise text nodes are considered parse errors.
Reimplemented from Common::XMLParser.
|
overridevirtual |
Overload if your parser wants to be notified of keys which haven't been explicitly declared.
The functions should return true if the key was handled and parsing should continue, or false (default) to raise a parsing error.
Reimplemented from Common::XMLParser.