Interface for classes that want to implement ArchiveElement API ArchiveElement has a name, list of children, map of (name -> value) -pairs, and the content string.
More...
#include <Valuable/Archive.hpp>
Interface for classes that want to implement ArchiveElement API ArchiveElement has a name, list of children, map of (name -> value) -pairs, and the content string.
Every serialization format must provide a implementation of this class and use that to make new instances of ArchiveElement. All functions are called from ArchiveElement.
| virtual void Valuable::ArchiveElementImpl::add |
( |
const QString & |
name, |
|
|
const QString & |
value |
|
) |
| |
|
pure virtual |
| virtual QString Valuable::ArchiveElementImpl::get |
( |
const QString & |
name | ) |
const |
|
pure virtual |
Reads a named attribute from the element.
- Parameters
-
| name | Name of the attribute to retrieve |
- Returns
- Attribute contents as a string, or empty string if the attribute was not found.
Implemented in Valuable::XMLArchiveElement.
| virtual QString Valuable::ArchiveElementImpl::get |
( |
| ) |
const |
|
pure virtual |
| virtual QString Valuable::ArchiveElementImpl::name |
( |
| ) |
const |
|
pure virtual |
| virtual void Valuable::ArchiveElementImpl::set |
( |
const QString & |
s | ) |
|
|
pure virtual |
| virtual void Valuable::ArchiveElementImpl::setName |
( |
const QString & |
name | ) |
|
|
pure virtual |