MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Hpp / parseNameElement

Function parseNameElement

generator/VkXMLParser.cpp:1121–1139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1119}
1120
1121NameElement 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
1141std::pair<std::string, std::string> parseNameWithAlias( tinyxml2::XMLElement const * element )
1142{

Callers 2

parseRemoveFunction · 0.85
parseRequireFunction · 0.85

Calls 5

getAttributesFunction · 0.85
checkAttributesFunction · 0.85
checkElementsFunction · 0.85
getChildElementsFunction · 0.85
checkNoListFunction · 0.85

Tested by

no test coverage detected