MCPcopy Create free account
hub / github.com/axmolengine/axmol / generateElementForDict

Function generateElementForDict

core/platform/FileUtils.cpp:441–451  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

439}
440
441static void generateElementForDict(const ValueMap& dict, pugi::xml_node& parent)
442{
443 auto dictDS = parent.append_child("dict"sv);
444 for (const auto& iter : dict)
445 {
446 auto key = dictDS.append_child("key"sv);
447 key.append_child(pugi::xml_node_type::node_pcdata).set_value(iter.first);
448
449 generateElementForObject(iter.second, dictDS);
450 }
451}
452
453static void generateElementForArray(const ValueVector& array, pugi::xml_node& parent)
454{

Callers 2

writeValueMapToFileMethod · 0.85
generateElementForObjectFunction · 0.85

Calls 3

generateElementForObjectFunction · 0.85
append_childMethod · 0.80
set_valueMethod · 0.45

Tested by

no test coverage detected