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

Method load

Tools/EditorFramework/DataTypeManager.cpp:48–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46 }
47
48 void DataTypeManager::load(const std::string& _fileName)
49 {
50 std::string fileName = MyGUI::DataManager::getInstance().getDataPath(_fileName);
51 pugi::xml_document doc;
52 pugi::xml_parse_result result = doc.load_file(fileName.c_str());
53 if (result)
54 {
55 pugi::xpath_node_set nodes = doc.select_nodes("Document/DataTypes/DataType");
56 for (const auto& node : nodes)
57 {
58 DataTypePtr data = std::make_shared<DataType>();
59 data->deserialization(node.node());
60 mDataInfos.push_back(data);
61 }
62 }
63 }
64
65 void DataTypeManager::clear()
66 {

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected