22 Field(
AccountEntry *tiedAccount,
const std::string &name = std::string(),
const std::string &value = std::string());
26 const std::string &name()
const;
27 void setName(
const std::string &name);
28 const std::string &value()
const;
29 void setValue(
const std::string &value);
33 void make(std::ostream &stream)
const;
34 static bool isValidType(
int number);
52 return m_name.empty() && m_value.empty();
108 return m_tiedAccount;
116 return number >= 0 && number <= 1;
void setName(const std::string &name)
Sets the name.
static bool isValidType(int number)
Returns whether the specified number is a valid field type.
void setValue(const std::string &value)
Sets the value.
bool isEmpty() const
Returns an indication whether the entry is empty.
const std::string & value() const
Returns the value.
Contains all IO related classes.
FieldType type() const
Returns the type.
The Field class holds field information which consists of a name and a value and is able to serialize...
The exception that is thrown when a parsing error occurs.
#define PASSWORD_FILE_EXPORT
Marks the symbol to be exported by the passwordfile library.
void setType(FieldType type)
Sets the type.
std::string m_extendedData
AccountEntry * tiedAccount() const
Returns the tied account.
const std::string & name() const
Returns the name.