Inheritance diagram for code::DataField:
The descendant 'DataCell' represents a field in a DataRow. The descendant 'DataColumn' represents a field in a DataTable.
Each descendant stores data internally as one or more string values. Numeric accessors and mutators perform the necessary conversions.
Public Member Functions | |
DataField | clone () const |
Return a completely separate copy of this field. | |
DataField () | |
Build an uninitialized object. | |
DataField (const std::string &name, const std::string &unit) | |
Allow for the initialization of all four members. | |
const std::string & | name () const |
Return field ID. | |
const std::string & | unit () const |
Return default unit specifier. | |
bool | validUnit (const std::string &unit) const |
Return true only if the internal unit can be converted to the specified unit. | |
Static Public Attributes | |
static const size_t | bufferSize = 4096 |
Size of character buffer used internally for sprintf(). | |
Protected Attributes | |
std::string | myName |
Field name. | |
std::string | myUnit |
Default unit specifier. | |
Friends | |
bool | operator< (const DataField &a, const DataField &b) |
Allows you to sort DataField objects by their name. |
code::DataField::DataField | ( | ) | [inline] |
Build an uninitialized object.
code::DataField::DataField | ( | const std::string & | name, | |
const std::string & | unit | |||
) |
Allow for the initialization of all four members.
DataField code::DataField::clone | ( | ) | const [inline] |
const std::string& code::DataField::name | ( | ) | const [inline] |
Return field ID.
const std::string& code::DataField::unit | ( | ) | const [inline] |
Return default unit specifier.
bool code::DataField::validUnit | ( | const std::string & | unit | ) | const |
Return true only if the internal unit can be converted to the specified unit.
Allows you to sort DataField objects by their name.
const size_t code::DataField::bufferSize = 4096 [static] |
Size of character buffer used internally for sprintf().
std::string code::DataField::myName [protected] |
Field name.
std::string code::DataField::myUnit [protected] |
Default unit specifier.