Skip Navigation Links
Skip Navigation LinksHome > ZipArchive > How to Use > API Documentation
The ZipArchive Library
CZipBinSplitNamesHandler Class Reference

#include <ZipSplitNamesHandler.h>

Inheritance diagram for CZipBinSplitNamesHandler:
Inheritance graph

Public Member Functions

CZipString GetVolumeName (const CZipString &szArchiveName, ZIP_VOLUME_TYPE uCurrentVolume, ZipArchiveLib::CBitFlag flags) const
ZIP_VOLUME_TYPE GetVolumeNumber (const CZipString &szArchiveName) const
Public Member Functions inherited from CZipSplitNamesHandler
 CZipSplitNamesHandler ()
virtual ZIP_VOLUME_TYPE GetVolumeNumber (const CZipString &ZIP_UNUSED szVolumePath) const
virtual void Initialize (const CZipString &ZIP_UNUSED szArchiveName)

Additional Inherited Members

Public Types inherited from CZipSplitNamesHandler
enum  Flags { flNone = 0x00 , flLast = 0x01 , flExisting = 0x02 }

Detailed Description

Generates names for binary split archives.

See also
Segmented Archives: Splitting and Spanning

Member Function Documentation

◆ GetVolumeName()

CZipString CZipBinSplitNamesHandler::GetVolumeName ( const CZipString & szArchiveName,
ZIP_VOLUME_TYPE uCurrentVolume,
ZipArchiveLib::CBitFlag flags ) const
inlinevirtual

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.

Implements CZipSplitNamesHandler.

◆ GetVolumeNumber()

ZIP_VOLUME_TYPE CZipBinSplitNamesHandler::GetVolumeNumber ( const CZipString & szArchiveName) const
inline

Gets the volume number from the archive filename.

Parameters
szArchiveNameThe archive filename.
Returns
The volume number extracted from the file extension.

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