![]() |
LibrePCB Developers Documentation
|
The ProjectLibrary class. More...
#include <projectlibrary.h>
Inherits QObject.
Private Member Functions | |
ProjectLibrary () | |
ProjectLibrary (const ProjectLibrary &other) | |
ProjectLibrary & | operator= (const ProjectLibrary &rhs) |
template<typename ElementType > | |
void | loadElements (const QString &dirname, const QString &type, QHash< Uuid, ElementType *> &elementList) |
template<typename ElementType > | |
void | addElement (ElementType &element, QHash< Uuid, ElementType *> &elementList) |
template<typename ElementType > | |
void | removeElement (ElementType &element, QHash< Uuid, ElementType *> &elementList) |
Private Attributes | |
std::unique_ptr< TransactionalDirectory > | mDirectory |
QHash< Uuid, library::Symbol * > | mSymbols |
QHash< Uuid, library::Package * > | mPackages |
QHash< Uuid, library::Component * > | mComponents |
QHash< Uuid, library::Device * > | mDevices |
QSet< library::LibraryBaseElement * > | mAllElements |
QSet< library::LibraryBaseElement * > | mElementsToUpgrade |
The ProjectLibrary class.
ProjectLibrary | ( | std::unique_ptr< TransactionalDirectory > | directory | ) |
|
noexcept |
|
private |
|
private |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
void addSymbol | ( | library::Symbol & | s | ) |
void addPackage | ( | library::Package & | p | ) |
void addComponent | ( | library::Component & | c | ) |
void addDevice | ( | library::Device & | d | ) |
void removeSymbol | ( | library::Symbol & | s | ) |
void removePackage | ( | library::Package & | p | ) |
void removeComponent | ( | library::Component & | c | ) |
void removeDevice | ( | library::Device & | d | ) |
void save | ( | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |