OTX Reference
|
|
The ASAM data types More...
Public Attributes | |
McdDataTypeLiteral | init |
Cardinality [0..1] This optional element stands for the hard-coded initialisation value of the identifier at declaration time. More... | |
The ASAM data types
McdDataType is an enumeration type describing the ASAM data types used by the MVCI/ODX system.
Literal
The syntax for Literals for complex data types will be used, where the member value is one of the values in the list.
Conversion terms
The following table shows the rules for conversion to another data type:
Conversion | Result | Sample |
---|---|---|
ToBoolean | Undefined (should not be used) | |
ToInteger | Returns the value in the enumeration | Integer i = ToInteger(@McdDataType:ASCIISTRING); // Returns 1. |
ToFloat | Undefined (should not be used) | |
ToString | Returns the name of the enumeration value | String s = ToString(@McdDataType:ASCIISTRING); // Returns "eA_ASCIISTRING". |
ToByteField | Undefined (should not be used) |
Sample
McdDataTypeLiteral OpenTestSystem.Otx.Extensions.DiagDataBrowsingPlus.DataTypes.McdDataType.init |
Cardinality [0..1]
This optional element stands for the hard-coded initialisation value of the identifier at declaration time.