24 #ifndef UTILS_XML_LIBXML_H
25 #define UTILS_XML_LIBXML_H
29 #define XML_INCLUDE_DEFINE
34 #include "utils/xml/libxml.inc"
38 #ifndef _GLIBCXX_STRING
60 Document(
const std::string &filename,
87 {
return mDoc !=
nullptr; }
103 const char *
const name,
110 const char *
const name,
117 const char *
const name,
124 const char *
const name,
133 const char *
const name,
140 const char *
const name,
147 const char *
const name,
161 #define for_each_xml_child_node(var, parent) \
162 for (XmlNodePtr var = parent->xmlChildrenNode; var; var = var->next)
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)