LibrePCB Developers Documentation
|
#include <part.h>
Public Types | |
enum class | Event |
typedef Slot< Part, Event > | OnEditedSlot |
Public Member Functions | |
Part ()=delete | |
Part (const Part &other) noexcept | |
Part (const SExpression &node) | |
Part (const SimpleString &mpn, const SimpleString &manufacturer, const AttributeList &attributes) noexcept | |
~Part () noexcept | |
bool | isEmpty () const noexcept |
const SimpleString & | getMpn () const noexcept |
const SimpleString & | getManufacturer () const noexcept |
AttributeList & | getAttributes () noexcept |
const AttributeList & | getAttributes () const noexcept |
QStringList | getAttributeValuesTr () const noexcept |
QStringList | getAttributeKeyValuesTr () const noexcept |
void | setMpn (const SimpleString &value) noexcept |
void | setManufacturer (const SimpleString &value) noexcept |
void | serialize (SExpression &root) const |
Serialize into librepcb::SExpression node. More... | |
bool | operator== (const Part &rhs) const noexcept |
bool | operator!= (const Part &rhs) const noexcept |
Part & | operator= (const Part &rhs) noexcept |
Public Attributes | |
Signal< Part, Event > | onEdited |
Private Member Functions | |
void | attributeListEdited (const AttributeList &list, int index, const std::shared_ptr< const Attribute > &attribute, AttributeList::Event event) noexcept |
Private Attributes | |
SimpleString | mMpn |
SimpleString | mManufacturer |
AttributeList | mAttributes |
AttributeList::OnEditedSlot | mOnAttributesEditedSlot |
The Part class.
typedef Slot<Part, Event> OnEditedSlot |
|
strong |
|
delete |
|
explicit |
|
noexcept |
|
noexcept |
|
noexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
void serialize | ( | SExpression & | root | ) | const |
Serialize into librepcb::SExpression node.
root | Root node to serialize into. |
|
noexcept |
|
inlinenoexcept |
|
privatenoexcept |
|
private |
|
private |
|
private |
|
private |