EvEmu
0.8.4
11 September 2021
|
#include "DumpGenerator.h"
Public Member Functions | |
ClassDumpGenerator (FILE *outputFile=NULL) | |
![]() | |
Generator (FILE *outputFile=NULL) | |
Primary constructor. More... | |
void | SetOutputFile (FILE *outputFile) |
Sets output file. More... | |
![]() | |
template<typename T > | |
void | AddMemberParser (const char *name, T &instance, bool(T::*method)(const TiXmlElement *)) |
Adds a member parser. More... | |
template<typename T > | |
void | AddValueParser (const char *name, T &value) |
Adds a value parser. More... | |
![]() | |
XMLParser () | |
Primary constructor. More... | |
virtual | ~XMLParser () |
A destructor. More... | |
bool | ParseFile (const char *file) |
Parses file using registered parsers. More... | |
bool | ParseElement (const TiXmlElement *element) const |
Parses element using registered parsers. More... | |
bool | ParseElementChildren (const TiXmlElement *element, size_t max=0) const |
Parses element's children using registered parsers. More... | |
void | AddParser (const char *name, ElementParser *parser) |
Adds a parser. More... | |
void | RemoveParser (const char *name) |
Removes a parser. More... | |
void | ClearParsers () |
Clears all parsers. More... | |
Protected Member Functions | |
void | RegisterProcessors () |
bool | ProcessElementDef (const TiXmlElement *field) |
bool | ProcessElement (const TiXmlElement *field) |
bool | ProcessElementPtr (const TiXmlElement *field) |
bool | ProcessRaw (const TiXmlElement *field) |
bool | ProcessInt (const TiXmlElement *field) |
bool | ProcessLong (const TiXmlElement *field) |
bool | ProcessReal (const TiXmlElement *field) |
bool | ProcessBool (const TiXmlElement *field) |
bool | ProcessNone (const TiXmlElement *field) |
bool | ProcessBuffer (const TiXmlElement *field) |
bool | ProcessString (const TiXmlElement *field) |
bool | ProcessStringInline (const TiXmlElement *field) |
bool | ProcessWString (const TiXmlElement *field) |
bool | ProcessWStringInline (const TiXmlElement *field) |
bool | ProcessToken (const TiXmlElement *field) |
bool | ProcessTokenInline (const TiXmlElement *field) |
bool | ProcessObject (const TiXmlElement *field) |
bool | ProcessObjectInline (const TiXmlElement *field) |
bool | ProcessObjectEx (const TiXmlElement *field) |
bool | ProcessTuple (const TiXmlElement *field) |
bool | ProcessTupleInline (const TiXmlElement *field) |
bool | ProcessList (const TiXmlElement *field) |
bool | ProcessListInline (const TiXmlElement *field) |
bool | ProcessListInt (const TiXmlElement *field) |
bool | ProcessListLong (const TiXmlElement *field) |
bool | ProcessListStr (const TiXmlElement *field) |
bool | ProcessDict (const TiXmlElement *field) |
bool | ProcessDictInline (const TiXmlElement *field) |
bool | ProcessDictInlineEntry (const TiXmlElement *field) |
bool | ProcessDictRaw (const TiXmlElement *field) |
bool | ProcessDictInt (const TiXmlElement *field) |
bool | ProcessDictStr (const TiXmlElement *field) |
bool | ProcessSubStreamInline (const TiXmlElement *field) |
bool | ProcessSubStructInline (const TiXmlElement *field) |
![]() | |
void | RegisterProcessors () |
![]() | |
template<typename T > | |
void | AddMemberParser (const char *name, bool(T::*method)(const TiXmlElement *)) |
Adds a member parser, assuming that instance is this. More... | |
Additional Inherited Members | |
![]() | |
std::unique_ptr< TiXmlDocument > | m_pXML_Document |
![]() | |
static const char * | GetEncodeType (const TiXmlElement *element) |
Obtains encode type of given element. More... | |
![]() | |
FILE * | mOutputFile |
Definition at line 31 of file DumpGenerator.h.
ClassDumpGenerator::ClassDumpGenerator | ( | FILE * | outputFile = NULL | ) |
Definition at line 34 of file DumpGenerator.cpp.
References RegisterProcessors().
|
protectedvirtual |
Implements Generator.
Definition at line 197 of file DumpGenerator.cpp.
References Generator::mOutputFile.
|
protectedvirtual |
Implements Generator.
Definition at line 219 of file DumpGenerator.cpp.
References Generator::mOutputFile.
|
protectedvirtual |
Implements Generator.
Definition at line 540 of file DumpGenerator.cpp.
References Generator::mOutputFile.
|
protectedvirtual |
Implements Generator.
Definition at line 565 of file DumpGenerator.cpp.
References XMLParser::ParseElementChildren().
|
protected |
Definition at line 571 of file DumpGenerator.cpp.
References key(), and XMLParser::ParseElementChildren().
Referenced by RegisterProcessors().
|
protectedvirtual |
Implements Generator.
Definition at line 628 of file DumpGenerator.cpp.
References Generator::mOutputFile.
|
protectedvirtual |
Implements Generator.
Definition at line 583 of file DumpGenerator.cpp.
References key(), and Generator::mOutputFile.
|
protectedvirtual |
Implements Generator.
Definition at line 652 of file DumpGenerator.cpp.
References Generator::mOutputFile.
|
protectedvirtual |
Implements Generator.
Definition at line 74 of file DumpGenerator.cpp.
References Generator::mOutputFile.
|
protectedvirtual |
Implements Generator.
Definition at line 47 of file DumpGenerator.cpp.
References Generator::mOutputFile, and XMLParser::ParseElementChildren().
|
protectedvirtual |
Implements Generator.
Definition at line 96 of file DumpGenerator.cpp.
References Generator::mOutputFile.
|
protectedvirtual |
Implements Generator.
Definition at line 146 of file DumpGenerator.cpp.
References Generator::mOutputFile.
|
protectedvirtual |
Implements Generator.
Definition at line 447 of file DumpGenerator.cpp.
References Generator::mOutputFile.
|
protectedvirtual |
Implements Generator.
Definition at line 472 of file DumpGenerator.cpp.
References XMLParser::ParseElementChildren().
|
protectedvirtual |
Implements Generator.
Definition at line 478 of file DumpGenerator.cpp.
References Generator::mOutputFile.
|
protectedvirtual |
Implements Generator.
Definition at line 499 of file DumpGenerator.cpp.
References Generator::mOutputFile.
|
protectedvirtual |
Implements Generator.
Definition at line 520 of file DumpGenerator.cpp.
References Generator::mOutputFile.
|
protectedvirtual |
Implements Generator.
Definition at line 163 of file DumpGenerator.cpp.
References Generator::mOutputFile.
|
protectedvirtual |
Implements Generator.
Definition at line 214 of file DumpGenerator.cpp.
|
protectedvirtual |
Implements Generator.
Definition at line 351 of file DumpGenerator.cpp.
References Generator::mOutputFile.
|
protectedvirtual |
Implements Generator.
Definition at line 386 of file DumpGenerator.cpp.
References Generator::mOutputFile.
|
protectedvirtual |
Implements Generator.
Definition at line 376 of file DumpGenerator.cpp.
References Generator::mOutputFile, and XMLParser::ParseElementChildren().
|
protectedvirtual |
Implements Generator.
Definition at line 121 of file DumpGenerator.cpp.
References Generator::mOutputFile.
|
protectedvirtual |
Implements Generator.
Definition at line 180 of file DumpGenerator.cpp.
References Generator::mOutputFile.
|
protectedvirtual |
Implements Generator.
Definition at line 241 of file DumpGenerator.cpp.
References Generator::mOutputFile.
|
protectedvirtual |
Implements Generator.
Definition at line 258 of file DumpGenerator.cpp.
References Generator::mOutputFile.
|
protectedvirtual |
Implements Generator.
Definition at line 676 of file DumpGenerator.cpp.
References XMLParser::ParseElementChildren().
|
protectedvirtual |
Implements Generator.
Definition at line 682 of file DumpGenerator.cpp.
References XMLParser::ParseElementChildren().
|
protectedvirtual |
Implements Generator.
Definition at line 309 of file DumpGenerator.cpp.
References Generator::mOutputFile.
|
protectedvirtual |
Implements Generator.
Definition at line 334 of file DumpGenerator.cpp.
References Generator::mOutputFile.
|
protectedvirtual |
Implements Generator.
Definition at line 416 of file DumpGenerator.cpp.
References Generator::mOutputFile.
|
protectedvirtual |
Implements Generator.
Definition at line 441 of file DumpGenerator.cpp.
References XMLParser::ParseElementChildren().
|
protectedvirtual |
Implements Generator.
Definition at line 275 of file DumpGenerator.cpp.
References Generator::mOutputFile.
|
protectedvirtual |
Implements Generator.
Definition at line 292 of file DumpGenerator.cpp.
References Generator::mOutputFile.
|
protected |
Definition at line 40 of file DumpGenerator.cpp.
References XMLParserEx::AddMemberParser(), ProcessDictInlineEntry(), and Generator::RegisterProcessors().
Referenced by ClassDumpGenerator().