10#include <fmt/format.h>
127struct fmt::formatter<
reusex::core::Material> : fmt::formatter<std::string_view> {
129 -> format_context::iterator {
130 return fmt::formatter<std::string_view>::format(
136struct fmt::formatter<
reusex::core::TriState>
137 : fmt::formatter<std::string_view> {
139 -> format_context::iterator {
140 return fmt::formatter<std::string_view>::format(
146struct fmt::formatter<
reusex::core::EmissionQuantityType>
147 : fmt::formatter<std::string_view> {
149 format_context &ctx)
const -> format_context::iterator {
150 return fmt::formatter<std::string_view>::format(
156struct fmt::formatter<
reusex::core::SubstanceContentMethod>
157 : fmt::formatter<std::string_view> {
159 format_context &ctx)
const -> format_context::iterator {
160 return fmt::formatter<std::string_view>::format(
166struct fmt::formatter<
reusex::core::TransactionType>
167 : fmt::formatter<std::string_view> {
169 -> format_context::iterator {
170 return fmt::formatter<std::string_view>::format(
176struct fmt::formatter<
reusex::core::MaterialPassport>
177 : fmt::formatter<std::string_view> {
179 format_context &ctx)
const -> format_context::iterator {
180 return fmt::format_to(
182 "MaterialPassport(designation='{}', materials={}, version='{}')",
183 mp.description.designation, mp.description.materials.size(),
184 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.