MCPcopy Create free account
hub / github.com/baldurk/renderdoc / exportXMLConfig

Function exportXMLConfig

renderdoc/core/settings.cpp:270–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268}
269
270static 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
284static bool MergeConfigValues(const rdcstr &prefix, SDObject *dstConfig, const SDObject *srcConfig,
285 bool updateDescs)

Callers 2

ProcessConfigMethod · 0.85
SaveConfigSettingsMethod · 0.85

Calls 5

Config2XMLFunction · 0.85
append_childMethod · 0.80
append_attributeMethod · 0.80
GetChildMethod · 0.45
saveMethod · 0.45

Tested by

no test coverage detected