OTX Reference
|
|
List of items of the same data type. More...
Public Attributes | |
ListLiteral | init |
Cardinality [0..1] Initialisation of a List declaration More... | |
DataType | itemType |
Cardinality [1] Data type of the List elements More... | |
List of items of the same data type.
An OTX List consists of an arbitrary number of items of the same data type. At the declaration the list's item data type must be defined. The length of a list can be modified by the sequence by deleting or adding items. Insertion of items can be done at every position. In that case, the existing elements move one index further. The inverse happens when items are deleted from a list. Some list modification actions and list access terms are listed as below.
Conversion | Result | Sample |
---|---|---|
ToBoolean | Undefined, do not use it! | |
ToInteger | Undefined, do not use it! | |
ToFloat | Undefined, do not use it! | |
ToString | Returns the list as a Literal | String s = ToString({ true, false, true }); // Returns "{ true, false, true }"
|
ToByteField | Undefined, do not use it! |
ListLiteral OpenTestSystem.Otx.Core.DataTypes.List.init |
Cardinality [0..1]
Initialisation of a List declaration
This optional element stands for the initialisation of the List at declaration time. Initialisation is done by using a recursive mechanism: E.g. A list of lists of integers is initialised by using list literals for each list-type item again, and so on.