ADTF
|
This is used to create a structure type from an existing c++ struct definition. More...
Public Member Functions | |
structure (const std::string &strName) | |
Initializes the structure type. More... | |
template<typename MemberType > | |
structure & | Add (const std::string &strName, MemberType T::*pMemberOffset) |
Adds a new member of arithmetic type (POD). More... | |
template<typename MemberType > | |
structure & | Add (const std::string &strName, MemberType T::*pMemberOffset, const cEnumerationType &oTypeDefinition) |
Adds a new member of an enumeration type. More... | |
template<typename MemberType > | |
structure & | Add (const std::string &strName, MemberType T::*pMemberOffset, const cStructureType &oTypeDefinition) |
Adds a new member of a structure type. More... | |
Public Member Functions inherited from cStructureType | |
cStructureType (const std::string &strName, size_t nSize, size_t nAlignment) | |
Initializes the structure type. More... | |
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 |
Legacy conversion to a pair of (first) md_struct and (second)md_description. More... | |
operator std::pair< std::string, std::string > () const | |
Legacy conversion operator to a pair of (first) md_struct and (second)md_description. More... | |
Private Attributes | |
size_t | m_nCurrentSerializedOffset = 0 |
Additional Inherited Members | |
Protected Member Functions inherited from cStructureType | |
void | Add (member &&sNewMember) |
Adds a new member to the structure. More... | |
This is used to create a structure type from an existing c++ struct definition.
Also have a look at Demo Time Trigger Plugin.
Definition at line 365 of file type_reflection_legacy.h.
|
inline |
Initializes the structure type.
[in] | strName | The name. |
Definition at line 375 of file type_reflection_legacy.h.
|
inline |
Adds a new member of arithmetic type (POD).
[in] | strName | The name of the member. |
[in] | pMemberOffset | The pointer to the member. |
Definition at line 387 of file type_reflection_legacy.h.
References cStructureType::Add().
Referenced by structure< void >::Add().
|
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. |
Definition at line 409 of file type_reflection_legacy.h.
References cStructureType::Add().
|
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. |
Definition at line 430 of file type_reflection_legacy.h.
References cStructureType::Add().