| 268 | } |
| 269 | |
| 270 | static void exportXMLConfig(StreamWriter &stream, const SDObject *obj) |
| 271 | { |
| 272 | pugi::xml_document doc; |
| 273 | |
| 274 | pugi::xml_node xRoot = doc.append_child("config"); |
| 275 | xRoot.append_attribute("version") = (uint32_t)1; |
| 276 | |
| 277 | for(size_t o = 0; o < obj->NumChildren(); o++) |
| 278 | Config2XML(xRoot, *obj->GetChild(o)); |
| 279 | |
| 280 | xml_stream_writer writer(stream); |
| 281 | doc.save(writer, " ", pugi::format_default | pugi::format_no_empty_element_tags); |
| 282 | } |
| 283 | |
| 284 | static bool MergeConfigValues(const rdcstr &prefix, SDObject *dstConfig, const SDObject *srcConfig, |
| 285 | bool updateDescs) |
no test coverage detected