The Field class holds field information which consists of a name and a value and is able to serialize and deserialize this information.
More...
#include <field.h>
|
static bool | isValidType (int number) |
| Returns whether the specified number is a valid field type. More...
|
|
The Field class holds field information which consists of a name and a value and is able to serialize and deserialize this information.
Definition at line 19 of file field.h.
Io::Field::Field |
( |
AccountEntry * |
tiedAccount, |
|
|
const std::string & |
name = std::string() , |
|
|
const std::string & |
value = std::string() |
|
) |
| |
Constructs a new account entry for the specified account with the specified name and value.
Definition at line 23 of file field.cpp.
Io::Field::Field |
( |
AccountEntry * |
tiedAccount, |
|
|
std::istream & |
stream |
|
) |
| |
Constructs a new account entry for the specified account which is deserialize from the specified stream.
- Exceptions
-
Definition at line 35 of file field.cpp.
bool Io::Field::isEmpty |
( |
| ) |
const |
|
inline |
Returns an indication whether the entry is empty.
Definition at line 50 of file field.h.
bool Io::Field::isValidType |
( |
int |
number | ) |
|
|
inlinestatic |
Returns whether the specified number is a valid field type.
Definition at line 114 of file field.h.
void Io::Field::make |
( |
std::ostream & |
stream | ) |
const |
Serializes the current instance to the specified stream.
Definition at line 62 of file field.cpp.
const std::string & Io::Field::name |
( |
| ) |
const |
|
inline |
Returns the name.
Definition at line 58 of file field.h.
void Io::Field::setName |
( |
const std::string & |
name | ) |
|
|
inline |
Sets the name.
Definition at line 66 of file field.h.
Sets the type.
Definition at line 98 of file field.h.
void Io::Field::setValue |
( |
const std::string & |
value | ) |
|
|
inline |
Sets the value.
Definition at line 82 of file field.h.
Returns the tied account.
Definition at line 106 of file field.h.
Returns the type.
Definition at line 90 of file field.h.
const std::string & Io::Field::value |
( |
| ) |
const |
|
inline |
Returns the value.
Definition at line 74 of file field.h.
std::string Io::Field::m_extendedData |
|
protected |
The documentation for this class was generated from the following files: