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) |
int | RunJob (JOB *job) |
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 |
Definition at line 34 of file job_dispatcher.h.
JOB_DISPATCHER::JOB_DISPATCHER | ( | KIWAY * | aKiway | ) |
Definition at line 27 of file job_dispatcher.cpp.
References NULL_REPORTER::GetInstance(), m_progressReporter, and m_reporter.
void JOB_DISPATCHER::Register | ( | const std::string & | aJobTypeName, |
std::function< int(JOB *job)> | aHandler | ||
) |
Definition at line 35 of file job_dispatcher.cpp.
References m_jobHandlers.
Referenced by EESCHEMA_JOBS_HANDLER::EESCHEMA_JOBS_HANDLER(), and PCBNEW_JOBS_HANDLER::PCBNEW_JOBS_HANDLER().
int JOB_DISPATCHER::RunJob | ( | JOB * | job | ) |
Definition at line 42 of file job_dispatcher.cpp.
References CLI::EXIT_CODES::ERR_UNKNOWN, JOB::GetType(), and m_jobHandlers.
void JOB_DISPATCHER::SetProgressReporter | ( | PROGRESS_REPORTER * | aReporter | ) |
Definition at line 60 of file job_dispatcher.cpp.
References m_progressReporter.
void JOB_DISPATCHER::SetReporter | ( | REPORTER * | aReporter | ) |
Definition at line 53 of file job_dispatcher.cpp.
References m_reporter.
|
private |
Definition at line 49 of file job_dispatcher.h.
Referenced by Register(), and RunJob().
|
protected |
Definition at line 44 of file job_dispatcher.h.
Referenced by PCBNEW_JOBS_HANDLER::JobExportDrc(), and EESCHEMA_JOBS_HANDLER::JobSchErc().
|
protected |
Definition at line 46 of file job_dispatcher.h.
Referenced by JOB_DISPATCHER(), PCBNEW_JOBS_HANDLER::JobExportIpc2581(), EESCHEMA_JOBS_HANDLER::JobSchErc(), and SetProgressReporter().
|
protected |
Definition at line 45 of file job_dispatcher.h.
Referenced by PCBNEW_JOBS_HANDLER::doFpExportSvg(), EESCHEMA_JOBS_HANDLER::doSymExportSvg(), EESCHEMA_JOBS_HANDLER::InitRenderSettings(), JOB_DISPATCHER(), EESCHEMA_JOBS_HANDLER::JobExportBom(), PCBNEW_JOBS_HANDLER::JobExportDrc(), PCBNEW_JOBS_HANDLER::JobExportDrill(), PCBNEW_JOBS_HANDLER::JobExportDxf(), PCBNEW_JOBS_HANDLER::JobExportFpSvg(), PCBNEW_JOBS_HANDLER::JobExportFpUpgrade(), PCBNEW_JOBS_HANDLER::JobExportGerber(), PCBNEW_JOBS_HANDLER::JobExportGerbers(), PCBNEW_JOBS_HANDLER::JobExportIpc2581(), EESCHEMA_JOBS_HANDLER::JobExportNetlist(), PCBNEW_JOBS_HANDLER::JobExportPdf(), EESCHEMA_JOBS_HANDLER::JobExportPlot(), PCBNEW_JOBS_HANDLER::JobExportPos(), 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().