MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / QueryValueAttribute

Method QueryValueAttribute

Engine/lib/tinyxml/tinyxml.h:1029–1040  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1027 @return TIXML_SUCCESS, TIXML_WRONG_TYPE, or TIXML_NO_ATTRIBUTE
1028 */
1029 template< typename T > int QueryValueAttribute( const std::string& name, T* outValue ) const
1030 {
1031 const TiXmlAttribute* node = attributeSet.Find( name );
1032 if ( !node )
1033 return TIXML_NO_ATTRIBUTE;
1034
1035 std::stringstream sstream( node->ValueStr() );
1036 sstream >> *outValue;
1037 if ( !sstream.fail() )
1038 return TIXML_SUCCESS;
1039 return TIXML_WRONG_TYPE;
1040 }
1041
1042 int QueryValueAttribute( const std::string& name, std::string* outValue ) const
1043 {

Callers

nothing calls this directly

Calls 1

FindMethod · 0.80

Tested by

no test coverage detected