24 #ifndef UTILS_XML_PUGIXML_H
25 #define UTILS_XML_PUGIXML_H
29 #define XML_INCLUDE_DEFINE
34 #include "utils/xml/pugixml.inc"
38 #include <pugixml.hpp>
60 Document(
const std::string &filename,
87 {
return !
mDoc.empty(); }
95 pugi::xml_document
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,
162 #define for_each_xml_child_node(var, parent) \
163 for (pugi::xml_node var = parent.first_child(); \
164 var; var = var.next_sibling())
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)