MCPcopy Create free account
hub / github.com/MyGUI/mygui / serialization

Method serialization

Tools/SkinEditor/SkinExportSerializer.cpp:33–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 }
32
33 void SkinExportSerializer::serialization(pugi::xml_document& _doc)
34 {
35 pugi::xml_node root = _doc.append_child("MyGUI");
36 root.append_attribute("type").set_value("Resource");
37 root.append_attribute("version").set_value("1.1");
38
39 DataPtr data = DataManager::getInstance().getRoot();
40 for (const auto& child : data->getChilds())
41 writeSkin(root, child);
42 }
43
44 bool SkinExportSerializer::deserialization(pugi::xml_document& _doc)
45 {

Callers 1

saveMethod · 0.45

Calls 4

append_childMethod · 0.45
set_valueMethod · 0.45
append_attributeMethod · 0.45
getRootMethod · 0.45

Tested by

no test coverage detected