ReUseX  0.0.5
3D Point Cloud Processing for Building Reuse
Loading...
Searching...
No Matches
reusex::core::traits::PropertyDescriptor Struct Reference

Property metadata descriptor. More...

#include <materialepas_traits.hpp>

Collaboration diagram for reusex::core::traits::PropertyDescriptor:

Public Attributes

const char * field_name
 C++ field name (e.g., "contact_email").
const char * leksikon_guid
 Molio leksiCon GUID (e.g., "0Bwj05D$55V931bq9VaBE5").
const char * json_name
 JSON export name matching the Danish standard template (e.g., "materialpassport owner contact email") Empty string means skip in JSON export.
PropertyType type
 Property type enum.
size_t offset
 Offset of field in struct (calculated via offsetof macro).
const PropertyDescriptornested_properties = nullptr
 For nested types (ObjectArray): pointer to nested property array.
size_t nested_count = 0
 For nested types: number of properties in nested array.

Detailed Description

Property metadata descriptor.

Contains all metadata needed to serialize/deserialize a single struct field. GUIDs are stored here (NOT in the struct itself) to maintain clean separation.

Definition at line 19 of file materialepas_traits.hpp.

Member Data Documentation

◆ field_name

const char* reusex::core::traits::PropertyDescriptor::field_name

C++ field name (e.g., "contact_email").

Definition at line 21 of file materialepas_traits.hpp.

◆ json_name

const char* reusex::core::traits::PropertyDescriptor::json_name

JSON export name matching the Danish standard template (e.g., "materialpassport owner contact email") Empty string means skip in JSON export.

Definition at line 29 of file materialepas_traits.hpp.

◆ leksikon_guid

const char* reusex::core::traits::PropertyDescriptor::leksikon_guid

Molio leksiCon GUID (e.g., "0Bwj05D$55V931bq9VaBE5").

Definition at line 24 of file materialepas_traits.hpp.

◆ nested_count

size_t reusex::core::traits::PropertyDescriptor::nested_count = 0

For nested types: number of properties in nested array.

Definition at line 41 of file materialepas_traits.hpp.

◆ nested_properties

const PropertyDescriptor* reusex::core::traits::PropertyDescriptor::nested_properties = nullptr

For nested types (ObjectArray): pointer to nested property array.

Definition at line 38 of file materialepas_traits.hpp.

◆ offset

size_t reusex::core::traits::PropertyDescriptor::offset

Offset of field in struct (calculated via offsetof macro).

Definition at line 35 of file materialepas_traits.hpp.

◆ type

PropertyType reusex::core::traits::PropertyDescriptor::type

Property type enum.

Definition at line 32 of file materialepas_traits.hpp.


The documentation for this struct was generated from the following file: