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

Method parseImage

Tools/ImageEditor/ImageExportSerializer.cpp:43–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 }
42
43 void ImageExportSerializer::parseImage(pugi::xml_node _node)
44 {
45 DataPtr data = Data::CreateInstance();
46 data->setType(DataTypeManager::getInstance().getType("Image"));
47 data->setPropertyValue("Name", _node.attribute("name").value());
48
49 DataManager::getInstance().getRoot()->addChild(data);
50
51 pugi::xpath_node_set nodes = _node.select_nodes("Group");
52 for (const auto& node : nodes)
53 parseGroup(node.node(), data);
54 }
55
56 void ImageExportSerializer::parseGroup(pugi::xml_node _node, DataPtr _parent)
57 {

Callers

nothing calls this directly

Calls 9

setTypeMethod · 0.45
getTypeMethod · 0.45
setPropertyValueMethod · 0.45
valueMethod · 0.45
attributeMethod · 0.45
addChildMethod · 0.45
getRootMethod · 0.45
select_nodesMethod · 0.45
nodeMethod · 0.45

Tested by

no test coverage detected