MCPcopy Create free account
hub / github.com/Aloshi/EmulationStation / saveMap

Function saveMap

src/Settings.cpp:42–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40
41template <typename K, typename V>
42void 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
52void Settings::saveFile()
53{

Callers

nothing calls this directly

Calls 5

append_childMethod · 0.80
set_valueMethod · 0.80
append_attributeMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected