KiCad PCB EDA Suite
Loading...
Searching...
No Matches
jobset.cpp File Reference
#include <i18n_utility.h>
#include <nlohmann/json.hpp>
#include <settings/parameters.h>
#include <wildcards_and_files_ext.h>
#include <jobs/jobset.h>
#include <jobs/job_registry.h>
#include <jobs/jobs_output_folder.h>
#include <jobs/jobs_output_archive.h>
#include <kiid.h>
#include <reporter.h>
#include <algorithm>

Go to the source code of this file.

Functions

 NLOHMANN_JSON_SERIALIZE_ENUM (JOBSET_OUTPUT_TYPE, { { JOBSET_OUTPUT_TYPE::FOLDER, "folder" }, { JOBSET_OUTPUT_TYPE::ARCHIVE, "archive" } }) KICOMMON_API void to_json(nlohmann
 
KICOMMON_API void from_json (const nlohmann::json &j, JOBSET_JOB &f)
 
KICOMMON_API void to_json (nlohmann::json &j, const JOBSET_OUTPUT &f)
 
KICOMMON_API void from_json (const nlohmann::json &j, JOBSET_OUTPUT &f)
 

Variables

const int jobsFileSchemaVersion = 1
 
KICOMMON_API std::map< JOBSET_OUTPUT_TYPE, JOBSET_OUTPUT_TYPE_INFOJobsetOutputTypeInfos
 
template class KICOMMON_API PARAM_LIST< JOBSET_JOB >
 
template class KICOMMON_API PARAM_LIST< JOBSET_OUTPUT >
 

Function Documentation

◆ from_json() [1/2]

KICOMMON_API void from_json ( const nlohmann::json &  j,
JOBSET_JOB f 
)

◆ from_json() [2/2]

◆ NLOHMANN_JSON_SERIALIZE_ENUM()

NLOHMANN_JSON_SERIALIZE_ENUM ( JOBSET_OUTPUT_TYPE  ,
{ { JOBSET_OUTPUT_TYPE::FOLDER, "folder" }, { JOBSET_OUTPUT_TYPE::ARCHIVE, "archive" } }   
)

Definition at line 47 of file jobset.cpp.

◆ to_json()

Variable Documentation

◆ JobsetOutputTypeInfos

KICOMMON_API std::map<JOBSET_OUTPUT_TYPE, JOBSET_OUTPUT_TYPE_INFO> JobsetOutputTypeInfos
Initial value:
= {
{ JOBSET_OUTPUT_TYPE::FOLDER,
{ _HKI( "Folder" ), BITMAPS::small_folder, true, "" } },
{ JOBSET_OUTPUT_TYPE::ARCHIVE,
{ _HKI( "Archive" ), BITMAPS::zip, false, FILEEXT::ZipFileWildcard() } },
}
@ small_folder
#define _HKI(x)
static wxString ZipFileWildcard()

Definition at line 39 of file jobset.cpp.

Referenced by DIALOG_JOBSET_OUTPUT_OPTIONS::DIALOG_JOBSET_OUTPUT_OPTIONS(), PANEL_JOBSET::OnAddOutputClick(), DIALOG_JOBSET_OUTPUT_OPTIONS::onOutputPathBrowseClicked(), and PANEL_JOBSET_OUTPUT::PANEL_JOBSET_OUTPUT().

◆ jobsFileSchemaVersion

const int jobsFileSchemaVersion = 1

Definition at line 36 of file jobset.cpp.

◆ PARAM_LIST< JOBSET_JOB >

template class KICOMMON_API PARAM_LIST< JOBSET_JOB >

Definition at line 332 of file jobset.cpp.

◆ PARAM_LIST< JOBSET_OUTPUT >

Definition at line 333 of file jobset.cpp.