20#ifndef LIBREPCB_CORE_BOM_H
21#define LIBREPCB_CORE_BOM_H
46 BomItem(
const QString& designator,
const QStringList& attributes,
85 Q_DECLARE_TR_FUNCTIONS(
Bom)
93 Bom(
const Bom& other)
noexcept =
delete;
94 Bom(
const QStringList& columns,
95 const QVector<IndexPair>& mpnManufacturerColumns)
noexcept;
108 void addItem(const QString& designator, const QStringList& attributes,
109 bool mount) noexcept;
112 Bom& operator=(const
Bom& rhs) noexcept = delete;
The Bom class represents a bill of materials list.
Definition: bom.h:84
std::pair< int, int > IndexPair
Definition: bom.h:89
~Bom() noexcept
Definition: bom.cpp:56
const QVector< IndexPair > & getMpnManufacturerColumns() const noexcept
Definition: bom.h:100
QStringList mColumns
Definition: bom.h:115
void addItem(const QString &designator, const QStringList &attributes, bool mount) noexcept
Definition: bom.cpp:83
QVector< IndexPair > mMpnManufacturerColumns
Definition: bom.h:116
Bom(const Bom &other) noexcept=delete
const QList< BomItem > & getItems() const noexcept
Definition: bom.h:103
const QStringList & getColumns() const noexcept
Definition: bom.h:99
QList< BomItem > mItems
Definition: bom.h:117
int getAssembledRowsCount() const noexcept
Definition: bom.cpp:63
int getTotalAssembledPartsCount() const noexcept
Definition: bom.cpp:73
The BomItem class represents an item of a bill of materials list.
Definition: bom.h:40
void addDesignator(const QString &designator) noexcept
Definition: bom.cpp:38
QStringList mDesignators
Definition: bom.h:72
BomItem(const BomItem &other) noexcept
Definition: bom.h:49
QStringList mAttributes
Definition: bom.h:73
bool mMount
False means "do not mount".
Definition: bom.h:74
const QStringList & getAttributes() const noexcept
Definition: bom.h:57
BomItem & operator=(const BomItem &rhs) noexcept
Definition: bom.h:64
BomItem(const QString &designator, const QStringList &attributes, bool mount) noexcept
Definition: bom.h:46
const QStringList & getDesignators() const noexcept
Definition: bom.h:56
bool isMount() const noexcept
Definition: bom.h:58
~BomItem() noexcept
Definition: bom.h:53
Definition: occmodel.cpp:77