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

Method exportData

Tools/FontEditor/FontExportSerializer.cpp:179–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177 }
178
179 bool FontExportSerializer::exportData(const MyGUI::UString& _folderName, const MyGUI::UString& _fileName)
180 {
181 MyGUI::xml::Document document;
182 document.createDeclaration();
183 MyGUI::xml::ElementPtr root = document.createRoot("MyGUI");
184 root->addAttribute("type", "Resource");
185 root->addAttribute("version", "1.1");
186
187 DataPtr data = DataManager::getInstance().getRoot();
188 for (const auto& child : data->getChilds())
189 {
190 generateFont(child);
191 generateFontManualXml(root, _folderName, child);
192 }
193
194 return document.save(common::concatenatePath(_folderName, _fileName));
195 }
196
197 template<typename Type>
198 void addProperty(MyGUI::xml::ElementPtr _node, std::string_view _name, Type _value)

Callers

nothing calls this directly

Calls 6

concatenatePathFunction · 0.85
createDeclarationMethod · 0.80
createRootMethod · 0.80
addAttributeMethod · 0.80
getRootMethod · 0.45
saveMethod · 0.45

Tested by

no test coverage detected