KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PROJECT_ARCHIVER_DIR_ZIP_TRAVERSER Class Reference
Inheritance diagram for PROJECT_ARCHIVER_DIR_ZIP_TRAVERSER:

Public Member Functions

 PROJECT_ARCHIVER_DIR_ZIP_TRAVERSER (const std::string &aExtRegex, const wxString &aPrjDir, wxZipOutputStream &aZipFileOutput, REPORTER &aReporter, bool aVerbose)
 
virtual wxDirTraverseResult OnFile (const wxString &aFilename) override
 
virtual wxDirTraverseResult OnDir (const wxString &aDirname) override
 
unsigned long GetUncompressedBytes () const
 
bool GetErrorOccurred () const
 

Private Member Functions

void addFileToZip (const wxString &aFilename)
 

Private Attributes

wxZipOutputStream & m_zipFile
 
wxString m_prjDir
 
std::regex m_fileExtRegex
 
REPORTERm_reporter
 
bool m_errorOccurred
 
bool m_verbose
 
unsigned long m_uncompressedBytes = 0
 

Detailed Description

Definition at line 43 of file project_archiver.cpp.

Constructor & Destructor Documentation

◆ PROJECT_ARCHIVER_DIR_ZIP_TRAVERSER()

PROJECT_ARCHIVER_DIR_ZIP_TRAVERSER::PROJECT_ARCHIVER_DIR_ZIP_TRAVERSER ( const std::string &  aExtRegex,
const wxString &  aPrjDir,
wxZipOutputStream &  aZipFileOutput,
REPORTER aReporter,
bool  aVerbose 
)
inline

Definition at line 46 of file project_archiver.cpp.

Member Function Documentation

◆ addFileToZip()

void PROJECT_ARCHIVER_DIR_ZIP_TRAVERSER::addFileToZip ( const wxString &  aFilename)
inlineprivate

◆ GetErrorOccurred()

bool PROJECT_ARCHIVER_DIR_ZIP_TRAVERSER::GetErrorOccurred ( ) const
inline

Definition at line 89 of file project_archiver.cpp.

References m_errorOccurred.

Referenced by PROJECT_ARCHIVER::Archive().

◆ GetUncompressedBytes()

unsigned long PROJECT_ARCHIVER_DIR_ZIP_TRAVERSER::GetUncompressedBytes ( ) const
inline

Definition at line 84 of file project_archiver.cpp.

References m_uncompressedBytes.

Referenced by PROJECT_ARCHIVER::Archive().

◆ OnDir()

virtual wxDirTraverseResult PROJECT_ARCHIVER_DIR_ZIP_TRAVERSER::OnDir ( const wxString &  aDirname)
inlineoverridevirtual

Definition at line 79 of file project_archiver.cpp.

◆ OnFile()

virtual wxDirTraverseResult PROJECT_ARCHIVER_DIR_ZIP_TRAVERSER::OnFile ( const wxString &  aFilename)
inlineoverridevirtual

Member Data Documentation

◆ m_errorOccurred

bool PROJECT_ARCHIVER_DIR_ZIP_TRAVERSER::m_errorOccurred
private

Definition at line 151 of file project_archiver.cpp.

Referenced by addFileToZip(), and GetErrorOccurred().

◆ m_fileExtRegex

std::regex PROJECT_ARCHIVER_DIR_ZIP_TRAVERSER::m_fileExtRegex
private

Definition at line 148 of file project_archiver.cpp.

Referenced by OnFile().

◆ m_prjDir

wxString PROJECT_ARCHIVER_DIR_ZIP_TRAVERSER::m_prjDir
private

Definition at line 147 of file project_archiver.cpp.

Referenced by addFileToZip(), and OnFile().

◆ m_reporter

REPORTER& PROJECT_ARCHIVER_DIR_ZIP_TRAVERSER::m_reporter
private

Definition at line 149 of file project_archiver.cpp.

Referenced by addFileToZip().

◆ m_uncompressedBytes

unsigned long PROJECT_ARCHIVER_DIR_ZIP_TRAVERSER::m_uncompressedBytes = 0
private

Definition at line 155 of file project_archiver.cpp.

Referenced by addFileToZip(), and GetUncompressedBytes().

◆ m_verbose

bool PROJECT_ARCHIVER_DIR_ZIP_TRAVERSER::m_verbose
private

Definition at line 152 of file project_archiver.cpp.

Referenced by addFileToZip().

◆ m_zipFile

wxZipOutputStream& PROJECT_ARCHIVER_DIR_ZIP_TRAVERSER::m_zipFile
private

Definition at line 145 of file project_archiver.cpp.

Referenced by addFileToZip().


The documentation for this class was generated from the following file: