| 
    KiCad PCB EDA Suite
    
   | 
 
#include <project_archiver.h>
Public Member Functions | |
| PROJECT_ARCHIVER () | |
| ~PROJECT_ARCHIVER ()=default | |
Static Public Member Functions | |
| static bool | AreZipArchivesIdentical (const wxString &aZipFileA, const wxString &aZipFileB, REPORTER &aReporter) | 
| Compare the CRCs of all the files in zip archive to determine whether the archives are identical.   | |
| static bool | Archive (const wxString &aSrcDir, const wxString &aDestFile, REPORTER &aReporter, bool aVerbose=true, bool aIncludeExtraFiles=false) | 
| Create an archive of the project.   | |
| static bool | Unarchive (const wxString &aSrcFile, const wxString &aDestDir, REPORTER &aReporter) | 
| Extract an archive of the current project over existing files.   | |
Definition at line 32 of file project_archiver.h.
| PROJECT_ARCHIVER::PROJECT_ARCHIVER | ( | ) | 
Definition at line 74 of file project_archiver.cpp.
      
  | 
  default | 
References Archive(), AreZipArchivesIdentical(), and Unarchive().
      
  | 
  static | 
Create an archive of the project.
| aSrcFile | is the full path to the project to be archived. | 
| aDestFile | is the full path to the zip file to be created. | 
| aReporter | is used to report status. | 
| aVerbose | controls the verbosity of reported status messages. | 
| aIncludeExtraFiles | if true will archive legacy and output files. | 
Definition at line 179 of file project_archiver.cpp.
References _, FILEEXT::DesignBlockLibraryTableFileName, FILEEXT::DesignRulesFileExtension, FILEEXT::DrawingSheetFileExtension, FILEEXT::DrillFileExtension, FILEEXT::FootprintAssignmentFileExtension, FILEEXT::FootprintLibraryTableFileName, FILEEXT::FootprintPlaceFileExtension, FILEEXT::GencadFileExtension, FILEEXT::GerberFileExtensionsRegex, FILEEXT::GerberJobFileExtension, PROJECT_ARCHIVER_DIR_ZIP_TRAVERSER::GetFilesToArchive(), FILEEXT::IbisFileExtension, FILEEXT::IpcD356FileExtension, FILEEXT::JsonFileExtension, FILEEXT::KiCadFootprintFileExtension, FILEEXT::KiCadJobSetFileExtension, FILEEXT::KiCadPcbFileExtension, FILEEXT::KiCadSchematicFileExtension, FILEEXT::KiCadSymbolLibFileExtension, FILEEXT::LegacyFootprintLibPathExtension, FILEEXT::LegacyPcbFileExtension, FILEEXT::LegacyProjectFileExtension, FILEEXT::LegacySchematicFileExtension, FILEEXT::LegacySymbolDocumentFileExtension, FILEEXT::LegacySymbolLibFileExtension, FILEEXT::NetlistFileExtension, FILEEXT::PdfFileExtension, FILEEXT::ProjectFileExtension, FILEEXT::ProjectLocalSettingsFileExtension, FILEEXT::PythonFileExtension, REPORTER::Report(), FILEEXT::ReportFileExtension, RPT_SEVERITY_ERROR, RPT_SEVERITY_INFO, FILEEXT::SpiceFileExtension, FILEEXT::SpiceModelFileExtension, FILEEXT::SpiceSubcircuitFileExtension, FILEEXT::StepFileAbrvExtension, FILEEXT::StepFileExtension, FILEEXT::SymbolLibraryTableFileName, FILEEXT::TextFileExtension, FILEEXT::VrmlFileExtension, and FILEEXT::WorkbookFileExtension.
Referenced by KICAD_MANAGER_CONTROL::ArchiveProject(), SETTINGS_MANAGER::BackupProject(), and ~PROJECT_ARCHIVER().
      
  | 
  static | 
Compare the CRCs of all the files in zip archive to determine whether the archives are identical.
| aZipFileA | is the full path to the first zip. | 
| aZipFileB | is the full path to the second zip. | 
| aReporter | is used to report status. | 
Definition at line 79 of file project_archiver.cpp.
References _, REPORTER::Report(), and RPT_SEVERITY_ERROR.
Referenced by SETTINGS_MANAGER::TriggerBackupIfNeeded(), and ~PROJECT_ARCHIVER().
      
  | 
  static | 
Extract an archive of the current project over existing files.
| aSrcFile | is the full path to the archive to extract. | 
| aDestDir | is the target directory to unarchive to. | 
| aReporter | is used to report status. | 
Definition at line 113 of file project_archiver.cpp.
References _, CopyStreamData(), REPORTER::Report(), RPT_SEVERITY_ERROR, and RPT_SEVERITY_INFO.
Referenced by KICAD_MANAGER_FRAME::UnarchiveFiles(), and ~PROJECT_ARCHIVER().