MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / ToXml

Method ToXml

lib/mdflib/mdflib/src/mdstandardattribute.cpp:75–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75void MdStandardAttribute::ToXml(IXmlNode& node) const {
76 // Add attributes to the node
77 if (ci_ > 0) {
78 node.SetAttribute("ci", ci_);
79 }
80 if (!lang_.empty()) {
81 node.SetAttribute("xml:lang", lang_);
82 }
83 for (const auto& [key,value] : custom_attribute_list_) {
84 node.SetAttribute(key, value);
85 }
86}
87
88void MdStandardAttribute::FromXml(const IXmlNode& node) {
89 const auto attr_list = node.GetAttributeList();

Callers

nothing calls this directly

Calls 2

emptyMethod · 0.80
SetAttributeMethod · 0.45

Tested by

no test coverage detected