AxArchiveUtilities Class Reference
[Basic AxTk UI classes]

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

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::CopyEntryToFile ( wxZipInputStream &  stream,
const wxString &  filename,
wxZipEntry *  entry 
) [static]

Copy entry to new file.

bool AxArchiveUtilities::CopyStreamToFile ( wxInputStream stream,
const wxString &  filename,
size_t  size 
) [static]

Copy stream to new file.

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.

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

Get the zip entry for the given filename.

int AxArchiveUtilities::GetZipEntryCount ( const wxString &  filename  )  [static]

Get the number of entries in the zip file.

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::UnzipTo ( const wxString &  archive,
const wxString &  destinationFolder,
wxProgressDialog *  progressDialog = NULL 
) [static]

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


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

Generated on Wed May 6 19:22:06 2009 for AxTk by  doxygen 1.5.8