XML Library
|
An attribute. More...
#include <Attribute.hpp>
Public Member Functions | |
Attribute () | |
Default constructor. | |
Attribute (const tstring &strName, const tstring &strValue) | |
Construction from a name and value pair. | |
const tstring & | name () const |
Get the name. | |
const tstring & | value () const |
Get the value. | |
void | setValue (const tstring &strValue) |
Set the value. | |
Private Attributes | |
tstring | m_strName |
The attribute name. | |
tstring | m_strValue |
The attribute value. |
An attribute.
A collection cannot have duplicates so no write access to the name is provided.
XML::Attribute::Attribute | ( | ) | [inline] |
Default constructor.
XML::Attribute::Attribute | ( | const tstring & | strName, |
const tstring & | strValue | ||
) | [inline] |
Construction from a name and value pair.
const tstring & XML::Attribute::name | ( | ) | const [inline] |
Get the name.
const tstring & XML::Attribute::value | ( | ) | const [inline] |
Get the value.
void XML::Attribute::setValue | ( | const tstring & | strValue | ) | [inline] |
Set the value.
tstring XML::Attribute::m_strName [private] |
The attribute name.
tstring XML::Attribute::m_strValue [private] |
The attribute value.