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

Method mergeAttributes

Tools/EditorFramework/SettingsManager.cpp:179–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177 }
178
179 void SettingsManager::mergeAttributes(pugi::xml_node _nodeTarget, pugi::xml_node _nodeSource)
180 {
181 for (pugi::xml_node::attribute_iterator attribute = _nodeSource.attributes_begin();
182 attribute != _nodeSource.attributes_end();
183 attribute++)
184 {
185 pugi::xml_attribute attributeNode = _nodeTarget.attribute((*attribute).name());
186 if (attributeNode.empty())
187 attributeNode = _nodeTarget.append_attribute((*attribute).name());
188 attributeNode.set_value((*attribute).value());
189 }
190 }
191
192 bool SettingsManager::loadUserSettingsFile(std::string_view _fileName)
193 {

Callers

nothing calls this directly

Calls 8

attributes_beginMethod · 0.45
attributes_endMethod · 0.45
attributeMethod · 0.45
nameMethod · 0.45
emptyMethod · 0.45
append_attributeMethod · 0.45
set_valueMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected