ADTF
3.14.2
|
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 27 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 72 of file streammetatypeplain.h.
References IStreamType::GetConfig(), stream_meta_type_plain::PlainTypeProperty, and RETURN_IF_FAILED.
|
staticconstexpr |
c-type Property for plaintype Stream Meta Type
Valid values for this "c-type" property are:
BOOL
-> bool -> please use stream_type_plain<bool> to create the typeUINT8
-> uint8_t -> please use stream_type_plain<uint8_t> to create the typeINT8
-> int8_t -> please use stream_type_plain<int8_t> to create the typeUINT16
-> uint16_t -> please use stream_type_plain<uint16_t> to create the typeINT16
-> int16_t -> please use stream_type_plain<int16_t> to create the typeUINT32
-> uint32_t -> please use stream_type_plain<uint32_t> to create the typeINT32
-> int32_t -> please use stream_type_plain<int32_t> to create the typeUINT64
-> uint64_t -> please use stream_type_plain<uint64_t> to create the typeINT64
-> int64_t -> please use stream_type_plain<int64_t> to create the typeFLOAT32
-> float -> please use stream_type_plain<float> to create the typeFLOAT64
-> double -> please use stream_type_plain<double> to create the type Definition at line 47 of file streammetatypeplain.h.
Referenced by stream_meta_type_plain::IsCompatible(), and stream_meta_type_plain::SetProperties().