MCPcopy Create free account
hub / github.com/Kistler-Group/sdbus-cpp / set

Method set

tools/xml2cpp-codegen/xml.cpp:104–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104void Node::set(const std::string& attribute, std::string value)
105{
106 if (value.length())
107 {
108 m_attrs[attribute] = value;
109 }
110 else
111 {
112 m_attrs.erase(value);
113 }
114}
115
116std::string Node::to_xml() const
117{

Callers

nothing calls this directly

Calls 1

eraseMethod · 0.80

Tested by

no test coverage detected