45 const char* name = field->Attribute(
"name" );
46 if (name ==
nullptr) {
47 std::cout << std::endl <<
"ClassDestructGenerator:: <element> at line " << field->Row() <<
" is missing the name attribute, skipping.";
75 const char* name = field->Attribute(
"name" );
76 if (name ==
nullptr) {
77 std::cout << std::endl <<
"ClassDestructGenerator:: field at line " << field->Row() <<
" is missing the name attribute, skipping.";
82 " SafeDelete( %s );\n",
91 const char* name = field->Attribute(
"name" );
92 if (name ==
nullptr) {
93 std::cout << std::endl <<
"ClassDestructGenerator:: field at line " << field->Row() <<
" is missing the name attribute, skipping.";
98 " PySafeDecRef( %s );\n",
132 const char* name = field->Attribute(
"name" );
133 if (name ==
nullptr) {
134 std::cout << std::endl <<
"ClassDestructGenerator:: field at line " << field->Row() <<
" is missing the name attribute, skipping.";
139 " //PySafeDecRef( %s );\n",
168 const char* name = field->Attribute(
"name" );
169 if (name ==
nullptr) {
170 std::cout << std::endl <<
"ClassDestructGenerator:: field at line " << field->Row() <<
" is missing the name attribute, skipping.";
175 " //PySafeDecRef( %s );\n",
189 const char* name = field->Attribute(
"name" );
190 if (name ==
nullptr) {
191 std::cout << std::endl <<
"ClassDestructGenerator:: field at line " << field->Row() <<
" is missing the name attribute, skipping.";
196 " //PySafeDecRef( %s );\n"
211 const char* name = field->Attribute(
"name" );
212 if (name ==
nullptr) {
213 std::cout << std::endl <<
"ClassDestructGenerator:: field at line " << field->Row() <<
" is missing the name attribute, skipping.";
218 " //PySafeDecRef( %s );\n",
227 const char* name = field->Attribute(
"name" );
228 if (name ==
nullptr) {
229 std::cout << std::endl <<
"ClassDestructGenerator:: field at line " << field->Row() <<
" is missing the name attribute, skipping.";
234 " //PySafeDecRef( %s );\n",
248 const char* name = field->Attribute(
"name" );
249 if (name ==
nullptr) {
250 std::cout << std::endl <<
"ClassDestructGenerator:: field at line " << field->Row() <<
" is missing the name attribute, skipping.";
255 " //PySafeDecRef( %s );\n",
283 const char* name = field->Attribute(
"name" );
284 if (name ==
nullptr) {
285 std::cout << std::endl <<
"ClassDestructGenerator:: field at line " << field->Row() <<
" is missing the name attribute, skipping.";
290 " //PySafeDecRef( %s );\n",
305 const char*
key = field->Attribute(
"key" );
306 if (key ==
nullptr) {
307 std::cout << std::endl <<
"ClassDestructGenerator:: <dictInlineEntry> at line " << field->Row() <<
" is missing the key attribute, skipping.";
321 const char* name = field->Attribute(
"name" );
322 if (name ==
nullptr) {
323 std::cout << std::endl <<
"ClassDestructGenerator:: field at line " << field->Row() <<
" is missing the name attribute, skipping.";
328 " std::map<int32, PyRep*>::const_iterator %s_cur = %s.begin();\n"
329 " for (; %s_cur != %s.end(); %s_cur++)\n"
330 " PyDecRef( %s_cur->second );\n"
342 const char* name = field->Attribute(
"name" );
343 if (name ==
nullptr) {
344 std::cout << std::endl <<
"ClassDestructGenerator:: field at line " << field->Row() <<
" is missing the name attribute, skipping.";
349 " std::map<std::string, PyRep*>::const_iterator %s_cur = %s.begin();\n"
350 " for (; %s_cur != %s.end(); %s_cur++)\n"
351 " PyDecRef( %s_cur->second );\n"
bool ProcessList(const TiXmlElement *field)
bool ProcessListLong(const TiXmlElement *field)
bool ProcessReal(const TiXmlElement *field)
void RegisterProcessors()
bool ProcessListStr(const TiXmlElement *field)
bool ProcessTuple(const TiXmlElement *field)
bool ProcessDict(const TiXmlElement *field)
ClassDestructGenerator(FILE *outputFile=NULL)
bool ProcessTokenInline(const TiXmlElement *field)
void RegisterProcessors()
bool ProcessObject(const TiXmlElement *field)
bool ProcessListInline(const TiXmlElement *field)
bool ProcessObjectInline(const TiXmlElement *field)
bool ProcessDictRaw(const TiXmlElement *field)
bool ProcessObjectEx(const TiXmlElement *field)
bool ProcessSubStructInline(const TiXmlElement *field)
bool ProcessLong(const TiXmlElement *field)
bool ProcessBuffer(const TiXmlElement *field)
bool ProcessSubStreamInline(const TiXmlElement *field)
bool ProcessToken(const TiXmlElement *field)
bool ProcessListInt(const TiXmlElement *field)
bool ProcessDictInlineEntry(const TiXmlElement *field)
bool ProcessInt(const TiXmlElement *field)
bool ProcessTupleInline(const TiXmlElement *field)
Generic class for eve-xmlpktgen's generators.
bool ParseElementChildren(const TiXmlElement *element, size_t max=0) const
Parses element's children using registered parsers.
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 ProcessDictStr(const TiXmlElement *field)
bool ProcessStringInline(const TiXmlElement *field)
bool ProcessBool(const TiXmlElement *field)
bool ProcessRaw(const TiXmlElement *field)
bool ProcessWStringInline(const TiXmlElement *field)
bool ProcessDictInline(const TiXmlElement *field)
bool ProcessElementDef(const TiXmlElement *field)
bool ProcessNone(const TiXmlElement *field)
bool ProcessDictInt(const TiXmlElement *field)
bool ProcessElement(const TiXmlElement *field)
bool ProcessWString(const TiXmlElement *field)
bool ProcessElementPtr(const TiXmlElement *field)
bool ProcessString(const TiXmlElement *field)
void AddMemberParser(const char *name, T &instance, bool(T::*method)(const TiXmlElement *))
Adds a member parser.