Instances of the Entry class form a hierarchic data strucutre used to store account information.
More...
#include <entry.h>
Instances of the Entry class form a hierarchic data strucutre used to store account information.
Entries can be serialized and deserialized using the parse() and make() methods.
Definition at line 25 of file entry.h.
◆ ~Entry()
Destroys the entry.
Definition at line 55 of file entry.cpp.
◆ Entry() [1/2]
Io::Entry::Entry |
( |
const std::string & |
label = std::string() , |
|
|
NodeEntry * |
parent = nullptr |
|
) |
| |
|
protected |
Constructs a new entry with the specified label and parent.
Definition at line 32 of file entry.cpp.
◆ Entry() [2/2]
Io::Entry::Entry |
( |
const Entry & |
other | ) |
|
|
protected |
Constructs a copy of the another entry.
Definition at line 45 of file entry.cpp.
◆ clone()
Io::Entry::clone |
( |
| ) |
const |
|
pure virtual |
◆ denotesNodeEntry()
bool Io::Entry::denotesNodeEntry |
( |
byte |
version | ) |
|
|
inlinestatic |
◆ index()
int Io::Entry::index |
( |
| ) |
const |
|
inline |
Returns the index of the entry within its parent.
Returns -1 for parentless entries.
Definition at line 90 of file entry.h.
◆ isIndirectChildOf()
bool Io::Entry::isIndirectChildOf |
( |
NodeEntry * |
entry | ) |
const |
Returns an indication whether the instance is an indirect child of the specified entry.
Definition at line 122 of file entry.cpp.
◆ label()
const std::string & Io::Entry::label |
( |
| ) |
const |
|
inline |
Returns the label.
Definition at line 62 of file entry.h.
◆ make()
Io::Entry::make |
( |
std::ostream & |
stream | ) |
const |
|
pure virtual |
◆ makeLabelUnique()
void Io::Entry::makeLabelUnique |
( |
| ) |
|
◆ operator=()
Entry& Io::Entry::operator= |
( |
const Entry & |
other | ) |
|
|
delete |
◆ parent()
Returns the parent entry.
Definition at line 82 of file entry.h.
◆ parse()
Entry * Io::Entry::parse |
( |
std::istream & |
stream | ) |
|
|
static |
Parses an entry from the specified stream.
- Exceptions
-
Definition at line 160 of file entry.cpp.
◆ path() [1/2]
std::list< string > Io::Entry::path |
( |
| ) |
const |
Returns the path of the entry.
Definition at line 138 of file entry.cpp.
◆ path() [2/2]
void Io::Entry::path |
( |
std::list< std::string > & |
res | ) |
const |
Stores to path of the entry in the specified list of string.
Definition at line 148 of file entry.cpp.
◆ setLabel()
void Io::Entry::setLabel |
( |
const std::string & |
label | ) |
|
|
inline |
Sets the label.
Definition at line 72 of file entry.h.
◆ setParent()
void Io::Entry::setParent |
( |
NodeEntry * |
parent, |
|
|
int |
index = -1 |
|
) |
| |
Sets the parent for the entry.
If an index is specified the entry will be inserted as child at this position. If parent is nullptr, the entry will be parentless.
Definition at line 92 of file entry.cpp.
◆ type()
Io::Entry::type |
( |
| ) |
const |
|
pure virtual |
◆ NodeEntry
◆ m_extendedData
std::string Io::Entry::m_extendedData |
|
protected |
The documentation for this class was generated from the following files: