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