MCPcopy Create free account
hub / github.com/PDAL/PDAL / lookupAttribute

Function lookupAttribute

plugins/e57/libE57Format/src/E57XmlParser.cpp:107–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105 }
106
107 ustring lookupAttribute( const Attributes &attributes, const XMLCh *attribute_name )
108 {
109 XMLSize_t attr_index;
110 if ( !attributes.getIndex( attribute_name, attr_index ) )
111 {
112 throw E57_EXCEPTION2( ErrorBadXMLFormat, "attributeName=" + toUString( attribute_name ) );
113 }
114 return ( toUString( attributes.getValue( attr_index ) ) );
115 }
116
117 bool isAttributeDefined( const Attributes &attributes, const XMLCh *attribute_name )
118 {

Callers 1

startElementMethod · 0.85

Calls 2

toUStringFunction · 0.85
getValueMethod · 0.80

Tested by

no test coverage detected