diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-07-29 02:03:39 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-07-29 02:03:39 +0300 |
commit | dc6afb20dd1af4e9e3a8ff4d3f2f3fcf5cd87734 (patch) | |
tree | 8d944bed5a0e296b544440e26781931e20d66879 /src/utils/xmlutils.h | |
parent | f83dce6cb491c66721ff319ab90d9aad23a349eb (diff) | |
download | manaplus-dc6afb20dd1af4e9e3a8ff4d3f2f3fcf5cd87734.tar.gz manaplus-dc6afb20dd1af4e9e3a8ff4d3f2f3fcf5cd87734.tar.bz2 manaplus-dc6afb20dd1af4e9e3a8ff4d3f2f3fcf5cd87734.tar.xz manaplus-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.h | 9 |
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 §ionName, + const std::string &itemName, + const std::string &attributeKeyName, + const std::string &attributeValueName, + std::map<std::string, std::string> &arr); + #endif // UTILS_XMLUTILS_H |