There are two different methods for accessing individual field data using ITTIA DB's C++ API.
The first method is to use the typed get_field() and set_field() methods provided by the Table class. These allow direct access to field data using accessor functions.
The second method is to use the Value get_field() and set_field() methods provided by the Table class to access a Value object. Then use the overloaded operators of the Value object to get and set the data in the field with an operator expression.
Both methods are functionally equivalent and can be used interchangeably when reading or writing a data field. The difference is in the syntactical representation of the access code, which depends on personal preference.
Classes | |
| class | db::Field |
| A Field that contains a typed value. More... | |
| class | db::IntegerField |
| A Field that contains an integer value. More... | |
| class | db::StringField |
| A Field that contains a String value. More... | |
| class | db::WStringField |
| A Field that contains a WString value. More... | |
| class | db::DateTimeField |
| A Field that contains a DateTime value. More... | |
| class | db::FloatField |
| A Field that contains a floating point value. More... | |
| class | db::CurrencyField |
| A Field that contains a Currency value. More... | |
| class | db::BlobField |
| A Field that contains a Binary Large OBject (BLOB) value. More... | |