#include <ZipSplitNamesHandler.h>
Public Types | |
enum | Flags { flNone = 0x00, flLast = 0x01, flExisting = 0x02 } |
Public Member Functions | |
CZipSplitNamesHandler () | |
virtual CZipString | GetVolumeName (const CZipString &szArchiveName, ZIP_VOLUME_TYPE uCurrentVolume, ZipArchiveLib::CBitFlag flags) const =0 |
virtual ZIP_VOLUME_TYPE | GetVolumeNumber (const CZipString &szVolumePath) const |
virtual void | Initialize (const CZipString &szArchiveName) |
Definition at line 42 of file ZipSplitNamesHandler.h.
Flags for the GetVolumeName method.
flNone | No special flags. |
flLast | The volume is the last volume in the archive. |
flExisting | The archive is an existing archive. |
Definition at line 49 of file ZipSplitNamesHandler.h.
CZipSplitNamesHandler::CZipSplitNamesHandler | ( | ) | [inline] |
Initializes a new instance of the CZipSplitNamesHandler class.
Definition at line 59 of file ZipSplitNamesHandler.h.
virtual CZipString CZipSplitNamesHandler::GetVolumeName | ( | const CZipString & | szArchiveName, | |
ZIP_VOLUME_TYPE | uCurrentVolume, | |||
ZipArchiveLib::CBitFlag | flags | |||
) | const [pure virtual] |
Returns the path for the given volume number.
szArchiveName | The archive path provided when opening an archive. | |
uCurrentVolume | The current volume number. The first volume number is 1 . | |
flags | Additional flags. It can be one or more of the Flags values. |
Implemented in CZipRegularSplitNamesHandler, and CZipBinSplitNamesHandler.
virtual ZIP_VOLUME_TYPE CZipSplitNamesHandler::GetVolumeNumber | ( | const CZipString & | szVolumePath | ) | const [inline, virtual] |
Returns the volume number for the given volume path.
szVolumePath | The volume path. |
1
. Return 0
to indicate an error during parsing.Reimplemented in CZipBinSplitNamesHandler.
Definition at line 102 of file ZipSplitNamesHandler.h.
virtual void CZipSplitNamesHandler::Initialize | ( | const CZipString & | szArchiveName | ) | [inline, virtual] |
Called when opening an archive.
szArchiveName | The archive path provided when opening an archive. |
Reimplemented in CZipRegularSplitNamesHandler.
Definition at line 70 of file ZipSplitNamesHandler.h.