| 233 | } |
| 234 | |
| 235 | void MakeCommonPropertyList(const mdf::IXmlNode &root, |
| 236 | mdf::detail::BlockPropertyList &dest) { |
| 237 | mdf::IXmlNode::ChildList list; |
| 238 | root.GetChildList(list); |
| 239 | if (list.empty()) { |
| 240 | return; |
| 241 | } |
| 242 | dest.emplace_back("", "", "", mdf::detail::BlockItemType::BlankItem); |
| 243 | dest.emplace_back("Properties", "", "", |
| 244 | mdf::detail::BlockItemType::HeaderItem); |
| 245 | |
| 246 | // Handle e property first and tree property later |
| 247 | for (const auto &e : list) { |
| 248 | if (e->IsTagName("e")) { |
| 249 | MakeCommonProperty(*e, dest); |
| 250 | } |
| 251 | } |
| 252 | for (const auto &tree : list) { |
| 253 | if (tree->IsTagName("tree")) { |
| 254 | MakeTreePropertyList(*tree, dest); |
| 255 | } |
| 256 | } |
| 257 | } |
| 258 | |
| 259 | } // namespace |
| 260 |
no test coverage detected