|
ADTF
|
#include <type_reflection_legacy.h>
Inherits adtf::mediadescription::flash::cStructureType.
Public Member Functions | |
| structure (const std::string &strName) | |
| template<typename MemberType> | |
| structure & | Add (const std::string &strName, MemberType T::*pMemberOffset) |
| template<typename MemberType> | |
| structure & | Add (const std::string &strName, MemberType T::*pMemberOffset, const cEnumerationType &oTypeDefinition) |
| template<typename MemberType> | |
| structure & | Add (const std::string &strName, MemberType T::*pMemberOffset, const cStructureType &oTypeDefinition) |
Public Member Functions inherited from adtf::mediadescription::flash::cStructureType | |
| cStructureType (const std::string &strName, size_t nSize, size_t nAlignment) | |
| cStructureType (const cStructureType &oOther) | |
| std::string | GetName () const override |
| size_t | GetSize () const override |
| size_t | GetAlignment () const override |
| const std::vector< member > & | GetMembers () const |
| std::pair< std::string, std::string > | GetAsStringPair () const |
| operator std::pair< std::string, std::string > () const | |
Additional Inherited Members | |
Protected Member Functions inherited from adtf::mediadescription::flash::cStructureType | |
| void | Add (member &&sNewMember) |
This is used to create a structure type from an existing c++ struct definition.
Also have a look at Example Demo Time Trigger.
|
inline |
Initializes the structure type.
| [in] | strName | The name. |
|
inline |
Adds a new member of arithmetic type (POD).
| [in] | strName | The name of the member. |
| [in] | pMemberOffset | The pointer to the member. |
|
inline |
Adds a new member of an enumeration type.
| [in] | strName | The name of the member. |
| [in] | pMemberOffset | The pointer to the member. |
| [in] | oTypeDefinition | The enumeration type. |
|
inline |
Adds a new member of a structure type.
| [in] | strName | The name of the member. |
| [in] | pMemberOffset | The pointer to the member. |
| [in] | oTypeDefinition | The structure type. |