KiCad PCB EDA Suite
Loading...
Searching...
No Matches
job_export_pcb_odb.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 modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation, either version 3 of the License, or (at your
9 * option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * 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_ODB_H
21#define JOB_EXPORT_PCB_ODB_H
22
23#include <kicommon.h>
24#include <layer_ids.h>
25#include "job_export_pcb_fab.h"
26
34
35namespace nlohmann
36{
37template <>
38struct adl_serializer<ODB_LAYER_OVERRIDE>
39{
40 static KICOMMON_API void from_json( const json& aJson, ODB_LAYER_OVERRIDE& aOverride );
41 static KICOMMON_API void to_json( json& aJson, const ODB_LAYER_OVERRIDE& aOverride );
42};
43} // namespace nlohmann
44
46{
47public:
49 wxString GetDefaultDescription() const override;
50 wxString GetSettingsDialogTitle() const override;
51
52 void SetDefaultOutputPath( const wxString& aReferenceName );
53
54 bool SupportsDataSet( DATA_SET aDataSet ) const override;
55
56 enum class ODB_COMPRESSION
57 {
61 };
62
68
69 enum class ORIGIN
70 {
74 };
75
76public:
80 wxString m_productName;
81 bool m_boardMetadata = true;
82 std::vector<ODB_LAYER_OVERRIDE> m_layerOverrides;
83};
84
85#endif
DATA_SET
Columns of the IPC-2581C function mode table, Table 4 p 80.
JOB_EXPORT_PCB_FAB(const std::string &aType)
virtual bool SupportsDataSet(DATA_SET aDataSet) const =0
VARIANT_PACKAGING m_variantPackaging
void SetDefaultOutputPath(const wxString &aReferenceName)
ODB_COMPRESSION m_compressionMode
std::vector< ODB_LAYER_OVERRIDE > m_layerOverrides
virtual wxString GetDefaultDescription() const
Definition job.cpp:74
virtual wxString GetSettingsDialogTitle() const
Definition job.cpp:80
KICOMMON_API void to_json(nlohmann::json &j, const JOB &f)
Definition job.cpp:167
KICOMMON_API void from_json(const nlohmann::json &j, JOB &f)
Definition job.cpp:173
#define KICOMMON_API
Definition kicommon.h:27
PCB_LAYER_ID
A quick note on layer IDs:
Definition layer_ids.h:56
@ UNDEFINED_LAYER
Definition layer_ids.h:57