ITTIA DB SQL C++ API  5.4.0
Fields

Classes

class  Field
 A Field that contains a typed value. More...
class  IntegerField
 A Field that contains an integer value. More...
class  StringField
 A Field that contains a String value. More...
class  WStringField
 A Field that contains a WString value. More...
class  DateTimeField
 A Field that contains a DateTime value. More...
class  FloatField
 A Field that contains a floating point value. More...
class  CurrencyField
 A Field that contains a Currency value. More...
class  BlobField
 A Field that contains a Binary Large OBject (BLOB) value. More...
class  BinaryField
 A Field that contains a Binary string value. More...

Detailed Description

Fields are cells in the database that hold supported Data Types.

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.