KiCad PCB EDA Suite
Loading...
Searching...
No Matches
job_export_pcb_fab.h
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (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 <https://www.gnu.org/licenses/>.
18 */
19
20#ifndef JOB_EXPORT_PCB_FAB_H
21#define JOB_EXPORT_PCB_FAB_H
22
23#include <kicommon.h>
24#include "job.h"
25
26#include <optional>
27#include <vector>
28
29
31{
32public:
33 enum class UNITS
34 {
36 INCH // Not IN because a Windows header defines it as a macro
37 };
38
57
59 enum class NET_NAMES
60 {
63 };
64
66 static DATA_SET DataSetFromToken( const wxString& aToken );
67
69 static std::string DataSetToken( DATA_SET aDataSet );
70
71 virtual bool SupportsDataSet( DATA_SET aDataSet ) const = 0;
72
73 void FromJson( const nlohmann::json& aJson ) override;
74 void ToJson( nlohmann::json& aJson ) const override;
75
76 wxString m_filename;
78 std::vector<wxString> m_variantNames;
80 int m_precision = 6;
82 wxString m_colMfgPn;
84
87 std::optional<wxString> m_sections;
89
90protected:
91 explicit JOB_EXPORT_PCB_FAB( const std::string& aType );
92};
93
94#endif
DATA_SET
Columns of the IPC-2581C function mode table, Table 4 p 80.
JOB_EXPORT_PCB_FAB(const std::string &aType)
std::optional< wxString > m_sections
Section key that replaces the optional sections of the data set Unset lets the data set select them a...
virtual bool SupportsDataSet(DATA_SET aDataSet) const =0
NET_NAMES
An anonymous name keeps the connections.
std::vector< wxString > m_variantNames
virtual void FromJson(const nlohmann::json &j)
Definition job.cpp:60
JOB(const std::string &aType, bool aOutputIsDirectory)
Definition job.cpp:26
virtual void ToJson(nlohmann::json &j) const
Definition job.cpp:67
#define KICOMMON_API
Definition kicommon.h:27