| 1119 | } |
| 1120 | |
| 1121 | NameElement parseNameElement( tinyxml2::XMLElement const * element ) |
| 1122 | { |
| 1123 | int const line = element->GetLineNum(); |
| 1124 | std::map<std::string, std::string> attributes = getAttributes( element ); |
| 1125 | checkAttributes( "vk.xml", line, attributes, { { "name", {} } }, {} ); |
| 1126 | checkElements( "vk.xml", line, getChildElements( element ), {} ); |
| 1127 | |
| 1128 | NameElement nameElement{ .xmlLine = line }; |
| 1129 | for ( auto const & attribute : attributes ) |
| 1130 | { |
| 1131 | if ( attribute.first == "name" ) |
| 1132 | { |
| 1133 | checkNoList( attribute.second, line ); |
| 1134 | nameElement.name = attribute.second; |
| 1135 | } |
| 1136 | } |
| 1137 | |
| 1138 | return nameElement; |
| 1139 | } |
| 1140 | |
| 1141 | std::pair<std::string, std::string> parseNameWithAlias( tinyxml2::XMLElement const * element ) |
| 1142 | { |
no test coverage detected