Custom data types
DatatypeConfig Property | Description | Items Property | Items Property Description |
|---|---|---|---|
Strings | List of strings | Name | Name of the string |
Arrays | List of arrays | Name | Name of the Array |
Size | Size of the Array | ||
TypeRef | Reference to the data type of items in the array | ||
Vectors | List of dynamic arrays | Name | Name of the vector |
Size | Maximum size of the vector | ||
TypeRef | Reference to the data type of items in the vector | ||
Maps | List of key-value pair elements | Name | Name of map |
KeyTypeRef | Reference to the data type for the key | ||
ValueTypeRef | Reference to the data type for the value | ||
Structs | List of structs | Name | Name of the struct |
SubElements | A list of sub-elements within the struct | ||
SubElemName | Name of the sub-element | ||
SubElemTypeRef | Reference to the data type of the sub-element | ||
Enums | List of enumerations | Name | Name of the enumeration |
Literals | A list of literals (labels and values) within the enumeration | ||
TypeRefs | List of type references | Name | Name of the type reference |
TypeRef | Reference to another data type |
Standard C++ data types
The following (standard) C++ data types can be used directly by the services:
- bool
- float
- double
- int8_t
- int16_t
- int32_t
- int64_t
- uint8_t
- uint16_t
- uint32_t
- uint64_t
Example Configuration
"DatatypeConfig": {
"Enums": [ { "Name": "OverLimitEnum", "Literals": [ { "Label": "NOT_OVER", "Value": 0 }, { "Label": "OVER_LOW", "Value": 1 }, { "Label": "OVER_HIGH", "Value": 2 } ] } ]},