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 56 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 33 of file entry.cpp.
◆ Entry() [2/2]
Io::Entry::Entry |
( |
const Entry & |
other | ) |
|
|
protected |
Constructs a copy of another entry.
Definition at line 46 of file entry.cpp.
◆ clone()
Io::Entry::clone |
( |
| ) |
const |
|
pure virtual |
◆ denotedEntryType()
constexpr EntryType Io::Entry::denotedEntryType |
( |
byte |
version | ) |
|
|
static |
◆ 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 91 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.
- Todo:
- Make entry const in v4.
Definition at line 141 of file entry.cpp.
◆ label()
const std::string & Io::Entry::label |
( |
| ) |
const |
|
inline |
Returns the label.
Definition at line 63 of file entry.h.
◆ make()
Io::Entry::make |
( |
std::ostream & |
stream | ) |
const |
|
pure virtual |
◆ makeLabelUnique()
void Io::Entry::makeLabelUnique |
( |
| ) |
|
Internally called to make the entry's label unique within the parent.
- See also
- setLabel()
Definition at line 65 of file entry.cpp.
◆ operator=()
Entry& Io::Entry::operator= |
( |
const Entry & |
other | ) |
|
|
delete |
◆ parent()
Returns the parent entry.
Definition at line 83 of file entry.h.
◆ parse()
Entry * Io::Entry::parse |
( |
std::istream & |
stream | ) |
|
|
static |
Parses an entry from the specified stream.
- Exceptions
-
Definition at line 178 of file entry.cpp.
◆ path() [1/2]
std::list< string > Io::Entry::path |
( |
| ) |
const |
Returns the path of the entry.
Definition at line 156 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 166 of file entry.cpp.
◆ setLabel()
void Io::Entry::setLabel |
( |
const std::string & |
label | ) |
|
|
inline |
Sets the label.
Definition at line 73 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 100 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: