20#ifndef LIBREPCB_EAGLEIMPORT_EAGLELIBRARYCONVERTER_H
21#define LIBREPCB_EAGLEIMPORT_EAGLELIBRARYCONVERTER_H
29#include <optional/tl/optional.hpp>
55namespace eagleimport {
92 QObject* parent =
nullptr) noexcept;
97 const QString& libUrn,
98 const QString& devSetName,
99 const QString& gateName,
100 const QString& pinName) const;
103 void reset() noexcept;
105 const QString& libUrn,
109 const QString& libUrn,
113 const QString& libName, const QString& libUrn,
116 const QString& devLibName, const QString& devLibUrn,
117 const
parseagle::DeviceSet& eagleDeviceSet,
The BoundedUnsignedRatio class represents a ratio limited to a range specified by min/max values.
Definition: boundedunsignedratio.h:46
The Component class represents a "generic" device in the library.
Definition: component.h:73
The Device class represents an instance of a component (a "real" component)
Definition: device.h:55
Generic logger class to pass messages between objects.
Definition: messagelogger.h:43
The Package class represents a package of a component (including footprint and 3D model)
Definition: package.h:59
The Symbol class represents the part of a component which is added to schematics.
Definition: symbol.h:55
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
Converts EAGLE library elements to LibrePCB.
Definition: eaglelibraryconverter.h:85
QHash< QStringList, tl::optional< Uuid > > mComponentMap
Definition: eaglelibraryconverter.h:153
void reset() noexcept
Definition: eaglelibraryconverter.cpp:91
std::unique_ptr< Device > createDevice(const QString &devLibName, const QString &devLibUrn, const parseagle::DeviceSet &eagleDeviceSet, const parseagle::Device &eagleDevice, const QString &pkgLibName, const QString &pkgLibUrn, MessageLogger &log)
Definition: eaglelibraryconverter.cpp:424
QHash< QStringList, QMap< QString, tl::optional< Uuid > > > mPackagePadMap
Definition: eaglelibraryconverter.h:149
QHash< QStringList, tl::optional< Uuid > > mComponentSignalMap
Definition: eaglelibraryconverter.h:157
QHash< QStringList, tl::optional< Uuid > > mPackageMap
Definition: eaglelibraryconverter.h:145
EagleLibraryConverter(const EagleLibraryConverter &other)=delete
void tryOrLogError(std::function< void()> func, MessageLogger &log)
Definition: eaglelibraryconverter.cpp:486
std::unique_ptr< Component > createComponent(const QString &libName, const QString &libUrn, const parseagle::DeviceSet &eagleDeviceSet, MessageLogger &log)
Definition: eaglelibraryconverter.cpp:311
std::unique_ptr< Symbol > createSymbol(const QString &libName, const QString &libUrn, const parseagle::Symbol &eagleSymbol, MessageLogger &log)
Definition: eaglelibraryconverter.cpp:100
QHash< QStringList, QMap< QString, std::pair< std::shared_ptr< parseagle::Pin >, tl::optional< Uuid > > > > mSymbolPinMap
Definition: eaglelibraryconverter.h:141
Uuid getComponentSignalOfSymbolPin(const QString &libName, const QString &libUrn, const QString &devSetName, const QString &gateName, const QString &pinName) const
Definition: eaglelibraryconverter.cpp:73
std::unique_ptr< Package > createPackage(const QString &libName, const QString &libUrn, const parseagle::Package &eaglePackage, MessageLogger &log)
Definition: eaglelibraryconverter.cpp:210
EagleLibraryConverterSettings mSettings
Definition: eaglelibraryconverter.h:128
QHash< QStringList, tl::optional< Uuid > > mSymbolMap
Definition: eaglelibraryconverter.h:134
Definition: occmodel.cpp:77
Definition: eaglelibraryconverter.h:38
Settings for librepcb::eagleimport::EagleLibraryConverter.
Definition: eaglelibraryconverter.h:64
QString namePrefix
Definition: eaglelibraryconverter.h:67
QString author
Definition: eaglelibraryconverter.h:69
QSet< Uuid > packageCategories
Definition: eaglelibraryconverter.h:72
EagleLibraryConverterSettings() noexcept
Definition: eaglelibraryconverter.cpp:49
BoundedUnsignedRatio autoThtAnnularWidth
Definition: eaglelibraryconverter.h:75
QString keywords
Definition: eaglelibraryconverter.h:70
QSet< Uuid > symbolCategories
Definition: eaglelibraryconverter.h:71
QSet< Uuid > deviceCategories
Definition: eaglelibraryconverter.h:74
Version version
Definition: eaglelibraryconverter.h:68
QSet< Uuid > componentCategories
Definition: eaglelibraryconverter.h:73