20 #ifndef LIBREPCB_CORE_DEVICE_H 21 #define LIBREPCB_CORE_DEVICE_H 26 #include "../../attribute/attribute.h" 27 #include "../libraryelement.h" 62 const ElementName& name_en_US,
const QString& description_en_US,
63 const QString& keywords_en_US,
const Uuid& component,
87 static std::unique_ptr<Device>
open(
88 std::unique_ptr<TransactionalDirectory> directory);
90 return QStringLiteral(
"dev");
93 return QStringLiteral(
"device");
104 Device(std::unique_ptr<TransactionalDirectory> directory,
DevicePadSignalMap mPadSignalMap
Definition: device.h:112
The Version class represents a version number in the format "1.42.7".
Definition: version.h:58
void packageUuidChanged(const Uuid &uuid)
const DevicePadSignalMap & getPadSignalMap() const noexcept
Definition: device.h:72
Definition: occmodel.cpp:76
The Device class represents an instance of a component (a "real" component)
Definition: device.h:54
DevicePadSignalMap & getPadSignalMap() noexcept
Definition: device.h:71
QVector< std::shared_ptr< const RuleCheckMessage > > RuleCheckMessageList
Definition: rulecheckmessage.h:104
virtual RuleCheckMessageList runChecks() const override
Definition: device.cpp:84
void componentUuidChanged(const Uuid &uuid)
void setComponentUuid(const Uuid &uuid) noexcept
Definition: device.cpp:68
static QString getLongElementName() noexcept
Definition: device.h:92
static QString getShortElementName() noexcept
Definition: device.h:89
The LibraryElement class extends the LibraryBaseElement class with some attributes and methods which ...
Definition: libraryelement.h:44
void setPackageUuid(const Uuid &uuid) noexcept
Definition: device.cpp:74
static std::unique_ptr< Device > open(std::unique_ptr< TransactionalDirectory > directory)
Definition: device.cpp:89
AttributeList mAttributes
not yet used, but already specified in file format
Definition: device.h:111
const AttributeList & getAttributes() const noexcept
Definition: device.h:70
~Device() noexcept
Definition: device.cpp:61
const Uuid & getPackageUuid() const noexcept
Definition: device.h:69
virtual void serialize(SExpression &root) const override
Serialize into librepcb::SExpression node.
Definition: device.cpp:116
Uuid mPackageUuid
Definition: device.h:109
const Uuid & getComponentUuid() const noexcept
Definition: device.h:68
The Uuid class is a replacement for QUuid to get UUID strings without {} braces.
Definition: uuid.h:56
Device & operator=(const Device &rhs)=delete
The SExpression class.
Definition: sexpression.h:66
Uuid mComponentUuid
Definition: device.h:108
type_safe::constrained_type< QString, ElementNameConstraint, ElementNameVerifier > ElementName
Definition: elementname.h:93