ReUseX  0.0.5
3D Point Cloud Processing for Building Reuse
Loading...
Searching...
No Matches
reusex::core::serialization::Serializer Class Reference

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, PropertyValueserialize (const T &obj)
 Serialize a struct to property value map.

Detailed Description

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.

Member Function Documentation

◆ serialize()

template<typename T>
std::map< std::string, PropertyValue > reusex::core::serialization::Serializer::serialize ( const T & obj)
static

Serialize a struct to property value map.

Template Parameters
TThe struct type (must have PropertyTraits specialization)
Parameters
objObject to serialize
Returns
Map of leksikon_guid → PropertyValue for database storage

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.


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