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

Function MakeUnitSpecList

lib/mdflib/mdflib/src/md4block.cpp:174–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172}
173
174void MakeUnitSpecList(const mdf::IXmlNode &root,
175 mdf::detail::BlockPropertyList &dest) {
176 mdf::IXmlNode::ChildList list;
177 root.GetChildList(list);
178 if (list.empty()) {
179 return;
180 }
181 for (const auto &c : list) {
182 if (c->IsTagName("PHYSICAL-DIMENSIONS")) {
183 MakePhysicalDimensionList(*c, dest);
184 } else if (c->IsTagName("UNITGROUPS")) {
185 MakeUnitGroupList(*c, dest);
186 } else if (c->IsTagName("UNITS")) {
187 MakeUnitList(*c, dest);
188 }
189 }
190}
191
192void MakeCommonProperty(const mdf::IXmlNode &e,
193 mdf::detail::BlockPropertyList &dest) {

Callers 1

GetBlockPropertyMethod · 0.85

Calls 6

MakeUnitGroupListFunction · 0.85
MakeUnitListFunction · 0.85
emptyMethod · 0.80
IsTagNameMethod · 0.80
GetChildListMethod · 0.45

Tested by

no test coverage detected