| 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 | { |
nothing calls this directly
no test coverage detected