| 1403 | } |
| 1404 | |
| 1405 | static std::list<std::string> readXmlStringList(const tinyxml2::XMLElement *node, const std::string &path, const char name[], const char attribute[]) |
| 1406 | { |
| 1407 | std::list<std::string> ret; |
| 1408 | for (const tinyxml2::XMLElement *child = node->FirstChildElement(); child; child = child->NextSiblingElement()) { |
| 1409 | if (strcmp(child->Name(), name) != 0) |
| 1410 | continue; |
| 1411 | const char *attr = attribute ? child->Attribute(attribute) : child->GetText(); |
| 1412 | if (attr) |
| 1413 | ret.emplace_back(joinRelativePath(path, attr)); |
| 1414 | } |
| 1415 | return ret; |
| 1416 | } |
| 1417 | |
| 1418 | static std::list<std::string> readXmlPathMatchList(const tinyxml2::XMLElement *node, const std::string &path, const char name[], const char attribute[]) |
| 1419 | { |
no test coverage detected