Transformer SDK For C  8.0.2.290852-a608fcd3
Configuration: Fields

A set of fields makes up a data object or an update to an object. Standard record objects are made up of fields, whereas other types of data may store data in a different way.


add-field

Type: Function
Default: None

Defines a field number/name mapping.

Format:

add-field FieldName FieldNumber FieldFlags [FieldFlagsData]
Name Type Default Field Format
FieldName string [no default] The name of the field
FieldNumber integer [no default] The number of the field. This must be in the range -65535 to 65535.
FieldFlags integer 0 The flags passed by the field.
FieldFlagsData integer -1 Additional data (specifies the number of decimal places the field uses when FieldFlags is set to 256 or the type of field when FieldFlags is set to 512).
FieldFormat integer [none] Defines the formatting of values added to this field.
Note
There is no need to add fields unless the application is using text-based field names.

The table below shows the acceptable values of FieldFlags and the corresponding meanings of FieldFlagsData and FieldFormat. FieldFlags can be represent by either a text string or an integer.

These strings may be ORed together using the "|" operator to represent multiple flags: for example "type3|dp" means a field is type3 and uses the decimal point precision mode.

FieldFlags (text) FieldFlags (integer) Description FieldFlagsData FieldFormat
type2
index
1 Identifies the field as a Type 2 index Not Used Not Used
type2 2 Identifies the field as a Type 2 field Not Used Not Used
type3 4 Identifies the field as a Type 3 field Not Used Not Used
dp
decimal_precision
256 Decimal point precision mode Number of decimal places Not Used
fmt
format
512 Format mode Field type Format string (eg "%%.12g")
fmt_id
format_id/td>
1024 Format set mode Not Used Name of format set as specified using add-field-format

The table below lists the field types that can be used in FieldsFlagsData when in Format mode (FieldFlags = 512)

Type Description
1 32 bit float
2 64 bit float
3 8 bit integer
4 16 bit integer
5 32 bit integer
6 64 bit integer
7 8 bit unsigned integer
8 16 bit unsigned integer
9 32 bit unsigned integer
10 64 bit unsigned integer

fields-float32-fmt

Type: String
Default: %.8g

Format for float32 types


fields-float64-fmt

Type: String
Default: %.12g

Format for float64 types


fields-int8-fmt

Type: String
Default: %hhd

Format for int8 types


fields-int16-fmt

Type: String
Default: %hd

Format for int16 types


fields-int32-fmt

Type: String
Default: %d

Format for int32 types


fields-int64-fmt

Type: String
Default: %lld

Format for int64 types


fields-uint8-fmt

Type: String
Default: %hhu

Format for uint8 types


fields-uint16-fmt

Type: String
Default: %hu

Format for uint16 types


fields-uint32-fmt

Type: String
Default: %u

Format for uint32 types


fields-uint64-fmt

Type: String
Default: %llu

Format for uint64 types


add-field-format

Configuration group add-field-format

This option defines sets of format strings which can be used by the add-field option.

Format:

add-format
name [value]
    float32-fmt [value]
    float64-fmt [value]
    int8-fmt    [value]
    int16-fmt   [value]
    int32-fmt   [value]
    int64-fmt   [value]
    uint8-fmt   [value]
    uint16-fmt  [value]
    uint32-fmt  [value]
    uint64-fmt  [value]
end format

name

Type: String
Default: None

Name of this format set


float32-fmt

Type: String
Default: None

Format string for 32 bit floats


float64-fmt

Type: String
Default: None

Format string for 64 bit floats


int8-fmt

Type: String
Default: None

Format string for 8 bit integers


int16-fmt

Type: String
Default: None

Format string for 16 bit integers


int32-fmt

Type: String
Default: None

Format string for 32 bit integers


int64-fmt

Type: String
Default: None

Format string for 64 bit integers


uint8-fmt

Type: String
Default: None

Format string for 8 bit unsigned integers


uint16-fmt

Type: String
Default: None

Format string for 16 bit unsigned integers


uint32-fmt

Type: String
Default: None

Format string for 32 bit unsigned integers


uint64-fmt

Type: String
Default: None

Format string for 64 bit unsigned integers



numeric-locale

Type: String
Default: None

Locale for numeric field formatting



Generated on Wed Jul 31 2024 18:00:14 for Transformer SDK For C