Extensions.DiagDataBrowsingPlus.McdDataType

From emotive
Revision as of 08:28, 21 September 2018 by Hb (talk | contribs) (→‎Classification)
Jump to navigation Jump to search

Classification

Name McdDataType
Short Description is an enumeration type
Class Simple Data Type
Base Data Type SimpleType
Default Value ASCIISTRING
Provide a Literal No
SpecifiedBy ISO 13209-3
Standard Compliant Yes

Description

McdDataType is an enumeration type describing the ASAM data types used by the MVCI/ODX system.

Its members have the following semantics:

  • <init> : diagDataPlus:McdDataTypeLiteral[0..1]

This optional element stands for the hard-coded initialisation value of the identifier at declaration time.

Core Conversion

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 enumeration (smallest index is 0). Integer i = ToInteger(McdDataTypeVariable); // Returns the index of the value in the enumeration.
ToFloat Undefined (should not be used)
ToString Returns the name of the enumeration value. String s = ToString(McdDataTypeVariable); // Returns the name of the enumeration value.
ToByteField Undefined (should not be used)