40 std::map<std::string, STD_VECTOR<BasicStat> >
mStats;
105 if (xmlNameEqual(node,
"stat"))
112 if (id <= 0 || id >= maxAttr)
136 const std::string &page)
139 STD_VECTOR<BasicStat> &stats =
mStats[page];
143 if (xmlNameEqual(node,
"stat"))
150 if (id <= 0 || id >= maxAttr)
177 XmlNodeConstPtrConst rootNode = doc.
rootNode();
179 if ((rootNode ==
nullptr) || !xmlNameEqual(rootNode,
"stats"))
181 logger->
log(
"StatDb: Error while loading %s!",
190 if (xmlNameEqual(node,
"include"))
197 else if (xmlNameEqual(node,
"basic"))
201 else if (xmlNameEqual(node,
"extended"))
206 else if (xmlNameEqual(node,
"page"))
Attributes ::T AttributesT
static void loadXmlFile(const std::string &file, const std::string &name, BadgesInfos &arr, const SkipError skipError)
#define loadXmlDir(name, function)
#define reportAlways(...)
std::string getStringValue(const std::string &key) const
void log(const char *const log_text,...)
void log1(const char *const log_text)
#define for_each_xml_child_node(var, parent)
bool find(const std::string &key)
AttributesT get(const std::string &key)
const std::vector< BasicStat > & getBasicStats()
const std::vector< BasicStat > & getStats(const std::string &page)
const std::vector< std::string > & getPages()
void loadXmlFile(const std::string &fileName, const SkipError skipError)
std::string langProperty(const xmlNodePtr node, const char *const name, const std::string &def)
int getProperty(const xmlNodePtr node, const char *const name, int def)
std::map< std::string, std::vector< BasicStat > > mStats
std::vector< std::string > mPages
std::vector< BasicStat > mBasicStats
const bool SkipError_false
const bool SkipError_true
static void loadStats(const xmlNodePtr rootNode, const std::string &page)
static void loadBasicStats(const xmlNodePtr rootNode)
const bool UseVirtFs_true