MCPcopy Create free account
hub / github.com/MediaArea/MediaInfoLib / QueryIntAttribute

Function QueryIntAttribute

Source/ThirdParty/tinyxml2/tinyxml2.h:1325–1331  ·  view source on GitHub ↗

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: @verba

Source from the content-addressed store, hash-verified

1323 @endverbatim
1324 */
1325 XMLError QueryIntAttribute( const char* name, int* value ) const {
1326 const XMLAttribute* a = FindAttribute( name );
1327 if ( !a ) {
1328 return XML_NO_ATTRIBUTE;
1329 }
1330 return a->QueryIntValue( value );
1331 }
1332
1333 /// See QueryIntAttribute()
1334 XMLError QueryUnsignedAttribute( const char* name, unsigned int* value ) const {

Callers 2

QueryAttributeFunction · 0.85
IntAttributeMethod · 0.85

Calls 2

FindAttributeFunction · 0.85
QueryIntValueMethod · 0.80

Tested by

no test coverage detected