CZipAddNewFileInfo Struct Reference
#include <ZipArchive.h>
List of all members.
Detailed Description
The structure used as a parameter in
CZipArchive::AddNewFile(CZipAddNewFileInfo& ). Use one of the provided constructors and then adjust the member variables as needed.
- See also:
- Compressing Data
Constructor & Destructor Documentation
| CZipAddNewFileInfo::CZipAddNewFileInfo |
( |
LPCTSTR |
lpszFilePath, |
|
|
bool |
bFullPath = true | |
|
) |
| | [inline] |
| CZipAddNewFileInfo::CZipAddNewFileInfo |
( |
LPCTSTR |
lpszFilePath, |
|
|
LPCTSTR |
lpszFileNameInZip | |
|
) |
| | [inline] |
| CZipAddNewFileInfo::CZipAddNewFileInfo |
( |
CZipAbstractFile * |
pFile, |
|
|
LPCTSTR |
lpszFileNameInZip | |
|
) |
| | [inline] |
Member Function Documentation
| void CZipAddNewFileInfo::Defaults |
( |
|
) |
|
Member Data Documentation
The smartness level of the file adding process. Can be one or combined CZipArchive::Smartness values (you can use the logical OR).
The size of the buffer used while file operations.
Initialize this field to set the source data for compression to be taken from the CZipAbstractFile object (such as CZipMemFile) instead of from a physical file.
- Note:
- You have to leave m_szFilePath empty if you set m_pFile to not
NULL. - The time of a file in zip will be set to the current time, and the attributes to the default file attributes (depending on the system).
- You cannot add directories this way.
The file name that will be stored in the archive. If the file is a directory, there will be a path separator automatically appended. The CZipArchive::SetRootPath method has no effect on this parameter.
The index of an existing file in the archive to be replaced by the file being added. See Modification of Archives: Replacing, Renaming, Deleting and Changing Data for more information. The meaning of its values is as follows:
- >= 0 : the index of the file to be replaced.
ZIP_FILE_INDEX_UNSPECIFIED : do not replace any file and add the new file at the end of the archive (default). Use this value in segmented archives.
- Note:
- If you use an invalid index, the action will fail.
- If you specify the last file in the archive to be replaced, it'll be removed and the usual action will be taken.
- See also:
- CZipArchive::SetAdvanced
CZipArchive::WillBeDuplicated
The documentation for this struct was generated from the following file: