24 #ifndef UTILS_XML_TINYXML2_H
25 #define UTILS_XML_TINYXML2_H
27 #ifdef ENABLE_TINYXML2
29 #define XML_INCLUDE_DEFINE
34 #include "utils/xml/tinyxml2.inc"
38 #ifndef _GLIBCXX_STRING
60 Document(
const std::string &filename,
87 {
return mDoc.Error() ==
false; }
95 tinyxml2::XMLDocument
mDoc;
104 const char *
const name,
111 const char *
const name,
118 const char *
const name,
125 const char *
const name,
134 const char *
const name,
141 const char *
const name,
148 const char *
const name,
155 const char *
const name)
163 #define for_each_xml_child_node(var, parent) \
164 for (const tinyxml2::XMLElement *var = parent->FirstChildElement(); \
166 var = var->NextSiblingElement())
static bool validateXml(const std::string &fileName)
Document(const std::string &filename, const UseVirtFs useResman, const SkipError skipError)
#define A_DELETE_COPY(func)
std::string langProperty(const xmlNodePtr node, const char *const name, const std::string &def)
float getFloatProperty(const xmlNodePtr node, const char *const name, float def)
bool getBoolProperty(const xmlNodePtr node, const char *const name, const bool def)
int getProperty(const xmlNodePtr node, const char *const name, int def)
int getIntProperty(const xmlNodePtr node, const char *const name, int def, const int min, const int max)
xmlNodePtr findFirstChildByName(const xmlNode *const parent, const char *const name)
double getDoubleProperty(const xmlNodePtr node, const char *const name, double def)