|
KiCad PCB EDA Suite
|
#include <jobs_output_folder.h>
Public Member Functions | |
| JOBS_OUTPUT_FOLDER () | |
| bool | HandleOutputs (const wxString &aBaseTempPath, PROJECT *aProject, const std::vector< wxString > &aPathsWithOverwriteDisallowed, const std::vector< JOB_OUTPUT > &aOutputsToHandle, std::optional< wxString > &aResolvedOutputPath) override |
| bool | OutputPrecheck () override |
| Checks if the output process can proceed before doing anything else This can include user prompts. | |
| void | FromJson (const nlohmann::json &j) override |
| void | ToJson (nlohmann::json &j) const override |
| wxString | GetDefaultDescription () const override |
| void | SetOutputPath (const wxString &aPath) |
| wxString | GetOutputPath () const |
Static Public Member Functions | |
| static wxString | ResolveOutputPath (const wxString &aPath, const PROJECT *aProject) |
| Expand variables and a leading '~' in a destination path, then anchor a relative result at the project directory so the output lands in the same place whatever the working directory. | |
Protected Attributes | |
| wxString | m_outputPath |
Definition at line 25 of file jobs_output_folder.h.
| JOBS_OUTPUT_FOLDER::JOBS_OUTPUT_FOLDER | ( | ) |
Definition at line 26 of file jobs_output_folder.cpp.
References JOBS_OUTPUT_HANDLER::JOBS_OUTPUT_HANDLER().
|
overridevirtual |
Implements JOBS_OUTPUT_HANDLER.
Definition at line 75 of file jobs_output_folder.cpp.
References JOBS_OUTPUT_HANDLER::m_outputPath.
|
overridevirtual |
Reimplemented from JOBS_OUTPUT_HANDLER.
Definition at line 87 of file jobs_output_folder.cpp.
References _.
|
inlineinherited |
Definition at line 57 of file jobs_output.h.
References m_outputPath.
|
overridevirtual |
Implements JOBS_OUTPUT_HANDLER.
Definition at line 33 of file jobs_output_folder.cpp.
References CopyDirectory(), JOBS_OUTPUT_HANDLER::m_outputPath, and JOBS_OUTPUT_HANDLER::ResolveOutputPath().
|
overridevirtual |
Checks if the output process can proceed before doing anything else This can include user prompts.
Reimplemented from JOBS_OUTPUT_HANDLER.
Definition at line 66 of file jobs_output_folder.cpp.
References JOBS_OUTPUT_HANDLER::m_outputPath.
|
staticinherited |
Expand variables and a leading '~' in a destination path, then anchor a relative result at the project directory so the output lands in the same place whatever the working directory.
| aPath | is the destination path as stored in the jobset. |
| aProject | is the project used for variable expansion and as the base for relative paths. May be null, in which case a relative path is left relative. |
Definition at line 24 of file jobs_output.cpp.
References path, and ResolveProjectPath().
Referenced by BOOST_AUTO_TEST_CASE(), JOBS_OUTPUT_ARCHIVE::HandleOutputs(), JOBS_OUTPUT_FOLDER::HandleOutputs(), and PANEL_DESTINATION::OnOpenOutput().
|
inlineinherited |
Definition at line 56 of file jobs_output.h.
References m_outputPath.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and KICAD_MANAGER_FRAME::OpenJobsFile().
|
overridevirtual |
Implements JOBS_OUTPUT_HANDLER.
Definition at line 81 of file jobs_output_folder.cpp.
References JOBS_OUTPUT_HANDLER::m_outputPath.
|
protectedinherited |
Definition at line 72 of file jobs_output.h.
Referenced by JOBS_OUTPUT_ARCHIVE::FromJson(), JOBS_OUTPUT_FOLDER::FromJson(), GetOutputPath(), JOBS_OUTPUT_ARCHIVE::HandleOutputs(), JOBS_OUTPUT_FOLDER::HandleOutputs(), JOBS_OUTPUT_ARCHIVE::OutputPrecheck(), JOBS_OUTPUT_FOLDER::OutputPrecheck(), SetOutputPath(), JOBS_OUTPUT_ARCHIVE::ToJson(), and JOBS_OUTPUT_FOLDER::ToJson().