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

Namespaces

namespace  detail

Classes

struct  PropertyDescriptor
 Property metadata descriptor. More...
struct  PropertyTraits
 Trait interface for property metadata. More...
struct  PropertyTraits< Owner >
struct  PropertyTraits< ConstructionItemDescription >
struct  PropertyTraits< ProductInformation >
struct  PropertyTraits< Certifications >
struct  PropertyTraits< Dimensions >
struct  PropertyTraits< Condition >
struct  PropertyTraits< DangerousSubstance >
struct  PropertyTraits< Emission >
struct  PropertyTraits< Pollution >
struct  PropertyTraits< EnvironmentalPotential >
struct  PropertyTraits< FireProperties >
struct  PropertyTraits< History >
struct  Owner
 Owner contact information for the material passport. More...
struct  ConstructionItemDescription
 Description of the reused construction item. More...
struct  ProductInformation
 Original product information. More...
struct  Certifications
 Certifications, approvals and declarations for the item. More...
struct  Dimensions
 Physical dimensions and geometry of the construction item. More...
struct  Condition
 Condition assessment of the construction item. More...
struct  DangerousSubstance
 Dangerous substance analysis record. More...
struct  Emission
 Emission measurement record. More...
struct  Pollution
 Pollution, content and emission information. More...
struct  EnvironmentalPotential
 Environmental and resource potential for sustainable utilization. More...
struct  FireProperties
 Fire-related properties of the construction item. More...
struct  History
 Historical usage information for the construction item. More...

Enumerations

enum class  PropertyType {
  String , Integer , Double , Boolean ,
  TriState , StringArray , EnumValue , EnumArray ,
  ObjectArray
}
 Property type enumeration for MaterialPassport serialization. More...

Functions

constexpr std::string_view to_data_type_string (PropertyType type) noexcept
 Convert PropertyType to database data_type string.
std::optional< PropertyTypeproperty_type_from_string (std::string_view str) noexcept
 Convert database data_type string to PropertyType.

Enumeration Type Documentation

◆ PropertyType

Property type enumeration for MaterialPassport serialization.

Maps C++ types to database storage types for the MaterialPassport trait system.

Enumerator
String 

std::string

Integer 

std::optional<int>

Double 

std::optional<double>

Boolean 

std::optional<bool>

TriState 

TriState enum (yes/no/unknown).

StringArray 

std::vector<std::string>

EnumValue 

Enum values (Material, etc.).

EnumArray 

std::vector<EnumType>

ObjectArray 

std::vector<StructType> (nested objects)

Definition at line 17 of file materialepas_property_types.hpp.

Function Documentation

◆ property_type_from_string()

std::optional< PropertyType > reusex::core::traits::property_type_from_string ( std::string_view str)
inlinenoexcept

Convert database data_type string to PropertyType.

Parameters
strDatabase data_type string
Returns
PropertyType if valid, nullopt otherwise

Definition at line 83 of file materialepas_property_types.hpp.

References Boolean, Double, EnumArray, EnumValue, Integer, ObjectArray, String, StringArray, and TriState.

◆ to_data_type_string()

std::string_view reusex::core::traits::to_data_type_string ( PropertyType type)
constexprnoexcept

Convert PropertyType to database data_type string.

Parameters
typePropertyType enum value
Returns
String representation for database storage

Definition at line 52 of file materialepas_property_types.hpp.

References Boolean, Double, EnumArray, EnumValue, Integer, ObjectArray, String, StringArray, and TriState.