WPILibC++ 2024.3.2
|
Database of raw struct dynamic descriptors. More...
#include <wpi/struct/DynamicStruct.h>
Public Member Functions | |
const StructDescriptor * | Add (std::string_view name, std::string_view schema, std::string *err) |
Adds a structure schema to the database. More... | |
const StructDescriptor * | Find (std::string_view name) const |
Finds a structure in the database by name. More... | |
Database of raw struct dynamic descriptors.
const StructDescriptor * wpi::StructDescriptorDatabase::Add | ( | std::string_view | name, |
std::string_view | schema, | ||
std::string * | err | ||
) |
Adds a structure schema to the database.
If the struct references other structs that have not yet been added, it will not be valid until those structs are also added.
[in] | name | structure name |
[in] | schema | structure schema |
[out] | err | detailed error, if nullptr is returned |
const StructDescriptor * wpi::StructDescriptorDatabase::Find | ( | std::string_view | name | ) | const |
Finds a structure in the database by name.
name | structure name |