Builds a C-struct descriptor dynamically.
More...
#include <structs.hpp>
|
| template<class member_type> |
| void | addMember (member_type cpp_struct_type::*memberPtr, char const *name, char const *description=NULL, enumint_t flags=0) |
| | Adds a member item to the internal item-array storage.
|
| void | updateDescriptor () |
| | Updates the public struct desriptor with current state of the internal item-array storage.
|
|
| template<class member_type> |
| gate_struct_item_t | buildMemberItem (member_type cpp_struct_type::*memberPtr, char const *name, char const *description=NULL, enumint_t flags=0) |
| | Builds a member item record based on a c++ member pointer and meta informations.
|
| void | setMemberItems (gate_struct_item_t const *items, gate_size_t items_count) |
| | Sets the descriptor's items and count fields.
|
template<class cpp_struct_type>
struct gate::DynStructDescriptorBase< cpp_struct_type >
Builds a C-struct descriptor dynamically.
- Template Parameters
-
◆ addMember()
template<class cpp_struct_type>
template<class member_type>
| void addMember |
( |
member_type cpp_struct_type::* | memberPtr, |
|
|
char const * | name, |
|
|
char const * | description = NULL, |
|
|
enumint_t | flags = 0 ) |
|
inlineprotected |
Adds a member item to the internal item-array storage.
- Template Parameters
-
| member_type | Type of member to be referenced |
- Parameters
-
| memberPtr | Pointer to member in covered struct |
| name | static string name of member |
| description | optional string description of member |
| flags | optional member flags |
◆ updateDescriptor()
template<class cpp_struct_type>
| void updateDescriptor |
( |
| ) |
|
|
inlineprotected |
Updates the public struct desriptor with current state of the internal item-array storage.
Needs to be called after the last member was added
The documentation for this struct was generated from the following file: