Given an attribute name, QueryIntAttribute() returns XML_SUCCESS, XML_WRONG_ATTRIBUTE_TYPE if the conversion can't be performed, or XML_NO_ATTRIBUTE if the attribute doesn't exist. If successful, the result of the conversion will be written to 'value'. If not successful, nothing will be written to 'value'. This allows you to provide default value: @verbatim
| 1343 | @endverbatim |
| 1344 | */ |
| 1345 | XMLError QueryIntAttribute( const char* name, int* value ) const { |
| 1346 | const XMLAttribute* a = FindAttribute( name ); |
| 1347 | if ( !a ) { |
| 1348 | return XML_NO_ATTRIBUTE; |
| 1349 | } |
| 1350 | return a->QueryIntValue( value ); |
| 1351 | } |
| 1352 | |
| 1353 | /// See QueryIntAttribute() |
| 1354 | XMLError QueryUnsignedAttribute( const char* name, unsigned int* value ) const { |
no test coverage detected