20#ifndef LIBREPCB_CORE_GERBERATTRIBUTE_H
21#define LIBREPCB_CORE_GERBERATTRIBUTE_H
106 const QString& vendor, const QString& application,
107 const QString& version) noexcept;
110 const QString& revision) noexcept;
113 const QString& identifier) noexcept;
121 int toLayer) noexcept;
123 int toLayer) noexcept;
125 int toLayer) noexcept;
136 const QString& signal) noexcept;
139 const QString& manufacturer) noexcept;
147 const QStringList& values) noexcept;
149 static QString
escapeValue(const QString& value,
bool strictAscii) noexcept;
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition angle.h:76
A Gerber X2 attribute.
Definition gerberattribute.h:43
QString toGerberString() const noexcept
Definition gerberattribute.cpp:59
const QString & getKey() const noexcept
Definition gerberattribute.h:92
MountType
Definition gerberattribute.h:52
static GerberAttribute componentFootprint(const QString &footprint) noexcept
Definition gerberattribute.cpp:487
static GerberAttribute fileFunctionMixedPlating(int fromLayer, int toLayer) noexcept
Definition gerberattribute.cpp:269
static GerberAttribute componentMountType(MountType type) noexcept
Definition gerberattribute.cpp:464
Type
Definition gerberattribute.h:48
static GerberAttribute fileGenerationSoftware(const QString &vendor, const QString &application, const QString &version) noexcept
Definition gerberattribute.cpp:135
QString toString() const noexcept
Definition gerberattribute.cpp:91
static GerberAttribute fileFunctionSolderMask(BoardSide side) noexcept
Definition gerberattribute.cpp:201
static GerberAttribute objectPin(const QString &component, const QString &pin, const QString &signal) noexcept
Definition gerberattribute.cpp:436
BoardSide
Definition gerberattribute.h:50
static GerberAttribute fileFunctionProfile(bool plated) noexcept
Definition gerberattribute.cpp:170
const QStringList & getValues() const noexcept
Definition gerberattribute.h:93
QStringList mValues
Definition gerberattribute.h:154
static GerberAttribute fileFunctionCopper(int layer, CopperSide side) noexcept
Definition gerberattribute.cpp:175
Type getType() const noexcept
Definition gerberattribute.h:91
static GerberAttribute fileSameCoordinates(const QString &identifier) noexcept
Definition gerberattribute.cpp:161
static GerberAttribute apertureFunction(ApertureFunction function) noexcept
Definition gerberattribute.cpp:322
static GerberAttribute componentManufacturer(const QString &manufacturer) noexcept
Definition gerberattribute.cpp:451
ApertureFunction
Definition gerberattribute.h:53
@ ComponentDrillPressFit
Drill for press-fit component pads (plated)
@ BgaPadCopperDefined
BGA pad, copper-defined.
@ ComponentDrill
Drill for component pads (usually plated)
@ BgaPadSolderMaskDefined
BGA pad, stopmask-defined.
@ Conductor
Copper with electrical function.
@ MechanicalDrill
Drill for mechanical purpose (usually not plated)
@ SmdPadSolderMaskDefined
SMT pad, stopmask-defined.
@ FiducialPadGlobal
Global fiducial pad.
@ ComponentPin
Component pin.
@ HeatsinkPad
Heat sink or thermal pad.
@ ComponentOutlineBody
Component body outline.
@ NonConductor
Copper without electrical function.
@ ConnectorPad
Edge connector pad.
@ ComponentMain
Center of component.
@ ComponentOutlineCourtyard
Component courtyard outline.
@ FiducialPadLocal
Local fiducial pad.
@ ViaDrill
Drill of a via (usually plated)
@ SmdPadCopperDefined
SMT pad, copper-defined.
QString toExcellonString() const noexcept
Definition gerberattribute.cpp:67
Polarity
Definition gerberattribute.h:49
static GerberAttribute componentRotation(const Angle &rotation) noexcept
Definition gerberattribute.cpp:446
static GerberAttribute unset(const QString &key) noexcept
Definition gerberattribute.cpp:131
static QString escapeValue(const QString &value, bool strictAscii) noexcept
Definition gerberattribute.cpp:496
static GerberAttribute fileFunctionComponent(int layer, BoardSide side) noexcept
Definition gerberattribute.cpp:281
static GerberAttribute fileFunctionPlatedThroughHole(int fromLayer, int toLayer) noexcept
Definition gerberattribute.cpp:255
static GerberAttribute componentMpn(const QString &mpn) noexcept
Definition gerberattribute.cpp:456
CopperSide
Definition gerberattribute.h:51
static GerberAttribute fileMd5(const QString &md5) noexcept
Definition gerberattribute.cpp:318
static GerberAttribute objectComponent(const QString &component) noexcept
Definition gerberattribute.cpp:431
QString mKey
Definition gerberattribute.h:153
static GerberAttribute componentValue(const QString &value) noexcept
Definition gerberattribute.cpp:460
static GerberAttribute filePolarity(Polarity polarity) noexcept
Definition gerberattribute.cpp:302
static GerberAttribute fileFunctionPaste(BoardSide side) noexcept
Definition gerberattribute.cpp:238
static GerberAttribute fileProjectId(const QString &name, const Uuid &uuid, const QString &revision) noexcept
Definition gerberattribute.cpp:151
static GerberAttribute objectNet(const QString &net) noexcept
Definition gerberattribute.cpp:427
static GerberAttribute fileFunctionLegend(BoardSide side) noexcept
Definition gerberattribute.cpp:221
Type mType
Definition gerberattribute.h:152
GerberAttribute() noexcept
Definition gerberattribute.cpp:39
static GerberAttribute filePartSingle() noexcept
Definition gerberattribute.cpp:157
static GerberAttribute fileFunctionNonPlatedThroughHole(int fromLayer, int toLayer) noexcept
Definition gerberattribute.cpp:262
static GerberAttribute apertureFunctionMixedPlatingDrill(bool plated, ApertureFunction function) noexcept
Definition gerberattribute.cpp:412
static GerberAttribute fileCreationDate(const QDateTime &date) noexcept
Definition gerberattribute.cpp:145
The Uuid class is a replacement for QUuid to get UUID strings without {} braces.
Definition uuid.h:56
Definition occmodel.cpp:76