KiCad PCB EDA Suite
Loading...
Searching...
No Matches
jobset.cpp File Reference
#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 <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
 
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 
)

Definition at line 53 of file jobset.cpp.

References JOBSET_JOB::m_id, JOBSET_JOB::m_job, and JOBSET_JOB::m_type.

◆ 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 36 of file jobset.cpp.

References ARCHIVE, and FOLDER.

◆ to_json()

KICOMMON_API void to_json ( nlohmann::json &  j,
const JOBSET_OUTPUT f 
)

Variable Documentation

◆ jobsFileSchemaVersion

const int jobsFileSchemaVersion = 1

Definition at line 34 of file jobset.cpp.

◆ PARAM_LIST< JOBSET_JOB >

template class KICOMMON_API PARAM_LIST< JOBSET_JOB >

Definition at line 264 of file jobset.cpp.

◆ PARAM_LIST< JOBSET_OUTPUT >

Definition at line 265 of file jobset.cpp.