summaryrefslogtreecommitdiff
path: root/src/utils/xmlutils.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-07-29 02:03:39 +0300
committerAndrei Karas <akaras@inbox.ru>2015-07-29 02:03:39 +0300
commitdc6afb20dd1af4e9e3a8ff4d3f2f3fcf5cd87734 (patch)
tree8d944bed5a0e296b544440e26781931e20d66879 /src/utils/xmlutils.h
parentf83dce6cb491c66721ff319ab90d9aad23a349eb (diff)
downloadplus-dc6afb20dd1af4e9e3a8ff4d3f2f3fcf5cd87734.tar.gz
plus-dc6afb20dd1af4e9e3a8ff4d3f2f3fcf5cd87734.tar.bz2
plus-dc6afb20dd1af4e9e3a8ff4d3f2f3fcf5cd87734.tar.xz
plus-dc6afb20dd1af4e9e3a8ff4d3f2f3fcf5cd87734.zip
Add function for load xml data to std::map with strings.
Diffstat (limited to 'src/utils/xmlutils.h')
-rw-r--r--src/utils/xmlutils.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/utils/xmlutils.h b/src/utils/xmlutils.h
index 9715b005a..e5ac40f5c 100644
--- a/src/utils/xmlutils.h
+++ b/src/utils/xmlutils.h
@@ -22,6 +22,7 @@
#define UTILS_XMLUTILS_H
#include <string>
+#include <map>
#include <vector>
void readXmlIntVector(const std::string &fileName,
@@ -31,4 +32,12 @@ void readXmlIntVector(const std::string &fileName,
const std::string &attributeName,
std::vector<int> &arr);
+void readXmlStringMap(const std::string &fileName,
+ const std::string &rootName,
+ const std::string &sectionName,
+ const std::string &itemName,
+ const std::string &attributeKeyName,
+ const std::string &attributeValueName,
+ std::map<std::string, std::string> &arr);
+
#endif // UTILS_XMLUTILS_H