| 114 | } |
| 115 | |
| 116 | SettingsManager::VectorString SettingsManager::getValueList(std::string_view _path) |
| 117 | { |
| 118 | SettingsManager::VectorString result; |
| 119 | std::string path{_path}; |
| 120 | path += "/Value"; |
| 121 | |
| 122 | pugi::xpath_node_set nodes = mUserDocument->document_element().select_nodes(path.data()); |
| 123 | if (!nodes.empty()) |
| 124 | { |
| 125 | for (const auto& node : nodes) |
| 126 | result.emplace_back(node.node().child_value()); |
| 127 | } |
| 128 | else |
| 129 | { |
| 130 | nodes = mDocument->document_element().select_nodes(path.data()); |
| 131 | for (const auto& node : nodes) |
| 132 | result.emplace_back(node.node().child_value()); |
| 133 | } |
| 134 | |
| 135 | return result; |
| 136 | } |
| 137 | |
| 138 | void SettingsManager::mergeNodes(pugi::xml_node _nodeTarget, pugi::xml_node _nodeSource) |
| 139 | { |
no test coverage detected