62std::optional<SampleResult>
74 using std::runtime_error::runtime_error;
81 using std::runtime_error::runtime_error;
94std::array<double, kTreatmentCount>
138std::map<std::uint32_t, std::uint32_t>
140 const std::vector<std::uint32_t> &room_labels);
A name that must be unique (template, user column, stored field) is already taken.
Wire form of one stored report PDF version — the ReportPdfVersion schema in ruxd's API contract (docs...
void validate_sample_state(const SampleState &)
@ none
not index-aligned with anything (tables, meshes)
std::string part_code(int number)
std::optional< SampleStage > sample_stage_from_string(std::string_view)
std::array< double, kTreatmentCount > circularity_breakdown(const std::vector< TypeTotals > &)
constexpr int kManualSemanticClass
semantic_class of a survey type created by hand, never matched by sync_survey.
constexpr std::size_t kTreatmentCount
std::string_view eak_fraction_name(std::string_view code)
std::string_view environment_label_da(EnvironmentStatus)
std::string_view treatment_label_da(Treatment)
Danish user-facing labels (the PDF report).
auto to_string(Material value) -> std::string_view
Convert Material enum to its string identifier.
EnvironmentStatus environment_status(const std::vector< SampleState > &linked)
std::optional< ReviewStatus > review_status_from_string(std::string_view)
FractionReport fractions_by_eak(const std::vector< TypeTotals > &)
Approved tonnes per (EAK code, treatment, contaminated), for the bygningsaffald.dk report (GUI Phase ...
BlockingReason
Why a type blocks the waste report; a type gets one reason, by precedence sample > review > mass.
std::optional< SampleResult > sample_result_from_string(std::string_view)
std::map< std::uint32_t, std::uint32_t > majority_room(const std::vector< std::uint32_t > &instance_labels, const std::vector< std::uint32_t > &room_labels)
constexpr std::string_view kDefaultInstanceCloud
Default name of the instance-label cloud sync_survey reads from, and the default SurveySyncOptions::i...
bool reportable(ReviewStatus status, EnvironmentStatus environment)
True when a type's tonnes may be reported: it is approved and not awaiting a sample (an afventer answ...
std::string sample_code(int number)
std::vector< double > redistribute_quantity(const std::vector< double > ¤t, double total)
std::optional< Treatment > treatment_from_string(std::string_view)
std::optional< double > mass_t
std::vector< BlockingType > blocking
std::size_t blocking_types
std::vector< Fraction > fractions
std::optional< double > mass_t
std::int64_t type_id
Identify the type in a blocking list; not used by the arithmetic.
EnvironmentStatus environment