MCPcopy Create free account
hub / github.com/comaps/comaps / SetAttribute

Method SetAttribute

libs/editor/xml_feature.cpp:743–748  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

741}
742
743void XMLFeature::SetAttribute(string const & key, string const & value)
744{
745 auto node = HasAttribute(key) ? GetRootNode().attribute(key.data()) : GetRootNode().append_attribute(key.data());
746
747 node.set_value(value.data());
748}
749
750pugi::xml_node const XMLFeature::GetRootNode() const
751{

Callers 7

CreateMethod · 0.45
ModifyMethod · 0.45
DeleteMethod · 0.45
UNIT_TESTFunction · 0.45
UNIT_TESTFunction · 0.45

Calls 1

dataMethod · 0.45

Tested by 2

UNIT_TESTFunction · 0.36
UNIT_TESTFunction · 0.36