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 or double. 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 Attributes | |
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 or double.
Concept template to create the "adtf/plaintype" Stream Meta Type for the generator template stream_meta_type.
Definition at line 30 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:
[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 85 of file streammetatypeplain.h.
References IStreamType::GetConfig(), stream_meta_type_plain::PlainTypeProperty, RETURN_ERROR_DESC, RETURN_IF_FAILED, and RETURN_NOERROR.
|
staticconstexpr |
c-type Property for plaintype Stream Meta Type
Valid values for this "c-type" property are:
BOOL
-> bool UINT8
-> uint8_t INT8
-> int8_t UINT16
-> uint16_t INT16
-> int16_t UINT32
-> uint32_t INT32
-> int32_t UINT64
-> uint64_t INT64
-> int64_t FLOAT32
-> float FLOAT64
-> double BOOL_ARRAY
-> std::array<bool, SIZE_N> or std::vector<bool> UINT8_ARRAY
-> std::array<uint8_t, SIZE_N> or std::vector<uint8_t> INT8_ARRAY
-> std::array<int8_t, SIZE_N> or std::vector<int8_t> UINT16_ARRAY
-> std::array<uint16_t, SIZE_N> or std::vector<uint16_t> INT16_ARRAY
-> std::array<int16_t, SIZE_N> or std::vector<int16_t> UINT32_ARRAY
-> std::array<uint32_t, SIZE_N> or std::vector<uint32_t> INT32_ARRAY
-> std::array<int32_t, SIZE_N> or std::vector<int32_t> UINT64_ARRAY
-> std::array<uint64_t, SIZE_N> or std::vector<uint64_t> INT64_ARRAY
-> std::array<int64_t, SIZE_N> or std::vector<int64_t> FLOAT32_ARRAY
-> std::array<float, SIZE_N> or std::vector<float> FLOAT64_ARRAY
-> std::array<double, SIZE_N> or std::vector<double> Definition at line 60 of file streammetatypeplain.h.
Referenced by stream_meta_type_plain::IsCompatible(), and stream_meta_type_plain::SetProperties().