#include <fileutils/fileutils.h>
Static Public Member Functions | |
static wxZipEntry * | FindEntry (wxZipInputStream &stream, const wxString &filename) |
Get the zip entry for the given filename. | |
static bool | BufferedCopy (wxInputStream &inStream, wxOutputStream &outStream, size_t size) |
Copy a fixed size of data from an input stream to an output stream, using a buffer to speed it up. | |
static bool | CopyStreamToFile (wxInputStream &stream, const wxString &filename, size_t size) |
Copy stream to new file. | |
static bool | CopyEntryToFile (wxZipInputStream &stream, const wxString &filename, wxZipEntry *entry) |
Copy entry to new file. | |
static bool | UnzipTo (const wxString &archive, const wxString &destinationFolder, wxProgressDialog *progressDialog=NULL) |
Unarchive to the given folder, optionally notifying the progress dialog. | |
static bool | GUnzipTo (const wxString &archive, const wxString &destinationFile) |
Unarchive to the given file. | |
static bool | UntarTo (const wxString &archive, const wxString &destinationFolder, wxProgressDialog *progressDialog=NULL) |
Unarchive to the given folder, optionally notifying the progress dialog. | |
static bool | CopyTo (const wxString &relativeTo, const wxArrayString &files, const wxString &destinationFolder, wxProgressDialog *progressDialog=NULL) |
Copy to the given folder, optionally notifying the progress dialog. | |
static int | GetZipEntryCount (const wxString &filename) |
Get the number of entries in the zip file. |
wxZipEntry * ArchiveUtilities::FindEntry | ( | wxZipInputStream & | stream, | |
const wxString & | filename | |||
) | [static] |
Get the zip entry for the given filename.
Archive utilities
bool ArchiveUtilities::BufferedCopy | ( | wxInputStream & | inStream, | |
wxOutputStream & | outStream, | |||
size_t | size | |||
) | [static] |
Copy a fixed size of data from an input stream to an output stream, using a buffer to speed it up.
bool ArchiveUtilities::CopyStreamToFile | ( | wxInputStream & | stream, | |
const wxString & | filename, | |||
size_t | size | |||
) | [static] |
Copy stream to new file.
bool ArchiveUtilities::CopyEntryToFile | ( | wxZipInputStream & | stream, | |
const wxString & | filename, | |||
wxZipEntry * | entry | |||
) | [static] |
Copy entry to new file.
bool ArchiveUtilities::UnzipTo | ( | const wxString & | archive, | |
const wxString & | destinationFolder, | |||
wxProgressDialog * | progressDialog = NULL | |||
) | [static] |
Unarchive to the given folder, optionally notifying the progress dialog.
bool ArchiveUtilities::GUnzipTo | ( | const wxString & | archive, | |
const wxString & | destinationFile | |||
) | [static] |
Unarchive to the given file.
bool ArchiveUtilities::UntarTo | ( | const wxString & | archive, | |
const wxString & | destinationFolder, | |||
wxProgressDialog * | progressDialog = NULL | |||
) | [static] |
Unarchive to the given folder, optionally notifying the progress dialog.
bool ArchiveUtilities::CopyTo | ( | const wxString & | relativeTo, | |
const wxArrayString & | files, | |||
const wxString & | destinationFolder, | |||
wxProgressDialog * | progressDialog = NULL | |||
) | [static] |
Copy to the given folder, optionally notifying the progress dialog.
relativeTo is the folder to be substracted from each file to determine the relative path for the destination file.
int ArchiveUtilities::GetZipEntryCount | ( | const wxString & | filename | ) | [static] |
Get the number of entries in the zip file.