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

Method deserialization

Tools/EditorFramework/DataType.cpp:13–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11{
12
13 void DataType::deserialization(pugi::xml_node _node)
14 {
15 mName = _node.select_single_node("Name").node().child_value();
16 mFriend = _node.select_single_node("Friend").node().child_value();
17
18 pugi::xpath_node_set childs = _node.select_nodes("Childs/Child/Type");
19 for (const auto& child : childs)
20 mChilds.emplace_back(child.node().child_value());
21
22 pugi::xpath_node_set properties = _node.select_nodes("Properties/Property");
23 for (const auto& property : properties)
24 {
25 DataTypePropertyPtr info(new DataTypeProperty());
26 info->deserialization(property.node());
27 mProperties.push_back(info);
28 }
29 }
30
31 const std::string& DataType::getName() const
32 {

Callers 1

loadMethod · 0.45

Calls 5

child_valueMethod · 0.45
nodeMethod · 0.45
select_single_nodeMethod · 0.45
select_nodesMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected