Passwordfile library
4.0.0
C++ library to read/write passwords from/to encrypted files
|
The exception that is thrown when a parsing error occurs. More...
#include <entry.h>
Public Member Functions | |
AccountEntry () | |
AccountEntry (const std::string &label, NodeEntry *parent=nullptr) | |
Constructs a new account entry with the specified label and parent. More... | |
AccountEntry (std::istream &stream) | |
Constructs a new account entry which is deserialized from the specified stream. More... | |
AccountEntry (const AccountEntry &other) | |
Constructs a copy of the another entry. More... | |
~AccountEntry () override | |
Destroys the entry. More... | |
EntryType | type () const override |
Returns the type of the entry. More... | |
const std::vector< Field > & | fields () const |
std::vector< Field > & | fields () |
void | make (std::ostream &stream) const override |
Serializes the entry to the specified stream. More... | |
AccountEntry * | clone () const override |
Clones the entry. More... | |
void | accumulateStatistics (EntryStatistics &stats) const override |
Accumulates the statistics for this account entry and its fields. More... | |
![]() | |
virtual | ~Entry () |
Destroys the entry. More... | |
Entry & | operator= (const Entry &other)=delete |
const std::string & | label () const |
Returns the label. More... | |
void | setLabel (const std::string &label) |
Sets the label. More... | |
void | makeLabelUnique () |
Internally called to make the entry's label unique within the parent. More... | |
NodeEntry * | parent () const |
Returns the parent entry. More... | |
void | setParent (NodeEntry *parent, int index=-1) |
Sets the parent for the entry. More... | |
int | index () const |
Returns the index of the entry within its parent. More... | |
bool | isIndirectChildOf (const NodeEntry *entry) const |
Returns an indication whether the instance is an indirect child of the specified entry. More... | |
std::list< std::string > | path () const |
Returns the path of the entry. More... | |
void | path (std::list< std::string > &res) const |
Stores to path of the entry in the specified list of string. More... | |
EntryStatistics | computeStatistics () const |
Computes statistics for this entry. More... | |
Additional Inherited Members | |
![]() | |
static Entry * | parse (std::istream &stream) |
Parses an entry from the specified stream. More... | |
static bool | denotesNodeEntry (byte version) |
static constexpr EntryType | denotedEntryType (byte version) |
![]() | |
Entry (const std::string &label=std::string(), NodeEntry *parent=nullptr) | |
Constructs a new entry with the specified label and parent. More... | |
Entry (const Entry &other) | |
Constructs a copy of another entry. More... | |
![]() | |
std::string | m_extendedData |
Io::AccountEntry::AccountEntry | ( | const std::string & | label, |
NodeEntry * | parent = nullptr |
||
) |
Io::AccountEntry::AccountEntry | ( | std::istream & | stream | ) |
Io::AccountEntry::AccountEntry | ( | const AccountEntry & | other | ) |
|
override |
|
overridevirtual |
|
overridevirtual |
|
inline |
|
overridevirtual |
|
inlineoverridevirtual |