23#include <wx/wfstream.h>
24#include <wx/zipstrm.h>
47 const std::vector<JOB_OUTPUT>& aOutputsToHandle )
54 wxFFileOutputStream ostream( outputPath );
63 wxZipOutputStream zipstream( ostream, -1, wxConvUTF8 );
71 if( !zipstream.Close() )
96 return _(
"Archive" );
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
bool HandleOutputs(const wxString &aBaseTempPath, PROJECT *aProject, const std::vector< JOB_OUTPUT > &aOutputsToHandle) override
Container for project specific data.
const wxString ExpandEnvVarSubstitutions(const wxString &aString, const PROJECT *aProject)
Replace any environment variable & text variable references with their values.
wxString ExpandTextVars(const wxString &aSource, const PROJECT *aProject, int aFlags)
bool AddDirectoryToZip(wxZipOutputStream &aZip, const wxString &aSourceDir, wxString &aErrors, const wxString &aParentDir)
Add a directory and its contents to a zip file.