|
ReUseX
0.0.5
3D Point Cloud Processing for Building Reuse
|
Deserializer for converting database values to C++ structs. More...
#include <materialepas_serialization.hpp>
Static Public Member Functions | |
| template<typename T> | |
| static void | deserialize (T &obj, const std::map< std::string, PropertyValue > &values) |
| Deserialize a struct from property value map. | |
Deserializer for converting database values to C++ structs.
Uses PropertyTraits metadata to map database property values (keyed by leksikon_guid) to struct fields. Handles type conversions, JSON parsing for arrays, and nested object deserialization.
Definition at line 72 of file materialepas_serialization.hpp.
|
static |
Deserialize a struct from property value map.
| T | The struct type (must have PropertyTraits specialization) |
| obj | Output object to populate |
| values | Map of leksikon_guid → PropertyValue |
Missing properties will leave fields with default values. Type mismatches will throw std::runtime_error.
Definition at line 141 of file materialepas_serialization.hpp.
References reusex::core::traits::Boolean, reusex::core::traits::Double, reusex::core::traits::EnumArray, reusex::core::traits::EnumValue, reusex::core::traits::Integer, reusex::core::traits::ObjectArray, reusex::core::traits::String, reusex::core::traits::StringArray, and reusex::core::traits::TriState.