Exemplo n.º 1
0
void XmlElement::SetDoubleAttribute( const std::string& name, double val )
{	
	XmlAttribute* attrib = attributeSet.FindOrCreate( name );
	if ( attrib ) {
		attrib->SetDoubleValue( val );
	}
}
Exemplo n.º 2
0
/**
*  @brief
*    Sets an attribute of name to a given value
*/
void XmlElement::SetDoubleAttribute(const String &sName, double dValue)
{
	XmlAttribute *pAttribute = m_cAttributeSet.FindOrCreate(sName);
	if (pAttribute)
		pAttribute->SetDoubleValue(dValue);
}