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

Method InitMd

lib/mdflib/mdflib/src/imetadata.cpp:86–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84namespace mdf {
85
86void IMetaData::InitMd(const std::string& root_name) {
87 auto xml = CreateXmlFile();
88 const auto snippet = XmlSnippet();
89 if (!snippet.empty()) {
90 xml->ParseString(XmlSnippet());
91 }
92 auto& root_node = xml->RootName(root_name);
93 root_node.AddUniqueNode("TX");
94 XmlSnippet(xml->WriteString(true));
95}
96
97void IMetaData::StringProperty(const std::string& tag,
98 const std::string& value) {

Callers 1

TEST_FFunction · 0.80

Calls 5

CreateXmlFileFunction · 0.85
emptyMethod · 0.80
RootNameMethod · 0.80
WriteStringMethod · 0.80
ParseStringMethod · 0.45

Tested by 1

TEST_FFunction · 0.64