22#include <wx/filename.h>
24JOB::JOB(
const std::string& aType,
bool aOutputIsDirectory,
bool aIsCli ) :
28 m_tempOutputDirectory(),
30 m_outputPathIsDirectory( aOutputIsDirectory )
82 wxFileName fn( aDirPath + wxFileName::GetPathSeparator() + aFileName.GetFullPath() );
105 return fn.GetFullPath();
122 return fn.GetFullPath();
168 m_jsonPath( aJsonPath )
JOB_PARAM_BASE(const std::string &aJsonPath)
An simple container class that lets us dispatch output jobs to kifaces.
virtual void FromJson(const nlohmann::json &j)
std::vector< JOB_PARAM_BASE * > m_params
virtual wxString GetDescription()
wxString GetFullOutputPath() const
bool OutputPathFullSpecified() const
wxString m_tempOutputDirectory
JOB(const std::string &aType, bool aOutputIsDirectory, bool aIsCli)
bool m_outputPathIsDirectory
virtual void ToJson(nlohmann::json &j) const
void SetTempOutputDirectory(const wxString &aBase)
void SetOutputPath(const wxString &aPath)
void PrependDirectoryToPath(wxFileName &aFileName, const wxString aDirPath)
KICOMMON_API void to_json(nlohmann::json &j, const JOB &f)
KICOMMON_API void from_json(const nlohmann::json &j, JOB &f)