2 #include "common/lut.hpp"
3 #include "util/uuid.hpp"
4 #include "nlohmann/json_fwd.hpp"
11 class BOMExportSettings {
13 BOMExportSettings(
const json &,
class IPool &pool);
15 json serialize()
const;
17 enum class Format { CSV };
18 Format format = Format::CSV;
19 std::map<UUID, UUID> orderable_MPNs;
20 std::map<UUID, const class Part *> concrete_parts;
24 CSVSettings(
const json &j);
27 std::vector<BOMColumn> columns;
28 BOMColumn sort_column = BOMColumn::REFDES;
29 enum class Order { ASC, DESC };
30 Order order = Order::ASC;
32 json serialize()
const;
35 CSVSettings csv_settings;
37 std::string output_filename;
39 bool include_nopopulate =
true;