KiCad PCB EDA Suite
Loading...
Searching...
No Matches
jobs_output_archive.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 (C) 2024 Mark Roszko <
[email protected]
>
5
* Copyright The KiCad Developers, see AUTHORS.txt for contributors.
6
*
7
* This program is free software: you can redistribute it and/or modify it
8
* under the terms of the GNU General Public License as published by the
9
* Free Software Foundation, either version 3 of the License, or (at your
10
* option) any later version.
11
*
12
* This program is distributed in the hope that it will be useful, but
13
* WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License along
18
* with this program. If not, see <http://www.gnu.org/licenses/>.
19
*/
20
21
#pragma once
22
23
#include <
jobs/jobs_output.h
>
24
25
class
KICOMMON_API
JOBS_OUTPUT_ARCHIVE
:
public
JOBS_OUTPUT_HANDLER
26
{
27
public
:
28
JOBS_OUTPUT_ARCHIVE
();
29
30
enum class
FORMAT
31
{
32
ZIP
33
};
34
35
bool
HandleOutputs
(
const
wxString& aBaseTempPath,
36
PROJECT
* aProject,
37
const
std::vector<wxString>& aPathsWithOverwriteDisallowed,
38
const
std::vector<JOB_OUTPUT>& aOutputsToHandle,
39
std::optional<wxString>& aResolvedOutputPath )
override
;
40
bool
OutputPrecheck
()
override
;
41
42
void
FromJson
(
const
nlohmann::json& j )
override
;
43
void
ToJson
( nlohmann::json& j )
const override
;
44
45
FORMAT
GetFormat
()
const
{
return
m_format
; }
46
void
SetFormat
(
FORMAT
format ) {
m_format
= format; }
47
48
wxString
GetDefaultDescription
()
const override
;
49
50
private
:
51
FORMAT
m_format
;
52
};
JOBS_OUTPUT_ARCHIVE::FORMAT
FORMAT
Definition
jobs_output_archive.h:31
JOBS_OUTPUT_ARCHIVE::FORMAT::ZIP
@ ZIP
Definition
jobs_output_archive.h:32
JOBS_OUTPUT_ARCHIVE::JOBS_OUTPUT_ARCHIVE
JOBS_OUTPUT_ARCHIVE()
Definition
jobs_output_archive.cpp:29
JOBS_OUTPUT_ARCHIVE::SetFormat
void SetFormat(FORMAT format)
Definition
jobs_output_archive.h:46
JOBS_OUTPUT_ARCHIVE::GetFormat
FORMAT GetFormat() const
Definition
jobs_output_archive.h:45
JOBS_OUTPUT_ARCHIVE::m_format
FORMAT m_format
Definition
jobs_output_archive.h:51
JOBS_OUTPUT_HANDLER::OutputPrecheck
virtual bool OutputPrecheck()
Checks if the output process can proceed before doing anything else This can include user prompts.
Definition
jobs_output.h:45
JOBS_OUTPUT_HANDLER::HandleOutputs
virtual bool HandleOutputs(const wxString &aBaseTempPath, PROJECT *aProject, const std::vector< wxString > &aPathsWithOverwriteDisallowed, const std::vector< JOB_OUTPUT > &aOutputsToHandle, std::optional< wxString > &aResolvedOutputPath)=0
JOBS_OUTPUT_HANDLER::GetDefaultDescription
virtual wxString GetDefaultDescription() const
Definition
jobs_output.h:59
JOBS_OUTPUT_HANDLER::ToJson
virtual void ToJson(nlohmann::json &j) const =0
JOBS_OUTPUT_HANDLER::FromJson
virtual void FromJson(const nlohmann::json &j)=0
JOBS_OUTPUT_HANDLER::JOBS_OUTPUT_HANDLER
JOBS_OUTPUT_HANDLER()
Definition
jobs_output.h:33
PROJECT
Container for project specific data.
Definition
project.h:65
jobs_output.h
KICOMMON_API
#define KICOMMON_API
Definition
kicommon.h:28
src
common
jobs
jobs_output_archive.h
Generated on Sun Feb 1 2026 00:08:21 for KiCad PCB EDA Suite by
1.13.2