KiCad PCB EDA Suite
|
#include <job_dispatcher.h>
Public Member Functions | |
JOB_DISPATCHER (KIWAY *aKiway) | |
void | Register (const std::string &aJobTypeName, std::function< int(JOB *job)> aHandler, std::function< bool(JOB *job, wxWindow *aParent)> aConfigHandler) |
int | RunJob (JOB *aJob) |
bool | HandleJobConfig (JOB *aJob, wxWindow *aParent) |
void | SetReporter (REPORTER *aReporter) |
void | SetProgressReporter (PROGRESS_REPORTER *aReporter) |
Protected Attributes | |
KIWAY * | m_kiway |
REPORTER * | m_reporter |
PROGRESS_REPORTER * | m_progressReporter |
Private Attributes | |
std::map< std::string, std::function< int(JOB *job)> > | m_jobHandlers |
std::map< std::string, std::function< bool(JOB *job, wxWindow *aParent)> > | m_jobConfigHandlers |
Definition at line 35 of file job_dispatcher.h.
JOB_DISPATCHER::JOB_DISPATCHER | ( | KIWAY * | aKiway | ) |
Definition at line 28 of file job_dispatcher.cpp.
References NULL_REPORTER::GetInstance(), m_progressReporter, and m_reporter.
bool JOB_DISPATCHER::HandleJobConfig | ( | JOB * | aJob, |
wxWindow * | aParent | ||
) |
Definition at line 58 of file job_dispatcher.cpp.
References JOB::GetType(), and m_jobConfigHandlers.
void JOB_DISPATCHER::Register | ( | const std::string & | aJobTypeName, |
std::function< int(JOB *job)> | aHandler, | ||
std::function< bool(JOB *job, wxWindow *aParent)> | aConfigHandler | ||
) |
Definition at line 36 of file job_dispatcher.cpp.
References m_jobConfigHandlers, and m_jobHandlers.
Referenced by EESCHEMA_JOBS_HANDLER::EESCHEMA_JOBS_HANDLER(), and PCBNEW_JOBS_HANDLER::PCBNEW_JOBS_HANDLER().
int JOB_DISPATCHER::RunJob | ( | JOB * | aJob | ) |
Definition at line 45 of file job_dispatcher.cpp.
References JOB::ClearExistingOutputs(), CLI::EXIT_CODES::ERR_UNKNOWN, JOB::GetType(), and m_jobHandlers.
void JOB_DISPATCHER::SetProgressReporter | ( | PROGRESS_REPORTER * | aReporter | ) |
Definition at line 76 of file job_dispatcher.cpp.
References m_progressReporter.
void JOB_DISPATCHER::SetReporter | ( | REPORTER * | aReporter | ) |
Definition at line 69 of file job_dispatcher.cpp.
References m_reporter.
|
private |
Definition at line 54 of file job_dispatcher.h.
Referenced by HandleJobConfig(), and Register().
|
private |
Definition at line 52 of file job_dispatcher.h.
Referenced by Register(), and RunJob().
|
protected |
Definition at line 47 of file job_dispatcher.h.
Referenced by PCBNEW_JOBS_HANDLER::JobExportDrc(), and EESCHEMA_JOBS_HANDLER::JobSchErc().
|
protected |
Definition at line 49 of file job_dispatcher.h.
Referenced by JOB_DISPATCHER(), PCBNEW_JOBS_HANDLER::JobExportIpc2581(), EESCHEMA_JOBS_HANDLER::JobSchErc(), and SetProgressReporter().
|
protected |
Definition at line 48 of file job_dispatcher.h.
Referenced by PCBNEW_JOBS_HANDLER::doFpExportSvg(), EESCHEMA_JOBS_HANDLER::doSymExportSvg(), PCBNEW_JOBS_HANDLER::getBoard(), EESCHEMA_JOBS_HANDLER::getSchematic(), EESCHEMA_JOBS_HANDLER::InitRenderSettings(), JOB_DISPATCHER(), EESCHEMA_JOBS_HANDLER::JobExportBom(), PCBNEW_JOBS_HANDLER::JobExportDrc(), PCBNEW_JOBS_HANDLER::JobExportDrill(), PCBNEW_JOBS_HANDLER::JobExportFpSvg(), PCBNEW_JOBS_HANDLER::JobExportFpUpgrade(), PCBNEW_JOBS_HANDLER::JobExportGencad(), PCBNEW_JOBS_HANDLER::JobExportGerber(), PCBNEW_JOBS_HANDLER::JobExportGerbers(), PCBNEW_JOBS_HANDLER::JobExportIpc2581(), EESCHEMA_JOBS_HANDLER::JobExportNetlist(), EESCHEMA_JOBS_HANDLER::JobExportPlot(), EESCHEMA_JOBS_HANDLER::JobExportPythonBom(), PCBNEW_JOBS_HANDLER::JobExportRender(), PCBNEW_JOBS_HANDLER::JobExportStep(), PCBNEW_JOBS_HANDLER::JobExportSvg(), EESCHEMA_JOBS_HANDLER::JobSchErc(), EESCHEMA_JOBS_HANDLER::JobSymExportSvg(), EESCHEMA_JOBS_HANDLER::JobSymUpgrade(), PCBNEW_JOBS_HANDLER::loadOverrideDrawingSheet(), and SetReporter().