AxArchiveUtilities Class Reference

Miscellaneous archive functions. More...

#include <ax/ax_utils.h>

List of all members.

Public Member Functions

 AxArchiveUtilities ()

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.


Detailed Description

Miscellaneous archive functions.


Constructor & Destructor Documentation

AxArchiveUtilities::AxArchiveUtilities (  )  [inline]


Member Function Documentation

wxZipEntry * AxArchiveUtilities::FindEntry ( wxZipInputStream &  stream,
const wxString &  filename 
) [static]

Get the zip entry for the given filename.

bool AxArchiveUtilities::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 AxArchiveUtilities::CopyStreamToFile ( wxInputStream stream,
const wxString &  filename,
size_t  size 
) [static]

Copy stream to new file.

bool AxArchiveUtilities::CopyEntryToFile ( wxZipInputStream &  stream,
const wxString &  filename,
wxZipEntry *  entry 
) [static]

Copy entry to new file.

bool AxArchiveUtilities::UnzipTo ( const wxString &  archive,
const wxString &  destinationFolder,
wxProgressDialog *  progressDialog = NULL 
) [static]

Unarchive to the given folder, optionally notifying the progress dialog.

bool AxArchiveUtilities::GUnzipTo ( const wxString &  archive,
const wxString &  destinationFile 
) [static]

Unarchive to the given file.

bool AxArchiveUtilities::UntarTo ( const wxString &  archive,
const wxString &  destinationFolder,
wxProgressDialog *  progressDialog = NULL 
) [static]

Unarchive to the given folder, optionally notifying the progress dialog.

bool AxArchiveUtilities::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 AxArchiveUtilities::GetZipEntryCount ( const wxString &  filename  )  [static]

Get the number of entries in the zip file.


The documentation for this class was generated from the following files:
Generated on Wed May 6 19:20:20 2009 for AxTk by  doxygen 1.5.1