MCPcopy Create free account
hub / github.com/MyGUI/mygui / load

Method load

UnitTests/TestApp/DataInfoManager.cpp:44–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 }
43
44 void DataInfoManager::load(const std::string& _fileName)
45 {
46 std::string fileName = MyGUI::DataManager::getInstance().getDataPath(_fileName);
47 pugi::xml_document doc;
48 pugi::xml_parse_result result = doc.load_file(fileName.c_str());
49 if (result)
50 {
51 pugi::xpath_node_set nodes = doc.select_nodes("Document/DataInfos/DataInfo");
52 for (pugi::xpath_node_set::const_iterator node = nodes.begin(); node != nodes.end(); node++)
53 {
54 DataInfo* data = new DataInfo();
55 data->deserialization((*node).node());
56 mDataInfos.push_back(data);
57 }
58 }
59 }
60
61 void DataInfoManager::clear()
62 {

Callers

nothing calls this directly

Calls 9

getDataPathMethod · 0.45
load_fileMethod · 0.45
c_strMethod · 0.45
select_nodesMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
deserializationMethod · 0.45
nodeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected