KiCad PCB EDA Suite
Loading...
Searching...
No Matches
job_diff_base.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,
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, you may find one here:
18 * http://www.gnu.org/licenses/gpl-3.0.html
19 * or you may search the http://www.gnu.org website for the version 3 license,
20 * or you may write to the Free Software Foundation, Inc.,
21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
22 */
23
24#include <jobs/job_diff_base.h>
25
26
28 {
33 } )
34
35
36JOB_DIFF_BASE::JOB_DIFF_BASE( const std::string& aType ) :
37 JOB( aType, false )
38{
39 m_params.emplace_back( new JOB_PARAM<wxString>( "input_a", &m_inputA, m_inputA ) );
40 m_params.emplace_back( new JOB_PARAM<wxString>( "input_b", &m_inputB, m_inputB ) );
41 m_params.emplace_back( new JOB_PARAM<OUTPUT_FORMAT>( "format", &m_format, m_format ) );
42 m_params.emplace_back( new JOB_PARAM<bool>( "exit_code_only",
43 &m_exitCodeOnly, m_exitCodeOnly ) );
44}
JOB_DIFF_BASE(const std::string &aType)
An simple container class that lets us dispatch output jobs to kifaces.
Definition job.h:184
NLOHMANN_JSON_SERIALIZE_ENUM(JOB_DIFF_BASE::OUTPUT_FORMAT, { { JOB_DIFF_BASE::OUTPUT_FORMAT::JSON, "json" }, { JOB_DIFF_BASE::OUTPUT_FORMAT::TEXT, "text" }, { JOB_DIFF_BASE::OUTPUT_FORMAT::PNG, "png" }, { JOB_DIFF_BASE::OUTPUT_FORMAT::SVG, "svg" }, }) JOB_DIFF_BASE