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

Method createDeclaration

MyGUIEngine/src/MyGUI_XmlDocument.cpp:818–825  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

816 }
817
818 ElementPtr Document::createDeclaration(std::string_view _version, std::string_view _encoding)
819 {
820 clearDeclaration();
821 mDeclaration = std::make_unique<Element>("xml", nullptr, ElementType::Declaration);
822 mDeclaration->addAttribute("version", _version);
823 mDeclaration->addAttribute("encoding", _encoding);
824 return mDeclaration.get();
825 }
826
827 ElementPtr Document::createRoot(std::string_view _name)
828 {

Callers 6

ExportGui_ExportTestFunction · 0.80
saveToFileMethod · 0.80
saveMethod · 0.80
savexmlDocumentMethod · 0.80
createProjectMethod · 0.80
exportDataMethod · 0.80

Calls 2

addAttributeMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected