#include <ZipArchive.h>
Public Member Functions | |
CZipAddNewFileInfo (LPCTSTR lpszFilePath, bool bFullPath=true) | |
CZipAddNewFileInfo (LPCTSTR lpszFilePath, LPCTSTR lpszFileNameInZip) | |
CZipAddNewFileInfo (CZipAbstractFile *pFile, LPCTSTR lpszFileNameInZip) | |
void | Defaults () |
Set default values for m_iSmartLevel, m_iReplaceIndex, m_nBufSize and m_iComprLevel. | |
Public Attributes | |
CZipString | m_szFilePath |
the full path to the file to be added; if it is empty you need to set m_pFile | |
CZipString | m_szFileNameInZip |
the file name that will be stored in the archive (if the file is a directory, there is a path separator automatically added at the end); CZipArchive::SetRootPath function has no effect on this parameter | |
bool | m_bFullPath |
It has only the meaning when m_szFileNameInZip is not specified and m_szFilePath is not empty. | |
int | m_iComprLevel |
the compression level, see CZipArchive::OpenNewFile | |
int | m_iSmartLevel |
the smartness level of of the library; can be one or more CZipArchive::Smartness values (you can OR them); if zipsmCheckForEff is specified and due to it the file needs to be reinserted into the archive without a compression and the callback object is specified, the callback object's method Callback is called with the first argument set to DWORD (-1) (you need to remember the last argument if you need the size of the file) | |
int | m_iReplaceIndex |
the index of the existing file in the archive to be replaced by the file being added (the new file goes into the same physical place as the old file - the archive may of course grow or shrink as a result) | |
unsigned long | m_nBufSize |
the size of the buffer used while file operations | |
CZipAbstractFile * | m_pFile |
instead of from a physical file, the data for compression is taken from the CZipAbstractFile object (e.g. |
Definition at line 100 of file ZipArchive.h.
|
It has only the meaning when m_szFileNameInZip is not specified and m_szFilePath is not empty.
in this case if CZipArchive::m_szRootPath is set previously with CZipArchive::SetRootPath and if the beginning of m_szFilePath equals CZipArchive::m_szRootPath then the filename is set to the remaining part of m_szFilePath (you can say to m_szFilePath minus CZipArchive::m_szRootPath) Definition at line 143 of file ZipArchive.h. |
|
the index of the existing file in the archive to be replaced by the file being added (the new file goes into the same physical place as the old file - the archive may of course grow or shrink as a result)
Definition at line 187 of file ZipArchive.h. |
|
instead of from a physical file, the data for compression is taken from the CZipAbstractFile object (e.g. from CZipMemFile)
Definition at line 203 of file ZipArchive.h. |