XML attribute.
Constructs an XML attribute named name with the value value .
Returns an empty string for a non-existent attribute.
Assigns the Attr a new value, and creates it if it doesn't exist. The equivalent of calling setAttribute( this-> getName() , toString( newValue ) ) .
setAttribute( this-> getName() , toString( newValue ) )
Returns the value of the attribute cast to T using ci::fromString() .
Returns true if the Attr value is empty.
Returns the name of the attribute as a string.
Returns the value of the attribute as a string.
Returns the value of the attribute parsed as a T. Requires T to support the istream>> operator. float size = myAttr.getValue<float>( "size" );
float size = myAttr.getValue<float>( "size" );
Sets the value of the attribute to value .
Sets the value of the attribute to value , which is cast to a string first. Requires T to support the ostream<< operator.