20#ifndef LIBREPCB_CORE_D356NETLISTGENERATOR_H
21#define LIBREPCB_CORE_D356NETLISTGENERATOR_H
26#include "../types/angle.h"
27#include "../types/point.h"
29#include <optional/tl/optional.hpp>
57 const QString& brdName,
58 const QDateTime& generationDate)
noexcept;
62 void smtPad(const QString& netName, const QString& cmpName,
63 const QString& padName, const
Point& position,
65 const
Angle& rotation,
int layer);
66 void thtPad(const QString& netName, const QString& cmpName,
67 const QString& padName, const
Point& position,
73 bool solderMaskCovered);
77 int startLayer,
int endLayer,
bool solderMaskCovered);
95 BlindOrBuriedVia = 307,
113 tl::optional<std::pair<PositiveLength, bool>>
hole;
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition: angle.h:78
The D356NetlistGenerator class.
Definition: d356netlistgenerator.h:49
~D356NetlistGenerator() noexcept
Definition: d356netlistgenerator.cpp:66
SolderMask
Definition: d356netlistgenerator.h:100
void smtPad(const QString &netName, const QString &cmpName, const QString &padName, const Point &position, const PositiveLength &width, const PositiveLength &height, const Angle &rotation, int layer)
Definition: d356netlistgenerator.cpp:73
void throughVia(const QString &netName, const Point &position, const PositiveLength &width, const PositiveLength &height, const Angle &rotation, const PositiveLength &drillDiameter, bool solderMaskCovered)
Definition: d356netlistgenerator.cpp:99
QByteArray generate() const
Definition: d356netlistgenerator.cpp:140
D356NetlistGenerator()=delete
static QString cleanString(QString str) noexcept
Definition: d356netlistgenerator.cpp:243
OperationCode
Definition: d356netlistgenerator.h:93
void thtPad(const QString &netName, const QString &cmpName, const QString &padName, const Point &position, const PositiveLength &width, const PositiveLength &height, const Angle &rotation, const PositiveLength &drillDiameter)
Definition: d356netlistgenerator.cpp:86
void buriedVia(const QString &netName, const Point &position, const PositiveLength &drillDiameter, int startLayer, int endLayer)
Definition: d356netlistgenerator.cpp:130
QStringList mComments
Definition: d356netlistgenerator.h:124
void blindVia(const QString &netName, const Point &position, const PositiveLength &width, const PositiveLength &height, const Angle &rotation, const PositiveLength &drillDiameter, int startLayer, int endLayer, bool solderMaskCovered)
Definition: d356netlistgenerator.cpp:110
static QString formatLength(const Length &value, bool isSigned, int digits) noexcept
Definition: d356netlistgenerator.cpp:269
QList< Record > mRecords
Definition: d356netlistgenerator.h:125
D356NetlistGenerator(const D356NetlistGenerator &other)=delete
static QString checkedComponentName(const QString &name) noexcept
Definition: d356netlistgenerator.cpp:260
The Length class is used to represent a length (for example 12.75 millimeters)
Definition: length.h:83
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5....
Definition: point.h:79
Definition: occmodel.cpp:77
type_safe::constrained_type< Length, PositiveLengthConstraint, PositiveLengthVerifier > PositiveLength
Definition: length.h:812
Definition: d356netlistgenerator.h:107
bool midPoint
Definition: d356netlistgenerator.h:112
tl::optional< int > endLayer
Definition: d356netlistgenerator.h:121
tl::optional< PositiveLength > width
Definition: d356netlistgenerator.h:116
tl::optional< std::pair< PositiveLength, bool > > hole
Definition: d356netlistgenerator.h:113
QString padName
Definition: d356netlistgenerator.h:111
OperationCode code
Definition: d356netlistgenerator.h:108
QString componentName
Definition: d356netlistgenerator.h:110
tl::optional< PositiveLength > height
Definition: d356netlistgenerator.h:117
tl::optional< QString > signalName
Definition: d356netlistgenerator.h:109
tl::optional< int > accessCode
Definition: d356netlistgenerator.h:114
tl::optional< Angle > rotation
Definition: d356netlistgenerator.h:118
Point position
Definition: d356netlistgenerator.h:115
tl::optional< SolderMask > solderMask
Definition: d356netlistgenerator.h:119
tl::optional< int > startLayer
Definition: d356netlistgenerator.h:120