|
ReUseX
0.0.5
3D Point Cloud Processing for Building Reuse
|
Type-erased property value holder. More...
#include <materialepas_serialization.hpp>
Public Member Functions | |
| PropertyValue (const void *blob_data, size_t blob_size, traits::PropertyType type) | |
| Construct from raw BLOB data. | |
| PropertyValue (std::string_view str, traits::PropertyType type) | |
| Construct from string (for convenience). | |
| const std::vector< uint8_t > & | blob () const noexcept |
| Get raw BLOB data. | |
| std::string_view | as_string () const noexcept |
| Get BLOB as string view (for String, Integer, Double, etc.). | |
| traits::PropertyType | type () const noexcept |
| Get property type. | |
Type-erased property value holder.
Stores a database property value (BLOB data) along with its type metadata. Used for deserializing MaterialPassport properties from database.
Definition at line 24 of file materialepas_serialization.hpp.
| reusex::core::serialization::PropertyValue::PropertyValue | ( | const void * | blob_data, |
| size_t | blob_size, | ||
| traits::PropertyType | type ) |
| reusex::core::serialization::PropertyValue::PropertyValue | ( | std::string_view | str, |
| traits::PropertyType | type ) |
|
noexcept |
Get BLOB as string view (for String, Integer, Double, etc.).
|
inlinenoexcept |
Get raw BLOB data.
Definition at line 46 of file materialepas_serialization.hpp.
|
inlinenoexcept |
Get property type.
Definition at line 58 of file materialepas_serialization.hpp.
References type().
Referenced by PropertyValue(), PropertyValue(), and type().