ADTF
Loading...
Searching...
No Matches
adtf::mediadescription::stream_type_default_array< T > Class Template Reference

Generator template to create an instance of the stream_meta_type_default. More...

#include <stream_type_default.h>

Detailed Description

template<typename T = void>
class adtf::mediadescription::stream_type_default_array< T >

Generator template to create an instance of the stream_meta_type_default.

Template Parameters
Tarray of structured data. std::is_trivially_copyable<T>::value must evaluate to true!
Remarks
This class extends the given ddl description by adding a struct type for the given array. Using a type name of "tMyType" by the following:
auto oDescriptionForMyType = structure<tMyType>("tMyType")
.Add("m_nValue1", &tMyType::m_nValue1)
.Add("m_fValue2", &tMyType::m_fValue2)
.Add("m_bArray", &tMyType::m_bArray);
stream_type_default_array<> oStreamType(oDescriptionForMyType, 4);
Definition type_reflection.h:124
structure & Add(const std::string &strName, MemberType T::*pMemberOffset)
Definition type_reflection.h:167
Generator template to create an instance of the stream_meta_type_default.
Definition stream_type_default.h:342
will extend the properties for the stream type:
  • md_struct = "array_of_tMyType_4"
  • md_definitions is extended by following ddl type:
    <struct name="array_of_tMyType_4" alignment="8" version="1">
    <element name="array" type="tMyType" arraysize="4">
    <deserialized alignment="8"/>
    <serialized bytepos="0" byteorder="LE"/>
    </element>
    </struct>

The documentation for this class was generated from the following file: