Logo Search packages:      
Sourcecode: rarian version File versions

void TiXmlElement::SetDoubleAttribute ( const char *  name,
double  value 
)

Sets an attribute of name to a given value. The attribute will be created if it does not exist, or changed if it does.

Definition at line 751 of file tinyxml.cpp.

References SetAttribute().

{     
      char buf[256];
      #if defined(TIXML_SNPRINTF)         
            TIXML_SNPRINTF( buf, sizeof(buf), "%f", val );
      #else
            sprintf( buf, "%f", val );
      #endif
      SetAttribute( name, buf );
}


Generated by  Doxygen 1.6.0   Back to index