|
ReUseX
0.0.5
3D Point Cloud Processing for Building Reuse
|
Functions | |
| template<typename T> | |
| constexpr PropertyDescriptor | make_property (const char *field_name, const char *leksikon_guid, const char *json_name, PropertyType type, size_t field_offset) noexcept |
| Create a simple property descriptor (non-nested). | |
| template<typename T, typename NestedT> | |
| constexpr PropertyDescriptor | make_nested_property (const char *field_name, const char *json_name, size_t field_offset) noexcept |
| Create a nested object array property descriptor. | |
|
constexprnoexcept |
Create a nested object array property descriptor.
Helper function for fields like std::vector<DangerousSubstance>. Links to nested type's PropertyTraits for recursive serialization.
| T | The parent struct type |
| NestedT | The nested struct type (must have PropertyTraits specialization) |
| field_name | C++ field name |
| json_name | JSON export name matching Danish standard template |
| field_offset | Offset of field in struct (use offsetof) |
Definition at line 126 of file materialepas_traits.hpp.
References make_nested_property(), reusex::core::traits::ObjectArray, reusex::core::traits::PropertyTraits< T >::properties(), and reusex::core::traits::PropertyTraits< T >::property_count().
Referenced by make_nested_property().
|
constexprnoexcept |
Create a simple property descriptor (non-nested).
Helper function to construct PropertyDescriptor for simple fields. Provides type-safe, constexpr property creation without macros.
| T | The struct type containing the field |
| field_name | C++ field name (e.g., "contact_email") |
| leksikon_guid | Molio leksiCon GUID string |
| json_name | JSON export name matching Danish standard template |
| type | PropertyType enum value |
| field_offset | Offset of field in struct (use offsetof) |
Definition at line 95 of file materialepas_traits.hpp.
References make_property().
Referenced by make_property().