|
ReUseX
0.0.5
3D Point Cloud Processing for Building Reuse
|
Serializer for converting C++ structs to database values. More...
#include <materialepas_serialization.hpp>
Static Public Member Functions | |
| template<typename T> | |
| static std::map< std::string, PropertyValue > | serialize (const T &obj) |
| Serialize a struct to property value map. | |
Serializer for converting C++ structs to database values.
Inverse of Deserializer - converts struct fields to PropertyValue map that can be stored in the database.
Definition at line 110 of file materialepas_serialization.hpp.
|
static |
Serialize a struct to property value map.
| T | The struct type (must have PropertyTraits specialization) |
| obj | Object to serialize |
Definition at line 194 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.