Instances of the Entry class form a hierarchic data structure used to store account information.
More...
#include <entry.h>
|
| Entry (const std::string &label=std::string(), NodeEntry *parent=nullptr) |
| Constructs a new entry with the specified label and parent.
|
|
| Entry (const Entry &other) |
| Constructs a copy of another entry.
|
|
Instances of the Entry class form a hierarchic data structure used to store account information.
Entries can be serialized and deserialized using the parse() and make() methods.
Definition at line 30 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 another entry.
Definition at line 45 of file entry.cpp.
◆ accumulateStatistics()
virtual void Io::Entry::accumulateStatistics |
( |
EntryStatistics & | stats | ) |
const |
|
pure virtual |
◆ clone()
virtual Entry * Io::Entry::clone |
( |
| ) |
const |
|
pure virtual |
◆ computeStatistics()
Computes statistics for this entry.
Definition at line 107 of file entry.h.
◆ denotedEntryType()
EntryType Io::Entry::denotedEntryType |
( |
std::uint8_t | version | ) |
|
|
staticconstexpr |
◆ denotesNodeEntry()
bool Io::Entry::denotesNodeEntry |
( |
std::uint8_t | 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 98 of file entry.h.
◆ isIndirectChildOf()
bool Io::Entry::isIndirectChildOf |
( |
const NodeEntry * | entry | ) |
const |
Returns an indication whether the instance is an indirect child of the specified entry.
Definition at line 139 of file entry.cpp.
◆ label()
const std::string & Io::Entry::label |
( |
| ) |
const |
|
inline |
Returns the label.
Definition at line 70 of file entry.h.
◆ make()
virtual void 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 64 of file entry.cpp.
◆ operator=()
Entry & Io::Entry::operator= |
( |
const Entry & | other | ) |
|
|
delete |
◆ parent()
Returns the parent entry.
Definition at line 90 of file entry.h.
◆ parse()
Entry * Io::Entry::parse |
( |
std::istream & | stream | ) |
|
|
static |
Parses an entry from the specified stream.
- Exceptions
-
Definition at line 176 of file entry.cpp.
◆ path() [1/2]
std::list< string > Io::Entry::path |
( |
| ) |
const |
Returns the path of the entry.
Definition at line 154 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 164 of file entry.cpp.
◆ setLabel()
void Io::Entry::setLabel |
( |
const std::string & | label | ) |
|
|
inline |
Sets the label.
Definition at line 80 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 99 of file entry.cpp.
◆ type()
◆ NodeEntry
◆ m_extendedData
std::string Io::Entry::m_extendedData |
|
protected |
The documentation for this class was generated from the following files: