58 XmlNodeConstPtrConst root = doc->
rootNode();
60 if ((root ==
nullptr) || !xmlNameEqual(root,
"messages"))
62 logger->
log(
"DeadDB: Failed to parse %s.",
70 if (xmlNameEqual(node,
"include"))
77 else if (xmlNameEqual(node,
"message"))
79 XmlChar *
const data =
reinterpret_cast<XmlChar*
>(
80 XmlNodeGetContent(node));
107 return std::string();
static void loadXmlFile(const std::string &file, const std::string &name, BadgesInfos &arr, const SkipError skipError)
#define loadXmlDir(name, function)
std::string getStringValue(const std::string &key) const
void log(const char *const log_text,...)
void log1(const char *const log_text)
const std::string getStr(const std::string &str)
#define for_each_xml_child_node(var, parent)
void loadXmlFile(const std::string &fileName, const SkipError skipError)
std::string getRandomString()
int getProperty(const xmlNodePtr node, const char *const name, int def)
std::vector< std::string > mMessages
const bool SkipError_false
const bool SkipError_true
const bool UseVirtFs_true