LibrePCB Developers Documentation
Loading...
Searching...
No Matches
gerberx3outputjob.h
Go to the documentation of this file.
1/*
2 * LibrePCB - Professional EDA for everyone!
3 * Copyright (C) 2013 LibrePCB Developers, see AUTHORS.md for contributors.
4 * https://librepcb.org/
5 *
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef LIBREPCB_CORE_GERBERX3OUTPUTJOB_H
21#define LIBREPCB_CORE_GERBERX3OUTPUTJOB_H
22
23/*******************************************************************************
24 * Includes
25 ******************************************************************************/
26#include "outputjob.h"
27
28#include <QtCore>
29#include <QtGui>
30
31#include <optional>
32
33/*******************************************************************************
34 * Namespace / Forward Declarations
35 ******************************************************************************/
36namespace librepcb {
37
38/*******************************************************************************
39 * Class GerberX3OutputJob
40 ******************************************************************************/
41
45class GerberX3OutputJob final : public OutputJob {
46 Q_DECLARE_TR_FUNCTIONS(GerberX3OutputJob)
47
48public:
49 // Types
52
53 // Constructors / Destructor
54 GerberX3OutputJob() noexcept;
55 GerberX3OutputJob(const GerberX3OutputJob& other) noexcept;
56 explicit GerberX3OutputJob(const SExpression& node);
57 virtual ~GerberX3OutputJob() noexcept;
58
59 // Getters
60 virtual QString getTypeTr() const noexcept override;
61 virtual QIcon getTypeIcon() const noexcept override;
62 const BoardSet& getBoards() const noexcept { return mBoards; }
63 const AssemblyVariantSet& getAssemblyVariants() const noexcept {
64 return mAssemblyVariants;
65 }
66 bool getCreateTop() const noexcept { return mCreateTop; }
67 bool getCreateBottom() const noexcept { return mCreateBottom; }
68 const QString& getOutputPathTop() const noexcept { return mOutputPathTop; }
69 const QString& getOutputPathBottom() const noexcept {
70 return mOutputPathBottom;
71 }
72
73 // Setters
74 void setBoards(const BoardSet& boards) noexcept;
75 void setAssemblyVariants(const AssemblyVariantSet& avs) noexcept;
76 void setCreateTop(bool create) noexcept;
77 void setCreateBottom(bool create) noexcept;
78 void setOutputPathTop(const QString& path) noexcept;
79 void setOutputPathBottom(const QString& path) noexcept;
80
81 // General Methods
82 static QString getTypeName() noexcept { return "gerber_x3"; }
83 static QString getTypeTrStatic() noexcept {
84 return tr("Pick&Place (Gerber X3)");
85 }
86 virtual std::shared_ptr<OutputJob> cloneShared() const noexcept override;
87
88 // Operator Overloadings
89 GerberX3OutputJob& operator=(const GerberX3OutputJob& rhs) = delete;
90
91private: // Methods
92 virtual void serializeDerived(SExpression& root) const override;
93 virtual bool equals(const OutputJob& rhs) const noexcept override;
94
95private: // Data
102};
103
104} // namespace librepcb
105
106/*******************************************************************************
107 * End of File
108 ******************************************************************************/
109
110#endif
Gerber X3 pick&place output job.
Definition gerberx3outputjob.h:45
bool getCreateBottom() const noexcept
Definition gerberx3outputjob.h:67
QString mOutputPathBottom
Definition gerberx3outputjob.h:101
BoardSet mBoards
Definition gerberx3outputjob.h:96
void setCreateTop(bool create) noexcept
Definition gerberx3outputjob.cpp:104
virtual QString getTypeTr() const noexcept override
Definition gerberx3outputjob.cpp:77
GerberX3OutputJob() noexcept
Definition gerberx3outputjob.cpp:37
virtual bool equals(const OutputJob &rhs) const noexcept override
Definition gerberx3outputjob.cpp:159
static QString getTypeName() noexcept
Definition gerberx3outputjob.h:82
void setOutputPathTop(const QString &path) noexcept
Definition gerberx3outputjob.cpp:118
const QString & getOutputPathBottom() const noexcept
Definition gerberx3outputjob.h:69
const AssemblyVariantSet & getAssemblyVariants() const noexcept
Definition gerberx3outputjob.h:63
const QString & getOutputPathTop() const noexcept
Definition gerberx3outputjob.h:68
static QString getTypeTrStatic() noexcept
Definition gerberx3outputjob.h:83
bool mCreateBottom
Definition gerberx3outputjob.h:99
ObjectSet< Uuid > AssemblyVariantSet
Definition gerberx3outputjob.h:51
void setAssemblyVariants(const AssemblyVariantSet &avs) noexcept
Definition gerberx3outputjob.cpp:96
bool mCreateTop
Definition gerberx3outputjob.h:98
const BoardSet & getBoards() const noexcept
Definition gerberx3outputjob.h:62
virtual QIcon getTypeIcon() const noexcept override
Definition gerberx3outputjob.cpp:81
virtual void serializeDerived(SExpression &root) const override
Definition gerberx3outputjob.cpp:144
void setOutputPathBottom(const QString &path) noexcept
Definition gerberx3outputjob.cpp:125
ObjectSet< Uuid > BoardSet
Definition gerberx3outputjob.h:50
QString mOutputPathTop
Definition gerberx3outputjob.h:100
virtual std::shared_ptr< OutputJob > cloneShared() const noexcept override
Definition gerberx3outputjob.cpp:136
void setCreateBottom(bool create) noexcept
Definition gerberx3outputjob.cpp:111
bool getCreateTop() const noexcept
Definition gerberx3outputjob.h:66
AssemblyVariantSet mAssemblyVariants
Definition gerberx3outputjob.h:97
void setBoards(const BoardSet &boards) noexcept
Definition gerberx3outputjob.cpp:89
Base class for all output job types.
Definition outputjob.h:50
The SExpression class.
Definition sexpression.h:69
Definition occmodel.cpp:76
Definition outputjob.h:65