9 #ifdef USE_ADTF_MEDIA_DESCRIPTION_LEGACY
10 #ifndef NO_ADTF_MEDIA_DESCRIPTION_LEGACY
21 namespace mediadescription
48 template<
typename Type>
123 template<
typename T =
void>
126 static_assert(std::is_trivially_copyable<T>::value,
127 "You can only use structs without pointers or complex members.");
139 structure(
const std::string& strName, uint32_t ui32StructVersion = 1):
169 template<
typename MemberType>
171 MemberType T::*pMemberOffset)
184 template<
typename MemberType>
198 template<
typename MemberType>
259 structure(
const std::string& strName,
size_t nAlignment);
285 size_t nArrayCount = 1,
286 size_t nAlignment = 0,
287 int32_t nBytePosition = -1,
288 bool bLittleEndian =
true);
299 template<
typename ArithmeticType>
301 size_t nArrayCount = 1,
302 size_t nAlignment = 0,
303 int32_t nBytePosition = -1,
304 bool bLittleEndian =
true)
326 size_t nArrayCount = 1,
327 size_t nAlignment = 0,
328 int32_t nBytePosition = -1,
329 bool bLittleEndian =
true);
343 size_t nArrayCount = 1,
344 size_t nAlignment = 0,
345 int32_t nBytePosition = -1,
346 bool bLittleEndian =
true);
364 using osborn::enumeration;
365 using osborn::structure;
This is used to create the DD representation of an enumeration type.
DDEnumGenerator & addElement(const std::string &name, Type value)
Adds a element for the enumeration with name and value.
Utility class for a complete valid data definition of one EnumType and its dependencies.
size_t getAlignment() const
returns the alignment of the underlying datatype.
size_t getTypeByteSize() const
returns the size of the underlying datatype.
Creating a valid Structure Data Definition by a existing type and its member types.
std::string getStructName() const
Gets the Struct Name.
const dd::DataDefinition & getDD() const
returns a valid DDL.
DDStructureGenerator & addElement(const std::string &name, MemberType T::*member_offset)
Adds a new member of data type (POD) by member reference pointer.
const dd::StructType & getStructType() const
Get the Struct Type object.
const DDStructure & getStructure() const
Get the current valid DDStructure object.
Utility class for a complete valid data definition of one StructType and its dependencies.
Generator template to create DataType for the plain c-types.
StructTypeAccess getStructTypeAccess(const std::string &type_name) const
Get the Struct Type Access, where to enter the type and calculated element position information.
size_t getStaticStructSize() const
Get the known Static Struct Size of this instance.
observable DataDefinition object class to describe (POD) DataType.
OptionalSize getAlignment() const
Get the Alignment (if set)
Copyright © Audi Electronics Venture GmbH.
Namespace for entire ADTF SDK.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.