20#ifndef LIBREPCB_CORE_LIBRARYELEMENT_H
21#define LIBREPCB_CORE_LIBRARYELEMENT_H
53 const QString& longElementName,
const Uuid& uuid,
54 const Version& version,
const QString& author,
56 const QString& description_en_US,
57 const QString& keywords_en_US);
59 const QString& longElementName,
bool dirnameMustBeUuid,
60 std::unique_ptr<TransactionalDirectory> directory,
The LibraryBaseElement class.
Definition: librarybaseelement.h:48
The LibraryElement class extends the LibraryBaseElement class with some attributes and methods which ...
Definition: libraryelement.h:45
LibraryElement & operator=(const LibraryElement &rhs)=delete
void setCategories(const QSet< Uuid > &uuids) noexcept
Definition: libraryelement.h:71
virtual RuleCheckMessageList runChecks() const override
Definition: libraryelement.cpp:72
ResourceList mResources
Definition: libraryelement.h:87
void setResources(const ResourceList &resources) noexcept
Definition: libraryelement.h:72
const ResourceList & getResources() const noexcept
Definition: libraryelement.h:67
void setGeneratedBy(const QString &gen) noexcept
Definition: libraryelement.h:70
const QString & getGeneratedBy() const noexcept
Definition: libraryelement.h:65
QString mGeneratedBy
If not empty, the element is generated.
Definition: libraryelement.h:85
const QSet< Uuid > & getCategories() const noexcept
Definition: libraryelement.h:66
QSet< Uuid > mCategories
Definition: libraryelement.h:86
virtual void serialize(SExpression &root) const override
Serialize into librepcb::SExpression node.
Definition: libraryelement.cpp:81
LibraryElement(const LibraryElement &other)=delete
virtual ~LibraryElement() noexcept
Definition: libraryelement.cpp:65
The SExpression class.
Definition: sexpression.h:69
The Uuid class is a replacement for QUuid to get UUID strings without {} braces.
Definition: uuid.h:58
The Version class represents a version number in the format "1.42.7".
Definition: version.h:58
Definition: occmodel.cpp:77
QVector< std::shared_ptr< const RuleCheckMessage > > RuleCheckMessageList
Definition: rulecheckmessage.h:104
type_safe::constrained_type< QString, ElementNameConstraint, ElementNameVerifier > ElementName
Definition: elementname.h:84