These are the data types that map directly to C or C++ scalar types. c-treeDB allows the use of c-tree scalar data types such as:
TEXT |
Declared as 8-bit char. This is the equivalent of C type char. |
UTEXT |
Declared as 8-bit unsigned char. This is the equivalent of C type unsigned char. |
COUNT |
Declared as 16-bit integer. This is the equivalent of C type short. |
UCOUNT |
Declared as 16-bit unsigned integer. This is the equivalent of C type unsigned short. |
NINT |
Declared as the system natural integer. This is equivalent of C type integer. |
UINT |
Declared as the system natural unsigned integer. This is the equivalent of C type unsigned integer. |
LONG |
Declared as 32-bit signed integer. This is the equivalent of C type long for 32-bit CPUs. |
ULONG |
Declared as 32-bit unsigned integer. This is the equivalent of C type unsigned long for 32-bit CPUs. |
c-treeDB also exposes the following data types, based on c-tree scalar types. These c-treeDB types also provide a one-to-one relationship with c-treeDB field types:
CTBOOL |
Declared as an integer, this type holds Boolean values using the predefined Boolean constants YES for true and NO for false. |
CTSIGNED |
Declared as a signed long (32-bit signed integer), this type holds any scalar value: 8-bit signed integer (TEXT), 16-bit signed integer (COUNT), integers (NINT), and 32-bit signed integers (LONG). |
CTUNSIGNED |
Declared as an unsigned long (32-bit unsigned integer), this type holds any scalar value: 8-bit unsigned char (UTEXT), 16-bit unsigned integer (UCOUNT), unsigned integers (UINT), and 32-bit unsigned integers (ULONG). |
DOUBLE |
Declared as C type double. |
CTFLOAT |
Declared as C type double. |
All the types in this category can be manipulated using the normal operators defined for the C and C++ language.