31 const std::string &rootName,
32 const std::string §ionName,
33 const std::string &itemName,
34 const std::string &attributeName,
39 XmlNodeConstPtrConst rootNode = doc.
rootNode();
41 if (rootNode ==
nullptr || !xmlNameEqual(rootNode, rootName.c_str()))
49 if (!xmlNameEqual(sectionNode, sectionName.c_str()))
53 if (xmlNameEqual(childNode, itemName.c_str()))
56 attributeName.c_str(), -1);
61 else if (xmlNameEqual(childNode,
"include"))
64 childNode,
"name",
"");
81 const std::string &rootName,
82 const std::string §ionName,
83 const std::string &itemName,
84 const std::string &attributeKeyName,
85 const std::string &attributeValueName,
86 std::map<std::string, std::string> &arr,
90 XmlNodeConstPtrConst rootNode = doc.
rootNode();
92 if (rootNode ==
nullptr || !xmlNameEqual(rootNode, rootName.c_str()))
100 if (!xmlNameEqual(sectionNode, sectionName.c_str()))
104 if (xmlNameEqual(childNode, itemName.c_str()))
107 attributeKeyName.c_str(),
"");
111 attributeValueName.c_str(),
"");
114 else if (xmlNameEqual(childNode,
"include"))
117 childNode,
"name",
"");
135 const std::string &rootName,
136 const std::string §ionName,
137 const std::string &itemName,
138 const std::string &attributeKeyName,
139 const std::string &attributeValueName,
140 std::map<int32_t, int32_t> &arr,
144 XmlNodeConstPtrConst rootNode = doc.
rootNode();
146 if (rootNode ==
nullptr || !xmlNameEqual(rootNode, rootName.c_str()))
154 if (!xmlNameEqual(sectionNode, sectionName.c_str()))
158 if (xmlNameEqual(childNode, itemName.c_str()))
161 attributeKeyName.c_str(),
"");
165 attributeValueName.c_str(), 0);
166 arr[atoi(key.c_str())] = val;
168 else if (xmlNameEqual(childNode,
"include"))
171 childNode,
"name",
"");
void log(const char *const log_text,...)
#define for_each_xml_child_node(var, parent)
int getProperty(const xmlNodePtr node, const char *const name, int def)
const bool UseVirtFs_true
void readXmlStringMap(const std::string &fileName, const std::string &rootName, const std::string §ionName, const std::string &itemName, const std::string &attributeKeyName, const std::string &attributeValueName, std::map< std::string, std::string > &arr, const SkipError skipError)
void readXmlIntMap(const std::string &fileName, const std::string &rootName, const std::string §ionName, const std::string &itemName, const std::string &attributeKeyName, const std::string &attributeValueName, std::map< int32_t, int32_t > &arr, const SkipError skipError)
void readXmlIntVector(const std::string &fileName, const std::string &rootName, const std::string §ionName, const std::string &itemName, const std::string &attributeName, std::vector< int > &arr, const SkipError skipError)