KiCad PCB EDA Suite
Loading...
Searching...
No Matches
job_gerber_info.cpp
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
#include <
jobs/job_gerber_info.h
>
21
22
23
NLOHMANN_JSON_SERIALIZE_ENUM
(
JOB_GERBER_INFO::OUTPUT_FORMAT
, { {
JOB_GERBER_INFO::OUTPUT_FORMAT::TEXT
,
"text"
},
24
{
JOB_GERBER_INFO::OUTPUT_FORMAT::JSON
,
"json"
} } )
25
26
27
JOB_GERBER_INFO::JOB_GERBER_INFO
() :
28
JOB
(
"gerber_info"
, false )
29
{
30
m_params.emplace_back(
new
JOB_PARAM<OUTPUT_FORMAT>
(
"output_format"
, &m_outputFormat, m_outputFormat ) );
31
m_params.emplace_back(
new
JOB_PARAM<bool>
(
"calculate_area"
, &m_calculateArea, m_calculateArea ) );
32
}
JOB_GERBER_INFO::OUTPUT_FORMAT
OUTPUT_FORMAT
Definition
job_gerber_info.h:38
JOB_GERBER_INFO::OUTPUT_FORMAT::JSON
@ JSON
Definition
job_gerber_info.h:40
JOB_GERBER_INFO::OUTPUT_FORMAT::TEXT
@ TEXT
Definition
job_gerber_info.h:39
JOB_GERBER_INFO::JOB_GERBER_INFO
JOB_GERBER_INFO()
JOB_PARAM
Definition
job.h:52
JOB
An simple container class that lets us dispatch output jobs to kifaces.
Definition
job.h:184
NLOHMANN_JSON_SERIALIZE_ENUM
NLOHMANN_JSON_SERIALIZE_ENUM(JOB_GERBER_INFO::OUTPUT_FORMAT, { { JOB_GERBER_INFO::OUTPUT_FORMAT::TEXT, "text" }, { JOB_GERBER_INFO::OUTPUT_FORMAT::JSON, "json" } }) JOB_GERBER_INFO
Definition
job_gerber_info.cpp:23
job_gerber_info.h
src
common
jobs
job_gerber_info.cpp
Generated on Tue Nov 17 2026 00:06:09 for KiCad PCB EDA Suite by
1.13.2