ADTF
|
Use this Stream Meta Type if your sample data will be any of this type: bool, uint8_t, int8_t, uint16_t, int16_t, uint32_t, int32_t, uint64_t, int64_t, float, double or plain array T[], std::array, std::vector of them. More...
Static Public Member Functions | |
static void | SetProperties (const adtf::ucom::iobject_ptr< adtf::base::IProperties > &pProperties) |
Property setter for plaintype. | |
static tResult | IsCompatible (const adtf::streaming::IStreamType &oTypeToCheck, const adtf::streaming::IStreamType &oTypeExpected) |
Compares the oTypeExpected Stream Type with the oTypeToCheck - see Default Stream Meta Types in ADTF for a summary of implementations. More... | |
Static Public Member Functions inherited from stream_meta_type_plain | |
static void | SetProperties (const adtf::ucom::iobject_ptr< adtf::base::IProperties > &pProperties) |
Property setter for plaintype. | |
static tResult | IsCompatible (const adtf::streaming::IStreamType &oTypeToCheck, const adtf::streaming::IStreamType &oTypeExpected) |
Compares the oTypeExpected Stream Type with the oTypeToCheck - see Default Stream Meta Types in ADTF for a summary of implementations. More... | |
Static Public Attributes | |
static constexpr const char *const | ArraySize = "array_size" |
Array size for the used type. More... | |
static constexpr const char *const | DataEndianess = "data_endianess" |
Identify the endianess of the content. More... | |
Static Public Attributes inherited from stream_meta_type_plain | |
static constexpr const tChar *const | MetaTypeName = "adtf/plaintype" |
StreamMetaTypeName for plaintype. | |
static constexpr const tChar *const | PlainTypeProperty = "c-type" |
c-type Property for plaintype Stream Meta Type More... | |
Use this Stream Meta Type if your sample data will be any of this type: bool, uint8_t, int8_t, uint16_t, int16_t, uint32_t, int32_t, uint64_t, int64_t, float, double or plain array T[], std::array, std::vector of them.
Concept template to create the "adtf/plaintype" Stream Meta Type for the generator template stream_meta_type.
Definition at line 228 of file streammetatypeplain.h.
|
inlinestatic |
Compares the oTypeExpected
Stream Type with the oTypeToCheck
- see Default Stream Meta Types in ADTF for a summary of implementations.
Compatible to all other stream types of any Stream Meta Type, where the following conditions are met:
0
[in] | oTypeToCheck | The incoming type to check. |
[in] | oTypeExpected | The expected type which values are more significant. |
ERR_NOERROR | types are compatible |
Definition at line 276 of file streammetatypeplain.h.
References stream_meta_type_plain::ArraySize, stream_meta_type_plain::DataEndianess, IStreamType::GetConfig(), stream_meta_type_plain::PlainTypeProperty, PLATFORM_LITTLE_ENDIAN_8, RETURN_ERROR_DESC, RETURN_IF_FAILED, and RETURN_NOERROR.
|
staticconstexpr |
Array size for the used type.
Array size for the used type is only relevant for array types:
1
0
(content is dynamic)N
(content is fixed array size) Definition at line 237 of file streammetatypeplain.h.
Referenced by stream_type_plain< T >::stream_type_plain(), stream_meta_type_plain::IsCompatible(), and stream_meta_type_plain::SetProperties().
|
staticconstexpr |
Identify the endianess of the content.
This is relevant for all value types greater than 1 byte.
The endianess of the content is relevant for all value types greater than 1 byte and is only set if current platform endianess is different to PLATFORM_LITTLE_ENDIAN_8.
Definition at line 244 of file streammetatypeplain.h.
Referenced by stream_type_plain< T >::stream_type_plain(), stream_meta_type_plain::IsCompatible(), and stream_meta_type_plain::SetProperties().