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

Method parseFrame

Tools/ImageEditor/ImageExportSerializer.cpp:92–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90 }
91
92 void ImageExportSerializer::parseFrame(pugi::xml_node _node, DataPtr _parent)
93 {
94 DataPtr data = Data::CreateInstance();
95 data->setType(DataTypeManager::getInstance().getType("Frame"));
96 data->setPropertyValue("Point", _node.attribute("point").value());
97 std::string value = _node.attribute("count").value();
98 if (value.empty())
99 value = "1";
100 data->setPropertyValue("Count", value);
101
102 _parent->addChild(data);
103 }
104
105 void ImageExportSerializer::writeImage(pugi::xml_node _parent, DataPtr _data)
106 {

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected