10#ifndef BITABSTRACTARCHIVEHANDLER_HPP
11#define BITABSTRACTARCHIVEHANDLER_HPP
16#include "bit7zlibrary.hpp"
17#include "bitdefines.hpp"
236 bool mRetainDirectories;
The Bit7zLibrary class allows accessing the basic functionalities provided by the 7z DLLs.
Definition bit7zlibrary.hpp:56
Abstract class representing a generic archive handler.
Definition bitabstractarchivehandler.hpp:74
void clearPassword() noexcept
Clear the current password used by the handler.
auto library() const noexcept -> const Bit7zLibrary &
auto overwriteMode() const -> OverwriteMode
virtual auto format() const -> const BitInFormat &=0
void setPasswordCallback(const PasswordCallback &callback)
Sets the function to be called when a password is needed to complete the ongoing operation.
void setFileCallback(const FileCallback &callback)
Sets the function to be called when the current file being processed changes.
void setRatioCallback(const RatioCallback &callback)
Sets the function to be called when the input processed size and current output size of the ongoing o...
virtual void setPassword(const tstring &password)
Sets up a password to be used by the archive handler.
auto password() const -> tstring
auto ratioCallback() const -> RatioCallback
void setProgressCallback(const ProgressCallback &callback)
Sets the function to be called when the processed size of the ongoing operation is updated.
auto totalCallback() const -> TotalCallback
auto progressCallback() const -> ProgressCallback
void setTotalCallback(const TotalCallback &callback)
Sets the function to be called when the total size of an operation is available.
auto fileCallback() const -> FileCallback
auto isPasswordDefined() const noexcept -> bool
auto retainDirectories() const noexcept -> bool
void setOverwriteMode(OverwriteMode mode)
Sets how the handler should behave when it tries to output to an existing file or buffer.
void setRetainDirectories(bool retain) noexcept
Sets whether the operations' output will preserve the input's directory structure or not.
auto passwordCallback() const -> PasswordCallback
The main namespace of the bit7z library.
Definition bit7zlibrary.hpp:30
FilterPolicy
Enumeration representing the policy according to which the archive handler should treat the items tha...
Definition bitabstractarchivehandler.hpp:66
@ Exclude
Do not extract/compress the items that match the pattern.
@ Include
Extract/compress the items that match the pattern.
OverwriteMode
Enumeration representing how a handler should deal when an output file already exists.
Definition bitabstractarchivehandler.hpp:54
@ None
The handler will throw an exception if the output file or buffer already exists.
@ Skip
The handler will skip writing to the output file or buffer.
std::basic_string< tchar > tstring
Definition bittypes.hpp:90
@ None
The creator will throw an exception (unless the OverwriteMode is not None).