10#include <fmt/format.h>
127struct fmt::formatter<
reusex::core::Material>
128 : fmt::formatter<std::string_view> {
130 -> format_context::iterator {
131 return fmt::formatter<std::string_view>::format(
137struct fmt::formatter<
reusex::core::TriState>
138 : fmt::formatter<std::string_view> {
140 -> format_context::iterator {
141 return fmt::formatter<std::string_view>::format(
147struct fmt::formatter<
reusex::core::EmissionQuantityType>
148 : fmt::formatter<std::string_view> {
150 format_context &ctx)
const -> format_context::iterator {
151 return fmt::formatter<std::string_view>::format(
157struct fmt::formatter<
reusex::core::SubstanceContentMethod>
158 : fmt::formatter<std::string_view> {
160 format_context &ctx)
const -> format_context::iterator {
161 return fmt::formatter<std::string_view>::format(
167struct fmt::formatter<
reusex::core::TransactionType>
168 : fmt::formatter<std::string_view> {
170 -> format_context::iterator {
171 return fmt::formatter<std::string_view>::format(
177struct fmt::formatter<
reusex::core::MaterialPassport>
178 : fmt::formatter<std::string_view> {
180 format_context &ctx)
const -> format_context::iterator {
181 return fmt::format_to(
183 "MaterialPassport(designation='{}', materials={}, version='{}')",
184 mp.description.designation, mp.description.materials.size(),
185 mp.metadata.version_number);
Material
Material types from the Danish material passport standard (v1.0).
auto to_string(Material value) -> std::string_view
Convert Material enum to its string identifier.
EmissionQuantityType
Emission quantity type.
TriState
Tri-state value for Yes/No/Unknown fields.
TransactionType
Transaction log entry type.
@ property
Change to a property value.
SubstanceContentMethod
Method used to determine substance content.
auto format(reusex::core::SubstanceContentMethod value, format_context &ctx) const -> format_context::iterator
Certifications, approvals and declarations for the item.
Condition assessment of the construction item.
Description of the reused construction item.
Physical dimensions and geometry of the construction item.
Environmental and resource potential for sustainable utilization.
Fire-related properties of the construction item.
Historical usage information for the construction item.
A complete material passport for a reused building material.
EnvironmentalPotential environmental
Section 8: Environmental and resource potential.
std::vector< TransactionLogEntry > transaction_log
Transaction log recording all changes.
Dimensions dimensions
Section 5: Dimensions and geometry.
ConstructionItemDescription description
Section 2: Construction item description.
Condition condition
Section 6: Condition assessment.
ProductInformation product
Section 3: Product information.
Pollution pollution
Section 7: Pollution - content and emissions.
MaterialPassportMetadata metadata
Document metadata.
FireProperties fire
Section 9: Fire properties.
Owner owner
Section 1: Owner information.
Certifications certifications
Section 4: Certifications, approvals and declarations.
History history
Section 10: History.
Owner contact information for the material passport.
Pollution, content and emission information.
A single entry in the material passport transaction log.
std::string guid
GUID of the changed document or property.
std::string edited_date
Date of the change (ISO 8601).
std::string new_value
New value after the change.
TransactionType type
Type of transaction (document or property change).
std::string old_value
Previous value before the change.
std::string edited_by
Who made the change.