XML Library
Public Member Functions | Private Attributes
XML::Attribute Class Reference

An attribute. More...

#include <Attribute.hpp>

List of all members.

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.

Detailed Description

An attribute.

A collection cannot have duplicates so no write access to the name is provided.


Constructor & Destructor Documentation

Default constructor.

XML::Attribute::Attribute ( const tstring &  strName,
const tstring &  strValue 
) [inline]

Construction from a name and value pair.


Member Function Documentation

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.


Member Data Documentation

tstring XML::Attribute::m_strName [private]

The attribute name.

tstring XML::Attribute::m_strValue [private]

The attribute value.


The documentation for this class was generated from the following file: