ADTF
Loading...
Searching...
No Matches
streammetatypeplain.h File Reference
#include "streamtype.h"
#include <adtfucom3/adtf_ucom3.h>
#include <adtfbase/adtf_base.h>
#include <adtf_base_deprecated.h>
#include <type_traits>
#include <vector>
#include <array>
Include dependency graph for streammetatypeplain.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  adtf::streaming::ant::stream_meta_type_plain
 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...
 
class  adtf::streaming::ant::stream_type_plain< T >
 Generator template to create an instance of a ant::IStreamType class for ant::stream_meta_type_plain ("adtf/plaintype"). More...
 
struct  adtf::streaming::penguin::stream_meta_type_plain
 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...
 
class  adtf::streaming::penguin::stream_type_plain< T >
 Generator template to create an instance of a ant::IStreamType class for penguin::stream_meta_type_plain ("adtf/plaintype"). More...
 
class  adtf::streaming::penguin::stream_type_plain< T< ValueType, szArraySize > >
 Specialization for stream_type_plain<std::array<VAL_T, N>> More...
 
class  adtf::streaming::penguin::stream_type_plain< ValueType[szArraySize]>
 Specialization for stream_type_plain<ValueType[N]>> (i.e. uint8_t[2345] or int32_t[10]) More...
 
struct  adtf::streaming::stream_meta_type_plain
 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...
 
class  adtf::streaming::stream_type_plain< T >
 Generator template to create an instance of a ant::IStreamType class for penguin::stream_meta_type_plain ("adtf/plaintype"). More...
 

Namespaces

namespace  adtf
 Namespace for all functionality provided by ADTF and its SDKs.
 
namespace  adtf::streaming
 Namespace for the ADTF Streaming SDK.
 
namespace  adtf::streaming::ant
 Namespace for all functionality of the ADTF Streaming SDK provided since v3.0.
 
namespace  adtf::streaming::lucky
 Namespace for all functionality of the ADTF Streaming SDK provided since v3.11.
 
namespace  adtf::streaming::penguin
 Namespace for all functionality of the ADTF Streaming SDK provided since v3.15.
 

Macros

#define ADTF_DEFINE_STREAM_TYPE_PLAIN_FOR(_thetype_, _propval_)
 

Functions

 adtf::streaming::ant::ADTF_DEFINE_STREAM_TYPE_PLAIN_FOR (tBool, "BOOL")
 
 adtf::streaming::ant::ADTF_DEFINE_STREAM_TYPE_PLAIN_FOR (tInt8, "INT8")
 
 adtf::streaming::ant::ADTF_DEFINE_STREAM_TYPE_PLAIN_FOR (tUInt8, "UINT8")
 
 adtf::streaming::ant::ADTF_DEFINE_STREAM_TYPE_PLAIN_FOR (tInt16, "INT16")
 
 adtf::streaming::ant::ADTF_DEFINE_STREAM_TYPE_PLAIN_FOR (tUInt16, "UINT16")
 
 adtf::streaming::ant::ADTF_DEFINE_STREAM_TYPE_PLAIN_FOR (tInt32, "INT32")
 
 adtf::streaming::ant::ADTF_DEFINE_STREAM_TYPE_PLAIN_FOR (tUInt32, "UINT32")
 
 adtf::streaming::ant::ADTF_DEFINE_STREAM_TYPE_PLAIN_FOR (tInt64, "INT64")
 
 adtf::streaming::ant::ADTF_DEFINE_STREAM_TYPE_PLAIN_FOR (tUInt64, "UINT64")
 
 adtf::streaming::ant::ADTF_DEFINE_STREAM_TYPE_PLAIN_FOR (tFloat32, "FLOAT32")
 
 adtf::streaming::ant::ADTF_DEFINE_STREAM_TYPE_PLAIN_FOR (tFloat64, "FLOAT64")
 
template<typename T>
ucom::ant::object_ptr< ant::IStreamTypeadtf::streaming::lucky::create_adtf_plain_stream_type ()
 
template<typename T>
ucom::ant::object_ptr< ant::IStreamTypeadtf::streaming::penguin::create_adtf_plain_stream_type ()
 
template<typename T>
ucom::ant::object_ptr< ant::IStreamTypeadtf::streaming::create_adtf_plain_stream_type ()
 brings latest penguin::create_adtf_plain_stream_type to the users scope
 

Detailed Description

Copyright © Audi Electronics Venture GmbH. All rights reserved

Macro Definition Documentation

◆ ADTF_DEFINE_STREAM_TYPE_PLAIN_FOR

#define ADTF_DEFINE_STREAM_TYPE_PLAIN_FOR ( _thetype_,
_propval_ )
Value:
template <> \
class stream_type_plain<_thetype_> : public cStreamType \
{ \
public: \
static constexpr const char *const PlainTypeValue = _propval_; \
static constexpr const char* const PlainTypeName = #_thetype_; \
stream_type_plain() : cStreamType(stream_meta_type_plain()) \
{ \
THROW_IF_FAILED(GetConfig(pProperties)); \
pProperties->SetProperty(adtf::base::property<adtf_util::cString>(stream_meta_type_plain::PlainTypeProperty, PlainTypeValue)); \
pProperties->SetProperty(adtf::base::property<adtf_util::cString>("md_definitions",\
adtf_util::cString::Format(R"(<struct name=")" _propval_ R"(" alignment="1" version="1">)" \
R"(<element name="value" arraysize="1" type=")" #_thetype_ R"(">)" \
R"(<deserialized alignment="1"/>)" \
R"(<serialized bytepos="0" byteorder="%s"/>)" \
"</element>" \
"</struct>", \
PLATFORM_BYTEORDER == PLATFORM_BIG_ENDIAN_8 ? "BE" : "LE"))); \
pProperties->SetProperty(adtf::base::property<adtf_util::cString>("md_struct", _propval_));\
} \
}
Definition properties_v2.h:283
Generator template to create an instance of a ant::IStreamType class for penguin::stream_meta_type_pl...
Definition streammetatypeplain.h:315
Definition object_ptr.h:384
Use this Stream Meta Type if your sample data will be any of this type: bool, uint8_t,...
Definition streammetatypeplain.h:220

Macro to create a class for the plain StreamType instance.

Parameters
_thetype_The type you define teh property for.
_propval_The property value set to the stream_meta_type_plain::PlainTypeProperty.