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

Function MakeConstantList

lib/mdflib/mdflib/src/md4block.cpp:11–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9namespace {
10
11void MakeConstantList(const mdf::IXmlNode &root,
12 mdf::detail::BlockPropertyList &dest) {
13 mdf::IXmlNode::ChildList constant_list;
14 root.GetChildList(constant_list);
15 if (constant_list.empty()) {
16 return;
17 }
18 dest.emplace_back("", "", "", mdf::detail::BlockItemType::BlankItem);
19 dest.emplace_back("Constants", "", "",
20 mdf::detail::BlockItemType::HeaderItem);
21 for (const auto &c : constant_list) {
22 const auto name = c->Attribute<std::string>("name");
23 dest.emplace_back(name, c->Value<std::string>());
24 }
25}
26
27void MakePhysicalDimension(const mdf::IXmlNode &pd,
28 mdf::detail::BlockPropertyList &dest) {

Callers 1

GetBlockPropertyMethod · 0.85

Calls 2

emptyMethod · 0.80
GetChildListMethod · 0.45

Tested by

no test coverage detected