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

Method serialization

Tools/FontEditor/FontExportSerializer.cpp:21–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19 FACTORY_ITEM_ATTRIBUTE(FontExportSerializer)
20
21 void FontExportSerializer::serialization(pugi::xml_document& _doc)
22 {
23 pugi::xml_node root = _doc.append_child("MyGUI");
24 root.append_attribute("type").set_value("Resource");
25 root.append_attribute("version").set_value("1.1");
26
27 DataPtr data = DataManager::getInstance().getRoot();
28 for (const auto& child : data->getChilds())
29 writeFont(root, child);
30 }
31
32 bool FontExportSerializer::deserialization(pugi::xml_document& _doc)
33 {

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