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

Method deserialization

UnitTests/TestApp/DataInfo.cpp:22–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 }
21
22 void DataInfo::deserialization(pugi::xml_node _node)
23 {
24 mType = _node.select_single_node("Type").node().child_value();
25
26 pugi::xpath_node_set childs = _node.select_nodes("Childs/Child/Type");
27 for (pugi::xpath_node_set::const_iterator child = childs.begin(); child != childs.end(); child++)
28 mChilds.push_back((*child).node().child_value());
29
30 pugi::xpath_node_set properties = _node.select_nodes("Properties/Property");
31 for (pugi::xpath_node_set::const_iterator property = properties.begin(); property != properties.end();
32 property++)
33 {
34 DataPropertyInfo* info = new DataPropertyInfo();
35 info->deserialization((*property).node());
36 mProperties.push_back(info);
37 }
38 }
39
40 const std::string& DataInfo::getType() const
41 {

Callers 1

loadMethod · 0.45

Calls 7

child_valueMethod · 0.45
nodeMethod · 0.45
select_single_nodeMethod · 0.45
select_nodesMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected