SIXP
SIXP API
 All Classes Functions Variables Enumerations Enumerator Pages
six::sixp::client::field_info Class Reference

Field definition information. More...

Public Types

enum  field_flags { hidden =0x01, key =0x02 }
 Fields flags that indicate the fields properties. Can be combined by oring. More...
 
enum  field_type {
  tbool =0, tuint16 =2, tuint32 =3, tdouble =6,
  tstring =7, ttimestamp =8, tlink =10, ttime =11,
  tdate =12
}
 Field types. More...
 

Public Member Functions

 field_info (const field_info &fi)
 

Public Attributes

sixp_int32_t _internal_type
 Used internally - use type instead.
 
field_flags flags
 Field flags.
 
sixp_uint32_t key_num
 The field's position in the table key, starting on 0.
 
sixp_uint64_t length
 Field length if string field.
 
char name [40]
 Field name.
 
sixp_uint32_t ordinal
 Ordinal number, starting on 0.
 
field_type type
 Field type.
 

Detailed Description

Field definition information.

Member Enumeration Documentation

Fields flags that indicate the fields properties. Can be combined by oring.

Enumerator
hidden 

Hidden field. Should not be displayed.

key 

The field is part of the table key.

Field types.

Enumerator
tbool 

Boolean.

tuint16 

16 bit unsigned integer.

tuint32 

32 bit unsigned integer.

tdouble 

64 bit floatinbg point.

tstring 

String, utf-8.

ttimestamp 

time_t containing both date and time.

tlink 

Sting value containing a link to another table.

ttime 

time_t with only the time relevant. Date part will be set to today.

tdate 

time_t with only the date part relevant. Time will be set to 00:00:00.