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

Method parseIndex

Tools/ImageEditor/ImageExportSerializer.cpp:75–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73 }
74
75 void ImageExportSerializer::parseIndex(pugi::xml_node _node, DataPtr _parent)
76 {
77 DataPtr data = Data::CreateInstance();
78 data->setType(DataTypeManager::getInstance().getType("Index"));
79 std::string value = _node.attribute("name").value();
80 if (value.empty())
81 value = "unnamed";
82 data->setPropertyValue("Name", value);
83 data->setPropertyValue("Rate", _node.attribute("rate").value());
84
85 _parent->addChild(data);
86
87 pugi::xpath_node_set nodes = _node.select_nodes("Frame");
88 for (const auto& node : nodes)
89 parseFrame(node.node(), data);
90 }
91
92 void ImageExportSerializer::parseFrame(pugi::xml_node _node, DataPtr _parent)
93 {

Callers

nothing calls this directly

Calls 9

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

Tested by

no test coverage detected