#include <ittia/dbxx/dbxx_field_ref.h>

A Field object represents a specific field in a row of a table. It can be used to access the value of the field and, if the table is in edit mode, modify that value. A Field can be obtained using Cursor::operator[].
The value of the field can be accessed by casting the field as a Value, or by calling as_int, as_float, as_currency, as_string, as_wstring, or as_datetime.
The value can be modified by assigning a Value to the field with operator=.
The field can only be used if is_valid returns true.
Public Member Functions | |
| Field (const Field &) | |
| Field (RowAccessor &, const NameChar *field_name) | |
| Field (RowAccessor &, int _field) | |
| int | attach (const Field &) |
| int | attach (RowAccessor &, const NameChar *) |
| int | attach (RowAccessor &, int fieldno) |
| operator Value () | |
| operator const Value () const | |
| const Field & | operator= (const Value &) |
| const Field & | operator= (const Field &) |
| bool | is_valid () const |
| bool | is_null () const |
| void | set_null () |
| IntegerField | as_int () const |
| FloatField | as_float () const |
| CurrencyField | as_currency () const |
| StringField | as_string () const |
| WStringField | as_wstring () const |
| DateTimeField | as_datetime () const |
| BlobField | as_blob () const |
Protected Member Functions | |
| const Value | as_value () const |
| void | set_field (const Value &new_value) |
| int | fieldno () const |
| virtual db_uint | get_type_mask () const |
Static Protected Member Functions | |
| static bool | valid_type (RowAccessor *, int field, db_uint type_mask) |
Protected Attributes | |
| int | field |
| RowAccessor * | row |