OTX Reference
|
|
ResponseState is an enumeration type describing the state of a Response. More...
Public Attributes | |
ResponseStateLiteral | init |
This optional element stands for the hard-coded initialisation value of the identifier at declaration time More... | |
ResponseState is an enumeration type describing the state of a Response.
Order Relation
ResponseState values may occur as operands of comparisons. For this case, the following order relation is defined. Started with the lowest value FAILED = 0: FAILED < INVALID < NEGATIVE < POSITIVE
Literal
The syntax for Literals for complex data types will be used, where the member value is one of the values in the list. @ResponseState:FAILED|INVALID|NEGATIVE|POSITIVE
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 index of the value in the ResponseStates enumeration (smallest index is 0) | Integer val = ToInteger(@ResponseState:FAILED); // Returns 0 |
ToFloat | Undefined (should not be used) | |
ToString | Returns the name of the enumeration value | String s = ToString(@ResponseState:FAILED); // Returns "FAILED" |
ToByteField | Undefined (should not be used) |
Sample
DiagCom.ResponseState ResponseStateVariable = @ResponseState:FAILED;
ResponseStateLiteral OpenTestSystem.Otx.Extensions.DiagCom.DataTypes.ResponseState.init |
This optional element stands for the hard-coded initialisation value of the identifier at declaration time