LibrePCB Developers Documentation
EagleLibraryConverter Class Referencefinal

Converts EAGLE library elements to LibrePCB. More...

#include <eaglelibraryconverter.h>

Inherits QObject.

+ Collaboration diagram for EagleLibraryConverter:

Public Member Functions

 EagleLibraryConverter (const EagleLibraryConverter &other)=delete
 
 EagleLibraryConverter (const EagleLibraryConverterSettings &settings, QObject *parent=nullptr) noexcept
 
 ~EagleLibraryConverter () noexcept
 
Uuid getComponentSignalOfSymbolPin (const QString &libName, const QString &libUrn, const QString &devSetName, const QString &gateName, const QString &pinName) const
 
void reset () noexcept
 
std::unique_ptr< SymbolcreateSymbol (const QString &libName, const QString &libUrn, const parseagle::Symbol &eagleSymbol, MessageLogger &log)
 
std::unique_ptr< PackagecreatePackage (const QString &libName, const QString &libUrn, const parseagle::Package &eaglePackage, MessageLogger &log)
 
std::unique_ptr< ComponentcreateComponent (const QString &libName, const QString &libUrn, const parseagle::DeviceSet &eagleDeviceSet, MessageLogger &log)
 
std::unique_ptr< DevicecreateDevice (const QString &devLibName, const QString &devLibUrn, const parseagle::DeviceSet &eagleDeviceSet, const parseagle::Device &eagleDevice, const QString &pkgLibName, const QString &pkgLibUrn, MessageLogger &log)
 
EagleLibraryConverteroperator= (const EagleLibraryConverter &rhs)=delete
 

Private Member Functions

void tryOrLogError (std::function< void()> func, MessageLogger &log)
 

Private Attributes

EagleLibraryConverterSettings mSettings
 
QHash< QStringList, tl::optional< Uuid > > mSymbolMap
 
QHash< QStringList, QMap< QString, std::pair< std::shared_ptr< parseagle::Pin >, tl::optional< Uuid > > > > mSymbolPinMap
 
QHash< QStringList, tl::optional< Uuid > > mPackageMap
 
QHash< QStringList, QMap< QString, tl::optional< Uuid > > > mPackagePadMap
 
QHash< QStringList, tl::optional< Uuid > > mComponentMap
 
QHash< QStringList, tl::optional< Uuid > > mComponentSignalMap
 

Detailed Description

Converts EAGLE library elements to LibrePCB.

Constructor & Destructor Documentation

◆ EagleLibraryConverter() [1/2]

EagleLibraryConverter ( const EagleLibraryConverter other)
delete

◆ EagleLibraryConverter() [2/2]

EagleLibraryConverter ( const EagleLibraryConverterSettings settings,
QObject *  parent = nullptr 
)
explicitnoexcept

◆ ~EagleLibraryConverter()

~EagleLibraryConverter ( )
noexcept

Member Function Documentation

◆ getComponentSignalOfSymbolPin()

Uuid getComponentSignalOfSymbolPin ( const QString &  libName,
const QString &  libUrn,
const QString &  devSetName,
const QString &  gateName,
const QString &  pinName 
) const
+ Here is the caller graph for this function:

◆ reset()

void reset ( )
noexcept

◆ createSymbol()

std::unique_ptr< Symbol > createSymbol ( const QString &  libName,
const QString &  libUrn,
const parseagle::Symbol &  eagleSymbol,
MessageLogger log 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createPackage()

std::unique_ptr< Package > createPackage ( const QString &  libName,
const QString &  libUrn,
const parseagle::Package &  eaglePackage,
MessageLogger log 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createComponent()

std::unique_ptr< Component > createComponent ( const QString &  libName,
const QString &  libUrn,
const parseagle::DeviceSet &  eagleDeviceSet,
MessageLogger log 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createDevice()

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 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator=()

EagleLibraryConverter & operator= ( const EagleLibraryConverter rhs)
delete

◆ tryOrLogError()

void tryOrLogError ( std::function< void()>  func,
MessageLogger log 
)
private
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ mSettings

EagleLibraryConverterSettings mSettings
private

◆ mSymbolMap

QHash<QStringList, tl::optional<Uuid> > mSymbolMap
private

Key: [Library Name, Library URN, Symbol Name] Value: LibrePCB Symbol UUID

◆ mSymbolPinMap

QHash<QStringList, QMap<QString, std::pair<std::shared_ptr<parseagle::Pin>, tl::optional<Uuid> > > > mSymbolPinMap
private

Key: [Library Name, Library URN, Symbol Name] | Pin Name Value: (EAGLE Pin Object, LibrePCB Symbol Pin UUID)

◆ mPackageMap

QHash<QStringList, tl::optional<Uuid> > mPackageMap
private

Key: [Library Name, Library URN, Package Name] Value: LibrePCB Package UUID

◆ mPackagePadMap

QHash<QStringList, QMap<QString, tl::optional<Uuid> > > mPackagePadMap
private

Key: [Library Name, Library URN, Package Name] | Pad Name Value: LibrePCB Package Pad UUID

◆ mComponentMap

QHash<QStringList, tl::optional<Uuid> > mComponentMap
private

Key: [Library Name, Library URN, Device Set Name] Value: LibrePCB Component UUID

◆ mComponentSignalMap

QHash<QStringList, tl::optional<Uuid> > mComponentSignalMap
private

Key: [Library Name, Library URN, Device Set Name, Gate Name, Pin Name] Value: LibrePCB Component Signal UUID


The documentation for this class was generated from the following files: