TpsField class

One field (column) of a table.

Constructors

TpsField({required TpsFieldType type, required int offset, required String name, required int elements, required int length, required int flags, required int index, int? typeCode, int decimalPlaces = 0, int decimalElementLength = 0, int stringLength = 0, String picture = ''})
Creates a field description. Usually built by TpsTableDefinition.parse.

Properties

decimalElementLength → int
Byte length of one DECIMAL or PDECIMAL element.
final
decimalPlaces → int
Digits after the decimal point (DECIMAL and PDECIMAL only).
final
elementLength → int
Byte length of one array element.
no setter
elements → int
Number of array elements (DIM); 1 for plain fields. Some files store 0 for plain fields.
final
flags → int
Raw field flags from the definition.
final
hashCode → int
The hash code for this object.
no setterinherited
index → int
Field number as stored in the definition.
final
label → String
Name without the PRE: table prefix.
no setter
length → int
Total byte length (all elements).
final
name → String
Full Clarion name, e.g. DEP:NUM.
final
offset → int
Byte offset inside the record payload.
final
picture → String
Display picture such as @n9.2; empty when there is none.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stringLength → int
Declared length of a text field.
final
type → TpsFieldType
The decoded field type.
final
typeCode → int
The raw type code; differs from type.code only for TpsFieldType.unknown.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited