Horizon
bom.hpp
1 #pragma once
2 #include "common/lut.hpp"
3 #include <vector>
4 
5 namespace horizon {
6 
7 enum class BOMColumn {
8  QTY,
9  MPN,
10  VALUE,
11  MANUFACTURER,
12  REFDES,
13  DESCRIPTION,
14  DATASHEET,
15  PACKAGE,
16 };
17 
18 extern const LutEnumStr<BOMColumn> bom_column_lut;
19 extern const std::map<BOMColumn, std::string> bom_column_names;
20 
21 class BOMRow {
22 public:
23  std::string MPN;
24  std::string manufacturer;
25  std::vector<std::string> refdes;
26  std::string datasheet;
27  std::string description;
28  std::string value;
29  std::string package;
30 
31  std::string get_column(BOMColumn col) const;
32 };
33 } // namespace horizon