Skip Navigation Links
Skip Navigation LinksHome > ZipArchive > How to Use > API Documentation
The ZipArchive Library
CZipSplitNamesHandler Class Referenceabstract

#include <ZipSplitNamesHandler.h>

Inheritance diagram for CZipSplitNamesHandler:
Inheritance graph

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 &ZIP_UNUSED szVolumePath) const
virtual void Initialize (const CZipString &ZIP_UNUSED szArchiveName)

Detailed Description

Generates and parses names for split archive volumes. Base class for split names handlers.

See also
Segmented Archives: Splitting and Spanning

Member Enumeration Documentation

◆ Flags

Flags for the GetVolumeName method.

Enumerator
flNone 

No special flags.

flLast 

The volume is the last volume in the archive.

flExisting 

The archive is an existing archive.

Constructor & Destructor Documentation

◆ CZipSplitNamesHandler()

CZipSplitNamesHandler::CZipSplitNamesHandler ( )
inline

Initializes a new instance of the CZipSplitNamesHandler class.

Member Function Documentation

◆ GetVolumeName()

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.

Parameters
szArchiveNameThe archive path provided when opening an archive.
uCurrentVolumeThe current volume number. The first volume number is 1.
flagsAdditional flags. It can be one or more of the Flags values.

Implemented in CZipBinSplitNamesHandler, and CZipRegularSplitNamesHandler.

◆ GetVolumeNumber()

virtual ZIP_VOLUME_TYPE CZipSplitNamesHandler::GetVolumeNumber ( const CZipString &ZIP_UNUSED szVolumePath) const
inlinevirtual

Returns the volume number for the given volume path.

Parameters
szVolumePathThe volume path.
Returns
The volume number parsed from the szVolumePath. The first volume number is 1. Return 0 to indicate an error during parsing.
Note
Implementing of this method is only required for a handler for binary split archives.

◆ Initialize()

virtual void CZipSplitNamesHandler::Initialize ( const CZipString &ZIP_UNUSED szArchiveName)
inlinevirtual

Called when opening an archive.

Parameters
szArchiveNameThe archive path provided when opening an archive.

The documentation for this class was generated from the following file:
Back To Top Up