22#include <wx/filename.h>
24JOB::JOB(
const std::string& aType,
bool aOutputIsDirectory ) :
27 m_tempOutputDirectory(),
29 m_outputPathIsDirectory( aOutputIsDirectory )
81 wxFileName fn( aDirPath + wxFileName::GetPathSeparator() + aFileName.GetFullPath() );
104 return fn.GetFullPath();
109 if( fn.IsAbsolute() )
120 return fn.GetFullPath();
166 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
JOB(const std::string &aType, bool aOutputIsDirectory)
virtual wxString GetDescription()
wxString GetFullOutputPath() const
bool OutputPathFullSpecified() const
wxString m_tempOutputDirectory
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)