| 84 | } |
| 85 | |
| 86 | inline static int getIntAndCheck( |
| 87 | const char* attr, const XMLElement* e) throw(ex_xml_parse) { |
| 88 | // get value |
| 89 | int v = 0; |
| 90 | int err = e->QueryIntAttribute(attr, &v); |
| 91 | if (err != XML_NO_ERROR) |
| 92 | throw ex_xml_parse(RESOURCE_NAME, e->Name(), attr, "has invalid integer value"); |
| 93 | return v; |
| 94 | } |
| 95 | |
| 96 | inline static int getOptionalInt( |
| 97 | const char* attr, const XMLElement* e, const int def) throw(ex_xml_parse) { |
nothing calls this directly
no test coverage detected