| 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 | { |
no test coverage detected