Wrapper for DOMElement that implements the ArchiveElementImpl interface. More...
#include <Valuable/XMLArchive.hpp>
Classes | |
| class | XMLIterator |
| Iterator for XMLArchiveElement children. More... | |
Public Member Functions | |
| virtual void | add (ArchiveElementImpl &element) |
| Adds a new child element to this element. More... | |
| virtual void | add (const QString &name, const QString &value) |
| Writes a new named attribute. More... | |
| virtual ArchiveIterator | children () const |
| Access all child elements. More... | |
| virtual QString | get (const QString &name) const |
| Reads a named attribute from the element. More... | |
| virtual QString | get () const |
| Reads the element contents. More... | |
| virtual QString | name () const |
| Reads the element name. More... | |
| virtual void | set (const QString &s) |
| Writes the element contents. More... | |
| virtual void | setName (const QString &name) |
| Sets the element name. More... | |
| const DOMElement * | xml () const |
| Returns a pointer to the wrapped DOMElement. More... | |
| XMLArchiveElement (DOMElement element) | |
| Creates a new wrapper object for given DOMElement object. More... | |
Public Member Functions inherited from Valuable::ArchiveElementImpl | |
| virtual | ~ArchiveElementImpl () |
| Virtual destructor. | |
Static Public Member Functions | |
| static ArchiveElement | create (const DOMElement &element) |
| Wraps the given DOMElement to XMLArchiveElement. More... | |
Wrapper for DOMElement that implements the ArchiveElementImpl interface.
This and XMLArchive implement XML serialization.
| Valuable::XMLArchiveElement::XMLArchiveElement | ( | DOMElement | element | ) |
Creates a new wrapper object for given DOMElement object.
| element | DOMElement to wrap |
|
virtual |
Adds a new child element to this element.
| element | New child element to be added |
Implements Valuable::ArchiveElementImpl.
|
virtual |
Writes a new named attribute.
| name | New unique (along this object) name for the attribute |
| value | Attribute value |
Implements Valuable::ArchiveElementImpl.
|
virtual |
Access all child elements.
Implements Valuable::ArchiveElementImpl.
|
static |
Wraps the given DOMElement to XMLArchiveElement.
| element | DOMElement to wrap |
|
virtual |
Reads a named attribute from the element.
| name | Name of the attribute to retrieve |
Implements Valuable::ArchiveElementImpl.
|
virtual |
Reads the element contents.
Implements Valuable::ArchiveElementImpl.
|
virtual |
|
virtual |
Writes the element contents.
| s | New contents of the element |
Implements Valuable::ArchiveElementImpl.
|
virtual |
Sets the element name.
| name | The new name of the element |
Implements Valuable::ArchiveElementImpl.
| const DOMElement* Valuable::XMLArchiveElement::xml | ( | ) | const |
Returns a pointer to the wrapped DOMElement.