head 1.4; access; symbols; locks; strict; comment @# @; 1.4 date 2002.09.07.01.50.37; author curt; state Exp; branches; next 1.3; 1.3 date 2002.08.31.19.01.51; author curt; state Exp; branches; next 1.2; 1.2 date 2002.08.31.18.53.59; author curt; state Exp; branches; next 1.1; 1.1 date 2002.02.15.17.21.55; author curt; state Exp; branches; next ; desc @@ 1.4 log @Updated doxygen docs. @ text @
Main Page Class Hierarchy Compound List File List Compound Members File Members

# XMLAttributesDefault Class Reference

Default mutable attributes implementation. More...

`#include <easyxml.hxx>`

Inheritance diagram for XMLAttributesDefault:

List of all members.

## Public Methods
| XMLAttributesDefault ()
| Default constructor.
| XMLAttributesDefault (const XMLAttributes &atts)
| Copy constructor.
virtual | ~XMLAttributesDefault ()
| Destructor.
virtual int | size () const
| Count the attributes in the list.
virtual const char * | getName (int i) const
| Get the name of an attribute by index.
virtual const char * | getValue (int i) const
| Get the value of an attribute by index.
virtual void | addAttribute (const char *name, const char *value)
| Add an attribute to an attribute list.
virtual void | setName (int i, const char *name)
| Set an attribute name by index.
virtual void | setValue (int i, const char *value)
| Set an attribute value by index.
virtual void | setValue (const char *name, const char *value)
| Set an attribute value by name.

## Detailed Description

Default mutable attributes implementation.

This class provides a default implementation of the XMLAttributes interface. The implementation is mutable, so that it is possible to modify the attribute list when necessary. This class is particularly useful for taking a snapshot of an attribute list during parsing.

See also:
  XMLAttributes

Definition at line 133 of file easyxml.hxx.

## Constructor & Destructor Documentation

XMLAttributesDefault::XMLAttributesDefault | ( | const XMLAttributes & | atts | ) |

  | Copy constructor. This constructor is especially useful for taking a static snapshot of an attribute list for later use. Parameters:
  atts | The attribute list to copy.
Definition at line 66 of file easyxml.cxx. References addAttribute(), XMLAttributes::getName(), XMLAttributes::getValue(), and XMLAttributes::size().

## Member Function Documentation

void XMLAttributesDefault::addAttribute | ( | const char * | name,
|  | const char * | value
| ) | `[virtual]`

  | Add an attribute to an attribute list. The name is required to be unique in the list; the value is not. Parameters:
  name | The name of the attribute to add.
  value | The value of the attribute to add.
Definition at line 96 of file easyxml.cxx. Referenced by setValue(), and XMLAttributesDefault().

void XMLAttributesDefault::setName | ( | int | i,
|  | const char * | name
| ) | `[virtual]`

  | Set an attribute name by index. This method will not extend the list; the attribute must already exist. Parameters:
  i | The index of the attribute (zero-based).
  name | The new name.
Definition at line 103 of file easyxml.cxx. Referenced by setValue().

void XMLAttributesDefault::setValue | ( | const char * | name,
|  | const char * | value
| ) | `[virtual]`

  | Set an attribute value by name. This method will not extend the list; the attribute must already exist. Parameters:
  name | The name of the attribute that will have the new value.
  value | The new value.
Definition at line 115 of file easyxml.cxx. References addAttribute(), XMLAttributes::findAttribute(), setName(), and setValue().

void XMLAttributesDefault::setValue | ( | int | i,
|  | const char * | value
| ) | `[virtual]`

  | Set an attribute value by index. This method will not extend the list; the attribute must already exist. Parameters:
  i | The index of the attribute (zero-based).
  value | The new value.
Definition at line 109 of file easyxml.cxx. Referenced by setValue().

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

- easyxml.hxx
- easyxml.cxx

@ 1.3 log @Oops, try again. @ text @d311 1 a311 1