| 9 | namespace { |
| 10 | |
| 11 | void 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 | |
| 27 | void MakePhysicalDimension(const mdf::IXmlNode &pd, |
| 28 | mdf::detail::BlockPropertyList &dest) { |
no test coverage detected