| 318 | } |
| 319 | |
| 320 | void Configuration::Node::Load(Xml::Node xmlNode) |
| 321 | { |
| 322 | do |
| 323 | { |
| 324 | Map::iterator it(map.insert( Map::value_type(xmlNode.GetType(),Node()) )); |
| 325 | |
| 326 | it->second.parent.map = ↦ |
| 327 | it->second.parent.item = it; |
| 328 | |
| 329 | if (const Xml::Node xmlChild=xmlNode.GetFirstChild()) |
| 330 | it->second.Load( xmlChild ); |
| 331 | else |
| 332 | it->second.string = xmlNode.GetValue(); |
| 333 | |
| 334 | xmlNode = xmlNode.GetNextSibling(); |
| 335 | } |
| 336 | while (xmlNode); |
| 337 | } |
| 338 | |
| 339 | void Configuration::Node::Save(Xml::Node node,wcstring const key) const |
| 340 | { |
no test coverage detected