コード例 #1
0
ファイル: tinyxml.cpp プロジェクト: oksangman/Ant
void XmlElement::SetAttribute( const std::string& name, int val )
{	
	XmlAttribute* attrib = attributeSet.FindOrCreate( name );
	if ( attrib ) {
		attrib->SetIntValue( val );
	}
}
コード例 #2
0
ファイル: XmlElement.cpp プロジェクト: ByeDream/pixellight
/**
*  @brief
*    Sets an attribute of name to a given value
*/
void XmlElement::SetAttribute(const String &sName, int nValue)
{
	XmlAttribute *pAttribute = m_cAttributeSet.FindOrCreate(sName);
	if (pAttribute)
		pAttribute->SetIntValue(nValue);
}