MCPcopy Create free account
hub / github.com/BehaviorTree/BehaviorTree.CPP / QueryAttribute

Function QueryAttribute

3rdparty/tinyxml2/tinyxml2.h:1434–1436  ·  view source on GitHub ↗

Given an attribute name, QueryAttribute() returns XML_SUCCESS, XML_WRONG_ATTRIBUTE_TYPE if the conversion can't be performed, or XML_NO_ATTRIBUTE if the attribute doesn't exist. It is overloaded for the primitive types, and is a generally more convenient replacement of QueryIntAttribute() and related functions. If successful, the result of the conversion will be

Source from the content-addressed store, hash-verified

1432 @endverbatim
1433 */
1434 XMLError QueryAttribute( const char* name, int* value ) const {
1435 return QueryIntAttribute( name, value );
1436 }
1437
1438 XMLError QueryAttribute( const char* name, unsigned int* value ) const {
1439 return QueryUnsignedAttribute( name, value );

Callers

nothing calls this directly

Calls 8

QueryIntAttributeFunction · 0.85
QueryUnsignedAttributeFunction · 0.85
QueryInt64AttributeFunction · 0.85
QueryUnsigned64AttributeFunction · 0.85
QueryBoolAttributeFunction · 0.85
QueryDoubleAttributeFunction · 0.85
QueryFloatAttributeFunction · 0.85
QueryStringAttributeFunction · 0.85

Tested by

no test coverage detected