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

Method copyProperty

Tools/EditorFramework/DataUtility.cpp:76–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74 }
75
76 void DataUtility::copyProperty(DataPtr _target, DataPtr _prototype)
77 {
78 for (Data::MapProperty::const_iterator property = _prototype->getProperties().begin();
79 property != _prototype->getProperties().end();
80 property++)
81 _target->setPropertyValue((*property).first, (*property).second->getValue());
82 }
83
84 std::string DataUtility::getUniqueName(DataPtr _parent, std::string_view _pattern)
85 {

Callers

nothing calls this directly

Calls 5

getPropertiesMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
setPropertyValueMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected