#include <tinyxml.h>
The set can be changed transparent to the Element and Declaration classes that use it, but NOT transparent to the Attribute which has to implement a next() and previous() method. Which makes it a bit problematic and prevents the use of STL.
This version is implemented with circular lists because:
Public Member Functions | |
TiXmlAttributeSet () | |
~TiXmlAttributeSet () | |
void | Add (TiXmlAttribute *attribute) |
void | Remove (TiXmlAttribute *attribute) |
const TiXmlAttribute * | First () const |
TiXmlAttribute * | First () |
const TiXmlAttribute * | Last () const |
TiXmlAttribute * | Last () |
const TiXmlAttribute * | Find (const char *_name) const |
TiXmlAttribute * | Find (const char *_name) |
TiXmlAttributeSet::TiXmlAttributeSet | ( | ) |
TiXmlAttributeSet::~TiXmlAttributeSet | ( | ) |
void TiXmlAttributeSet::Add | ( | TiXmlAttribute * | attribute | ) |
void TiXmlAttributeSet::Remove | ( | TiXmlAttribute * | attribute | ) |
const TiXmlAttribute* TiXmlAttributeSet::First | ( | ) | const [inline] |
TiXmlAttribute* TiXmlAttributeSet::First | ( | ) | [inline] |
const TiXmlAttribute* TiXmlAttributeSet::Last | ( | ) | const [inline] |
TiXmlAttribute* TiXmlAttributeSet::Last | ( | ) | [inline] |
const TiXmlAttribute * TiXmlAttributeSet::Find | ( | const char * | _name | ) | const |
TiXmlAttribute* TiXmlAttributeSet::Find | ( | const char * | _name | ) | [inline] |