| 56 | } |
| 57 | |
| 58 | std::size_t RegistryTree::deleteXPath(const std::string& path) |
| 59 | { |
| 60 | // Add the toplevel node to the path if required |
| 61 | std::string fullPath = prepareKey(path); |
| 62 | xml::NodeList nodeList = _tree.findXPath(fullPath); |
| 63 | |
| 64 | for (xml::Node& node : nodeList) |
| 65 | { |
| 66 | // unlink and delete the node |
| 67 | node.erase(); |
| 68 | } |
| 69 | |
| 70 | return nodeList.size(); |
| 71 | } |
| 72 | |
| 73 | xml::Node RegistryTree::createKeyWithName(const std::string& path, |
| 74 | const std::string& key, |