Raw struct dynamic struct descriptor.
More...
#include <wpi/struct/DynamicStruct.h>
Raw struct dynamic struct descriptor.
◆ StructDescriptor()
wpi::StructDescriptor::StructDescriptor |
( |
std::string_view | name, |
|
|
const private_init & | ) |
|
inline |
◆ FindFieldByName()
Gets a field descriptor by name.
Note the field cannot be accessed until the struct is valid.
- Parameters
-
- Returns
- field descriptor, or nullptr if not found
◆ GetFields()
Gets all field descriptors.
Note fields cannot be accessed until the struct is valid.
- Returns
- field descriptors
◆ GetName()
const std::string & wpi::StructDescriptor::GetName |
( |
| ) |
const |
|
inline |
Gets the struct name.
- Returns
- name
◆ GetSchema()
const std::string & wpi::StructDescriptor::GetSchema |
( |
| ) |
const |
|
inline |
Gets the struct schema.
- Returns
- schema
◆ GetSize()
size_t wpi::StructDescriptor::GetSize |
( |
| ) |
const |
|
inline |
Returns the struct size, in bytes.
Not valid unless IsValid() is true.
- Returns
- size in bytes
◆ IsValid()
bool wpi::StructDescriptor::IsValid |
( |
| ) |
const |
|
inline |
Returns whether the struct is valid (e.g.
the struct is fully defined and field offsets computed).
- Returns
- true if valid
◆ StructDescriptorDatabase
The documentation for this class was generated from the following file: