From dc6afb20dd1af4e9e3a8ff4d3f2f3fcf5cd87734 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 29 Jul 2015 02:03:39 +0300 Subject: Add function for load xml data to std::map with strings. --- src/utils/xmlutils.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/utils/xmlutils.h') 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 +#include #include void readXmlIntVector(const std::string &fileName, @@ -31,4 +32,12 @@ void readXmlIntVector(const std::string &fileName, const std::string &attributeName, std::vector &arr); +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 &arr); + #endif // UTILS_XMLUTILS_H -- cgit v1.2.3-60-g2f50