45 const char* name = field->Attribute(
"name" );
46 if (name ==
nullptr) {
47 std::cout << std::endl <<
"ClassConstructGenerator::ProcessElementDef <element> at line " << field->Row() <<
" is missing the name attribute, skipping.";
63 "%s::%s( const %s& oth )\n"
81 const char* name = field->Attribute(
"name" );
82 if (name ==
nullptr) {
83 std::cout << std::endl <<
"ClassConstructGenerator::ProcessElementPtr field at line " << field->Row() <<
" is missing the name attribute, skipping.";
97 const char* name = field->Attribute(
"name" );
98 if (name ==
nullptr) {
99 std::cout << std::endl <<
"ClassConstructGenerator::ProcessRaw field at line " << field->Row() <<
" is missing the name attribute, skipping.";
113 const char* name = field->Attribute(
"name" );
114 if (name ==
nullptr) {
115 std::cout << std::endl <<
"ClassConstructGenerator::ProcessInt field at line " << field->Row() <<
" is missing the name attribute, skipping.";
119 const char* def = field->Attribute(
"default" );
133 const char* name = field->Attribute(
"name" );
134 if (name ==
nullptr) {
135 std::cout << std::endl <<
"ClassConstructGenerator::ProcessLong field at line " << field->Row() <<
" is missing the name attribute, skipping.";
139 const char* def = field->Attribute(
"default" );
153 const char* name = field->Attribute(
"name" );
154 if (name ==
nullptr) {
155 std::cout << std::endl <<
"ClassConstructGenerator::ProcessReal field at line " << field->Row() <<
" is missing the name attribute, skipping.";
159 const char* def = field->Attribute(
"default" );
173 const char* name = field->Attribute(
"name" );
174 if (name ==
nullptr) {
175 std::cout << std::endl <<
"ClassConstructGenerator::ProcessBool field at line " << field->Row() <<
" is missing the name attribute, skipping.";
179 const char* def = field->Attribute(
"default" );
198 const char* name = field->Attribute(
"name" );
199 if (name ==
nullptr) {
200 std::cout << std::endl <<
"ClassConstructGenerator::ProcessBuffer field at line " << field->Row() <<
" is missing the name attribute, skipping.";
214 const char* name = field->Attribute(
"name" );
215 if (name ==
nullptr) {
216 std::cout << std::endl <<
"ClassConstructGenerator::ProcessString field at line " << field->Row() <<
" is missing the name attribute, skipping.";
220 const char* def = field->Attribute(
"default" );
239 const char* name = field->Attribute(
"name" );
240 if (name ==
nullptr) {
241 std::cout << std::endl <<
"ClassConstructGenerator::ProcessWString field at line " << field->Row() <<
" is missing the name attribute, skipping.";
245 const char* def = field->Attribute(
"default" );
264 const char* name = field->Attribute(
"name" );
265 if (name ==
nullptr) {
266 std::cout << std::endl <<
"ClassConstructGenerator::ProcessToken field at line " << field->Row() <<
" is missing the name attribute, skipping.";
285 const char* name = field->Attribute(
"name" );
286 if (name ==
nullptr) {
287 std::cout << std::endl <<
"ClassConstructGenerator::ProcessObject field at line " << field->Row() <<
" is missing the name attribute, skipping.";
307 const char *name = field->Attribute(
"name" );
308 if (name ==
nullptr) {
309 std::cout << std::endl <<
"ClassConstructGenerator::ProcessObjectEx field at line " << field->Row() <<
" is missing the name attribute, skipping.";
323 const char *name = field->Attribute(
"name" );
324 if (name ==
nullptr) {
325 std::cout << std::endl <<
"ClassConstructGenerator::ProcessTuple field at line " << field->Row() <<
" is missing the name attribute, skipping.";
344 const char *name = field->Attribute(
"name" );
345 if (name ==
nullptr) {
346 std::cout << std::endl <<
"ClassConstructGenerator::ProcessList field at line " << field->Row() <<
" is missing the name attribute, skipping.";
380 const char *name = field->Attribute(
"name" );
381 if (name ==
nullptr) {
382 std::cout << std::endl <<
"ClassConstructGenerator::ProcessDict field at line " << field->Row() <<
" is missing the name attribute, skipping.";
402 const char*
key = field->Attribute(
"key" );
403 if (key ==
nullptr) {
404 std::cout << std::endl <<
"ClassConstructGenerator::ProcessDictInlineEntry field at line " << field->Row() <<
" is missing the name attribute, skipping.";
bool ProcessTuple(const TiXmlElement *field)
bool ProcessTupleInline(const TiXmlElement *field)
bool ProcessListInt(const TiXmlElement *field)
void RegisterProcessors()
bool ProcessDictStr(const TiXmlElement *field)
bool ProcessTokenInline(const TiXmlElement *field)
bool ProcessDict(const TiXmlElement *field)
bool ProcessNone(const TiXmlElement *field)
void RegisterProcessors()
bool ProcessObjectInline(const TiXmlElement *field)
bool ProcessBuffer(const TiXmlElement *field)
bool ProcessBool(const TiXmlElement *field)
bool ProcessSubStreamInline(const TiXmlElement *field)
bool ProcessToken(const TiXmlElement *field)
bool ProcessString(const TiXmlElement *field)
bool ProcessWStringInline(const TiXmlElement *field)
bool ProcessDictInt(const TiXmlElement *field)
bool ProcessElement(const TiXmlElement *field)
bool ProcessLong(const TiXmlElement *field)
bool ProcessSubStructInline(const TiXmlElement *field)
bool ProcessObject(const TiXmlElement *field)
bool ProcessDictInline(const TiXmlElement *field)
bool ProcessRaw(const TiXmlElement *field)
bool ProcessListStr(const TiXmlElement *field)
bool ProcessDictInlineEntry(const TiXmlElement *field)
bool ProcessList(const TiXmlElement *field)
bool ProcessListInline(const TiXmlElement *field)
bool ProcessElementPtr(const TiXmlElement *field)
bool ProcessReal(const TiXmlElement *field)
bool ProcessListLong(const TiXmlElement *field)
ClassConstructGenerator(FILE *outputFile=NULL)
Generic class for eve-xmlpktgen's generators.
bool ProcessDictRaw(const TiXmlElement *field)
bool ProcessElementDef(const TiXmlElement *field)
bool ParseElementChildren(const TiXmlElement *element, size_t max=0) const
Parses element's children using registered parsers.
bool ProcessInt(const TiXmlElement *field)
typeID Spawn an NPC with the specified type text Search for items matching the specified query() type() key(value)-Send an OnRemoteMessage" ) COMMAND( setbpattr
bool ProcessObjectEx(const TiXmlElement *field)
bool ProcessWString(const TiXmlElement *field)
bool ProcessStringInline(const TiXmlElement *field)
void AddMemberParser(const char *name, T &instance, bool(T::*method)(const TiXmlElement *))
Adds a member parser.