Logo Search packages:      
Sourcecode: rarian version File versions

const char * TiXmlElement::Attribute ( const char *  name,
double *  d 
) const

Given an attribute name, Attribute() returns the value for the attribute of that name, or null if none exists. If the attribute exists and can be converted to an double, the double value will be put in the return 'd', if 'd' is non-null.

Definition at line 693 of file tinyxml.cpp.

References Attribute().

      const char * s = Attribute( name );
      if ( d )
            if ( s )
                  *d = atof( s );
                  *d = 0;
      return s;

Generated by  Doxygen 1.6.0   Back to index