| 40 | |
| 41 | template <typename K, typename V> |
| 42 | void saveMap(pugi::xml_document& doc, std::map<K, V>& map, const char* type) |
| 43 | { |
| 44 | for(auto iter = map.begin(); iter != map.end(); iter++) |
| 45 | { |
| 46 | pugi::xml_node node = doc.append_child(type); |
| 47 | node.append_attribute("name").set_value(iter->first.c_str()); |
| 48 | node.append_attribute("value").set_value(iter->second); |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | void Settings::saveFile() |
| 53 | { |
nothing calls this directly
no test coverage detected