|
bit7z 4.1.0
A C++ library for interfacing with the 7-zip shared libs.
|
The BitArchiveReader class allows reading metadata of archives, as well as extracting them. More...
#include <bit7z/bitarchivereader.hpp>
Public Member Functions | |
| BitArchiveReader (const Bit7zLibrary &lib, buffer_t &&inArchive, ArchiveStartOffset archiveStart, const BitInFormat &format=BitFormat::Auto, const tstring &password={})=delete | |
| Deleted overload preventing the use of a temporary input buffer. | |
| BitArchiveReader (const Bit7zLibrary &lib, buffer_t &&inArchive, const BitInFormat &format=BitFormat::Auto, const tstring &password={})=delete | |
| Deleted overload preventing the use of a temporary input buffer. | |
| BitArchiveReader (const Bit7zLibrary &lib, const BitInputArchive &inArchive, ArchiveStartOffset archiveStart, const BitInFormat &format=BitFormat::Auto, const tstring &password={}) | |
| Constructs a BitArchiveReader object, opening the main subfile of the given archive. | |
| BitArchiveReader (const Bit7zLibrary &lib, const BitInputArchive &inArchive, const BitInFormat &format=BitFormat::Auto, const tstring &password={}) | |
| Constructs a BitArchiveReader object, opening the main subfile of the given archive. | |
| BitArchiveReader (const Bit7zLibrary &lib, const BitInputArchive &inArchive, std::uint32_t subfileIndex, ArchiveStartOffset archiveStart, const BitInFormat &format=BitFormat::Auto, const tstring &password={}) | |
| Constructs a BitArchiveReader object, opening the subfile at the specified index of the given archive. | |
| BitArchiveReader (const Bit7zLibrary &lib, const BitInputArchive &inArchive, std::uint32_t subfileIndex, const BitInFormat &format=BitFormat::Auto, const tstring &password={}) | |
| Constructs a BitArchiveReader object, opening the subfile at the specified index of the given archive. | |
| BitArchiveReader (const Bit7zLibrary &lib, const buffer_t &inArchive, ArchiveStartOffset archiveStart, const BitInFormat &format=BitFormat::Auto, const tstring &password={}) | |
| Constructs a BitArchiveReader object, opening the archive in the input buffer. | |
| BitArchiveReader (const Bit7zLibrary &lib, const buffer_t &inArchive, const BitInFormat &format=BitFormat::Auto, const tstring &password={}) | |
| Constructs a BitArchiveReader object, opening the archive in the input buffer. | |
| BitArchiveReader (const Bit7zLibrary &lib, const tstring &inArchive, ArchiveStartOffset archiveStart, const BitInFormat &format=BitFormat::Auto, const tstring &password={}) | |
| Constructs a BitArchiveReader object, opening the input file archive. | |
| BitArchiveReader (const Bit7zLibrary &lib, const tstring &inArchive, const BitInFormat &format=BitFormat::Auto, const tstring &password={}) | |
| Constructs a BitArchiveReader object, opening the input file archive. | |
| BitArchiveReader (const Bit7zLibrary &lib, std::istream &inArchive, ArchiveStartOffset archiveStart, const BitInFormat &format=BitFormat::Auto, const tstring &password={}) | |
| Constructs a BitArchiveReader object, opening the archive from the standard input stream. | |
| BitArchiveReader (const Bit7zLibrary &lib, std::istream &inArchive, const BitInFormat &format=BitFormat::Auto, const tstring &password={}) | |
| Constructs a BitArchiveReader object, opening the archive from the standard input stream. | |
| ~BitArchiveReader () override=default | |
| BitArchiveReader destructor. | |
| auto | archiveHasPath () const noexcept -> bool |
| auto | archivePath () const noexcept -> const tstring & |
| auto | archiveProperties () const -> std::map< BitProperty, BitPropVariant > |
| auto | archiveProperty (BitProperty property) const -> BitPropVariant |
| Gets the specified archive property. | |
| auto | begin () const noexcept -> BitInputArchive::ConstIterator |
| auto | cbegin () const noexcept -> BitInputArchive::ConstIterator |
| auto | cend () const noexcept -> BitInputArchive::ConstIterator |
| void | clearPassword () noexcept |
| Clear the current password used by the handler. | |
| auto | contains (const tstring &path) const noexcept -> bool |
| Find if there is an item in the archive that has the given path. | |
| auto | detectedFormat () const noexcept -> const BitInFormat & |
| auto | end () const noexcept -> BitInputArchive::ConstIterator |
| void | extractFolderTo (const tstring &outDir, const tstring &folderPath, FolderPathPolicy policy=FolderPathPolicy::Strip) const |
| Extracts a folder from the archive to the chosen directory. | |
| auto | extractionFormat () const noexcept -> const BitInFormat & |
| void | extractMatchingRegexTo (buffer_t &outBuffer, const tstring ®ex, FilterPolicy policy=FilterPolicy::Include) const |
| Extracts to the output buffer the first file in the archive that matches the given regex pattern. | |
| void | extractMatchingRegexTo (const tstring &outDir, const tstring ®ex, FilterPolicy policy=FilterPolicy::Include) const |
| Extracts to the output directory all the items whose paths match the given regex pattern. | |
| void | extractMatchingTo (buffer_t &outBuffer, const tregex ®ex, FilterPolicy policy=FilterPolicy::Include) const |
| Extracts to the output buffer the first file in the archive that matches the given regex pattern. | |
| void | extractMatchingTo (buffer_t &outBuffer, const tstring &itemFilter, FilterPolicy policy=FilterPolicy::Include) const |
| Extracts to the output buffer the first file whose path matches the given wildcard pattern. | |
| void | extractMatchingTo (const tstring &outDir, const tregex ®ex, FilterPolicy policy=FilterPolicy::Include) const |
| Extracts to the output directory all the items whose paths match the given regex pattern. | |
| void | extractMatchingTo (const tstring &outDir, const tstring &itemFilter, FilterPolicy policy=FilterPolicy::Include) const |
| Extracts to the output directory all the items whose paths match the given wildcard pattern. | |
| void | extractRootFolderContentTo (const tstring &outDir) const |
| Extracts the content of the archive's root folder to the chosen directory. | |
| void | extractTo (buffer_t &outBuffer, FilterCallback filterCallback) const |
| Extracts to the output buffer the first item satisfying the given filtering criteria. | |
| void | extractTo (buffer_t &outBuffer, std::uint32_t index=0) const |
| Extracts a file to the output buffer. | |
| void | extractTo (BufferCallback callback, BitIndicesView indices={}) const |
| Extracts the content of the archive to the buffers provided by the given BufferCallback. | |
| void | extractTo (byte_t *outBuffer, std::size_t size, std::uint32_t index=0) const |
| Extracts a file to the pre-allocated output buffer. | |
| template<std::size_t N> | |
| void | extractTo (byte_t(&outBuffer)[N], std::uint32_t index=0) const |
| Extracts a file to the pre-allocated output buffer. | |
| void | extractTo (const tstring &outDir, BitIndicesView indices={}) const |
| Extracts the specified items to the chosen directory. | |
| void | extractTo (const tstring &outDir, FilterCallback filterCallback) const |
| Extracts to the output directory all the items that satisfy the given filtering criteria. | |
| void | extractTo (const tstring &outDir, RenameCallback renameCallback) const |
| Extracts the archive to the chosen directory, specifying the names of the extracted items via a RenameCallback. | |
| void | extractTo (RawDataCallback callback, BitIndicesView indices={}) const |
| Extracts the raw content of the archive to the given callback. | |
| template<std::size_t N> | |
| void | extractTo (std::array< byte_t, N > &outBuffer, std::uint32_t index=0) const |
| Extracts a file to the pre-allocated output buffer. | |
| void | extractTo (std::map< tstring, buffer_t > &outMap) const |
| Extracts the content of the archive to a map of memory buffers, where the keys are the paths of the files (inside the archive), and the values are their decompressed contents. | |
| void | extractTo (std::ostream &outStream, std::uint32_t index=0) const |
| Extracts a file to the output stream. | |
| auto | fileCallback () const -> const FileCallback & |
| auto | filesCount () const -> std::uint32_t |
| auto | find (const tstring &path) const noexcept -> BitInputArchive::ConstIterator |
| Find an item in the archive that has the given path. | |
| auto | findByName (const tstring &name) const noexcept -> BitInputArchive::ConstIterator |
| Find an item in the archive that has the given name (last component of its path within the archive). | |
| auto | foldersCount () const -> std::uint32_t |
| auto | format () const noexcept -> const BitInFormat &override |
| auto | handler () const noexcept -> const BitAbstractArchiveHandler & |
| auto | hasEncryptedItems () const -> bool |
| auto | isEncrypted () const -> bool |
| auto | isItemEncrypted (std::uint32_t index) const -> bool |
| auto | isItemFolder (std::uint32_t index) const -> bool |
| auto | isMultiVolume () const -> bool |
| auto | isPasswordDefined () const noexcept -> bool |
| auto | isSolid () const -> bool |
| auto | itemAt (std::uint32_t index) const -> BitArchiveItemOffset |
| Retrieve the item at the given index. | |
| auto | itemHasProperty (std::uint32_t index, BitProperty property) const -> bool |
| Checks whether the item at the given index has the specified property. | |
| auto | itemProperty (std::uint32_t index, BitProperty property) const -> BitPropVariant |
| Gets the specified property of an item in the archive. | |
| auto | items () const -> std::vector< BitArchiveItemInfo > |
| auto | itemsCount () const -> std::uint32_t |
| auto | itemsMatching (const tstring &pattern) const -> std::vector< BitArchiveItemInfo > |
| Gets the items whose paths match the given wildcard pattern. | |
| auto | library () const noexcept -> const Bit7zLibrary & |
| auto | mainSubfileIndex () const -> std::uint32_t |
| auto | overwriteMode () const noexcept -> OverwriteMode |
| auto | packSize () const -> std::uint64_t |
| auto | password () const -> const tstring & |
| auto | passwordCallback () const -> const PasswordCallback & |
| auto | progressCallback () const -> const ProgressCallback & |
| auto | ratioCallback () const -> const RatioCallback & |
| auto | retainDirectories () const noexcept -> bool |
| auto | rootFolder () const -> tstring |
| Returns the single top-level folder that contains all of the archive's items. | |
| void | setFileCallback (const FileCallback &callback) |
| Sets the function to be called when the current file being processed changes. | |
| void | setOverwriteMode (OverwriteMode mode) |
| Sets how the handler should behave when it tries to output to an existing file or buffer. | |
| virtual void | setPassword (const tstring &password) |
| Sets up a password to be used by the archive handler. | |
| void | setPasswordCallback (const PasswordCallback &callback) |
| Sets the function to be called when a password is needed to complete the ongoing operation. | |
| void | setProgressCallback (const ProgressCallback &callback) |
| Sets the function to be called when the processed size of the ongoing operation is updated. | |
| void | setRatioCallback (const RatioCallback &callback) |
| Sets the function to be called when the input processed size and current output size of the ongoing operation are known. | |
| void | setRetainDirectories (bool retain) noexcept |
| Sets whether the operations' output will preserve the input's directory structure or not. | |
| void | setTotalCallback (const TotalCallback &callback) |
| Sets the function to be called when the total size of an operation is available. | |
| auto | size () const -> std::uint64_t |
| void | test (BitIndicesView indices={}) const |
| Tests the archive without extracting its content. | |
| void | testItem (std::uint32_t index) const |
| Tests the archive item at the given index without extracting it. | |
| auto | totalCallback () const -> const TotalCallback & |
| void | useFormatProperty (const wchar_t *name, const BitPropVariant &property) const |
| Use the given format property to read the archive. | |
| template<typename T, typename = typename std::enable_if< is_explicitly_convertible< T, BitPropVariant >::value >::type> | |
| void | useFormatProperty (const wchar_t *name, T &&value) const |
| Use the given format property to read the archive. | |
| auto | volumesCount () const -> std::uint32_t |
Static Public Member Functions | |
| template<typename T> | |
| static auto | isEncrypted (const Bit7zLibrary &lib, T &&inArchive, const BitInFormat &format=BitFormat::Auto) noexcept -> bool |
| Checks if the given archive contains only encrypted items. | |
| template<typename T> | |
| static auto | isHeaderEncrypted (const Bit7zLibrary &lib, T &&inArchive, const BitInFormat &format=BitFormat::Auto) noexcept -> bool |
| Checks if the given archive is header-encrypted or not. | |
The BitArchiveReader class allows reading metadata of archives, as well as extracting them.
| BitArchiveReader | ( | const Bit7zLibrary & | lib, |
| const tstring & | inArchive, | ||
| ArchiveStartOffset | archiveStart, | ||
| const BitInFormat & | format = BitFormat::Auto, | ||
| const tstring & | password = {} ) |
Constructs a BitArchiveReader object, opening the input file archive.
| lib | the 7z library used. |
| inArchive | the path to the archive to be read. |
| archiveStart | whether to search for the archive's start throughout the entire file or only at the beginning. |
| format | the format of the input archive. |
| password | (optional) the password needed for opening the input archive. |
| BitArchiveReader | ( | const Bit7zLibrary & | lib, |
| const tstring & | inArchive, | ||
| const BitInFormat & | format = BitFormat::Auto, | ||
| const tstring & | password = {} ) |
Constructs a BitArchiveReader object, opening the input file archive.
| lib | the 7z library used. |
| inArchive | the path to the archive to be read. |
| format | the format of the input archive. |
| password | (optional) the password needed for opening the input archive. |
| BitArchiveReader | ( | const Bit7zLibrary & | lib, |
| const buffer_t & | inArchive, | ||
| ArchiveStartOffset | archiveStart, | ||
| const BitInFormat & | format = BitFormat::Auto, | ||
| const tstring & | password = {} ) |
Constructs a BitArchiveReader object, opening the archive in the input buffer.
| lib | the 7z library used. |
| inArchive | the input buffer containing the archive to be read. |
| archiveStart | whether to search for the archive's start throughout the entire file or only at the beginning. |
| format | the format of the input archive. |
| password | (optional) the password needed for opening the input archive. |
|
delete |
Deleted overload preventing the use of a temporary input buffer.
The reader keeps the archive open and reads the buffer on later extraction, so the buffer must outlive the BitArchiveReader; a temporary would dangle.
| BitArchiveReader | ( | const Bit7zLibrary & | lib, |
| const buffer_t & | inArchive, | ||
| const BitInFormat & | format = BitFormat::Auto, | ||
| const tstring & | password = {} ) |
Constructs a BitArchiveReader object, opening the archive in the input buffer.
| lib | the 7z library used. |
| inArchive | the input buffer containing the archive to be read. |
| format | the format of the input archive. |
| password | (optional) the password needed for opening the input archive. |
|
delete |
Deleted overload preventing the use of a temporary input buffer.
The reader keeps the archive open and reads the buffer on later extraction, so the buffer must outlive the BitArchiveReader; a temporary would dangle.
| BitArchiveReader | ( | const Bit7zLibrary & | lib, |
| std::istream & | inArchive, | ||
| ArchiveStartOffset | archiveStart, | ||
| const BitInFormat & | format = BitFormat::Auto, | ||
| const tstring & | password = {} ) |
Constructs a BitArchiveReader object, opening the archive from the standard input stream.
| lib | the 7z library used. |
| inArchive | the standard input stream of the archive to be read. |
| archiveStart | whether to search for the archive's start throughout the entire file or only at the beginning. |
| format | the format of the input archive. |
| password | (optional) the password needed for opening the input archive. |
| BitArchiveReader | ( | const Bit7zLibrary & | lib, |
| std::istream & | inArchive, | ||
| const BitInFormat & | format = BitFormat::Auto, | ||
| const tstring & | password = {} ) |
Constructs a BitArchiveReader object, opening the archive from the standard input stream.
| lib | the 7z library used. |
| inArchive | the standard input stream of the archive to be read. |
| format | the format of the input archive. |
| password | (optional) the password needed for opening the input archive. |
| BitArchiveReader | ( | const Bit7zLibrary & | lib, |
| const BitInputArchive & | inArchive, | ||
| const BitInFormat & | format = BitFormat::Auto, | ||
| const tstring & | password = {} ) |
Constructs a BitArchiveReader object, opening the main subfile of the given archive.
| lib | the 7z library used. |
| inArchive | the input archive containing a main subfile. |
| format | the format of the main subfile. |
| password | (optional) the password needed for opening the main subfile. |
| BitException | if the format of the input archive doesn't have a main subfile. |
| BitArchiveReader | ( | const Bit7zLibrary & | lib, |
| const BitInputArchive & | inArchive, | ||
| ArchiveStartOffset | archiveStart, | ||
| const BitInFormat & | format = BitFormat::Auto, | ||
| const tstring & | password = {} ) |
Constructs a BitArchiveReader object, opening the main subfile of the given archive.
| lib | the 7z library used. |
| inArchive | the input archive containing a main subfile. |
| archiveStart | whether to search for the archive's start throughout the entire subfile stream or only at the beginning. |
| format | the format of the main subfile. |
| password | (optional) the password needed for opening the main subfile. |
| BitException | if the format of the input archive doesn't have a main subfile. |
| BitArchiveReader | ( | const Bit7zLibrary & | lib, |
| const BitInputArchive & | inArchive, | ||
| std::uint32_t | subfileIndex, | ||
| const BitInFormat & | format = BitFormat::Auto, | ||
| const tstring & | password = {} ) |
Constructs a BitArchiveReader object, opening the subfile at the specified index of the given archive.
| lib | the 7z library used. |
| inArchive | the input archive containing the desired subfile. |
| subfileIndex | the index of the subfile within the input archive. |
| format | the format of the subfile. |
| password | (optional) the password needed for opening the subfile. |
| BitException | if the format of the input archive doesn't support subfile streams. |
| BitArchiveReader | ( | const Bit7zLibrary & | lib, |
| const BitInputArchive & | inArchive, | ||
| std::uint32_t | subfileIndex, | ||
| ArchiveStartOffset | archiveStart, | ||
| const BitInFormat & | format = BitFormat::Auto, | ||
| const tstring & | password = {} ) |
Constructs a BitArchiveReader object, opening the subfile at the specified index of the given archive.
| lib | the 7z library used. |
| inArchive | the input archive containing the desired subfile. |
| subfileIndex | the index of the subfile within the input archive. |
| archiveStart | whether to search for the archive's start throughout the entire subfile stream or only at the beginning. |
| format | the format of the subfile. |
| password | (optional) the password needed for opening the subfile. |
| BitException | if the format of the input archive doesn't support subfile streams. |
|
overridedefault |
BitArchiveReader destructor.
|
noexceptinherited |
|
noexceptinherited |
| auto archiveProperties | ( | ) | const -> std::map< BitProperty, BitPropVariant > |
|
inherited |
Gets the specified archive property.
| property | the property to be retrieved. |
|
noexceptinherited |
|
noexceptinherited |
|
noexceptinherited |
|
noexceptinherited |
Clear the current password used by the handler.
Calling clearPassword() will disable the encryption/decryption of archives.
|
noexceptinherited |
Find if there is an item in the archive that has the given path.
| path | the path to be searched in the archive. |
|
noexceptinherited |
|
noexceptinherited |
|
inherited |
Extracts a folder from the archive to the chosen directory.
| outDir | the output directory where the extracted folder will be put. |
| folderPath | the path of the folder inside the archive to be extracted. |
| policy | (optional) the path policy to be used for extracting the folder. |
|
noexceptinherited |
|
inherited |
Extracts to the output buffer the first file in the archive that matches the given regex pattern.
| outBuffer | the output buffer where the extracted file will be put. |
| regex | the regex used for matching the paths of files inside the archive. |
| policy | (optional) the filtering policy to be applied to the matched items. |
|
inherited |
Extracts to the output directory all the items whose paths match the given regex pattern.
| outDir | the output directory where extracted files will be put. |
| regex | the regex used for matching the paths of files inside the archive. |
| policy | (optional) the filtering policy to be applied to the matching items. |
|
inherited |
Extracts to the output buffer the first file in the archive that matches the given regex pattern.
| outBuffer | the output buffer where the extracted file will be put. |
| regex | the regex used for matching the paths of files inside the archive. |
| policy | (optional) the filtering policy to be applied to the matched items. |
|
inherited |
Extracts to the output buffer the first file whose path matches the given wildcard pattern.
| outBuffer | the output buffer where to extract the file. |
| itemFilter | the wildcard pattern used for matching the paths of files inside the archive. |
| policy | (optional) the filtering policy to be applied to the matched items. |
|
inherited |
Extracts to the output directory all the items whose paths match the given regex pattern.
| outDir | the output directory where extracted files will be put. |
| regex | the regex used for matching the paths of files inside the archive. |
| policy | (optional) the filtering policy to be applied to the matching items. |
|
inherited |
Extracts to the output directory all the items whose paths match the given wildcard pattern.
| outDir | the output directory where extracted files will be put. |
| itemFilter | the wildcard pattern used for matching the paths of items inside the archive. |
| policy | (optional) the filtering policy to be applied to the matching items. |
|
inherited |
Extracts the content of the archive's root folder to the chosen directory.
The archive's root folder is the single top-level folder shared by all the items in the archive; its name is stripped from the extracted items' paths.
| outDir | the output directory where the root folder's content will be put. |
|
inherited |
Extracts to the output buffer the first item satisfying the given filtering criteria.
| outBuffer | the output buffer where the extracted file will be put. |
| filterCallback | the filtering callback that specifies whether to extract an item or not. |
|
inherited |
Extracts a file to the output buffer.
| outBuffer | the output buffer where the content of the archive will be put. |
| index | (optional) the index of the file to be extracted. |
|
inherited |
Extracts the content of the archive to the buffers provided by the given BufferCallback.
| callback | the function providing the buffers. |
| indices | (optional) the indices of the files in the archive that must be extracted. |
|
inherited |
Extracts a file to the pre-allocated output buffer.
| outBuffer | the pre-allocated output buffer. |
| size | the size of the output buffer (it must be equal to the unpacked size of the item to be extracted). |
| index | the index of the file to be extracted. |
|
inlineinherited |
Extracts a file to the pre-allocated output buffer.
| N | the size of the output buffer (it must be equal to the unpacked size of the item to be extracted). |
| outBuffer | the pre-allocated output buffer. |
| index | the index of the file to be extracted. |
|
inherited |
Extracts the specified items to the chosen directory.
| outDir | the output directory where the extracted files will be put. |
| indices | (optional) the indices of the files in the archive that must be extracted. |
|
inherited |
Extracts to the output directory all the items that satisfy the given filtering criteria.
| outDir | the output directory where extracted files will be put. |
| filterCallback | the filtering callback that specifies whether to extract an item or not. |
|
inherited |
Extracts the archive to the chosen directory, specifying the names of the extracted items via a RenameCallback.
| outDir | the output directory where the extracted files will be put. |
| renameCallback | the callback that returns the names for the extracted files. |
|
inherited |
Extracts the raw content of the archive to the given callback.
| callback | a function providing the extracted raw data to the user. |
| indices | (optional) the indices of the files in the archive that must be extracted. |
|
inlineinherited |
Extracts a file to the pre-allocated output buffer.
| N | the size of the output buffer (it must be equal to the unpacked size of the item to be extracted). |
| outBuffer | the pre-allocated output buffer. |
| index | the index of the file to be extracted. |
Extracts the content of the archive to a map of memory buffers, where the keys are the paths of the files (inside the archive), and the values are their decompressed contents.
| outMap | the output map. |
|
inherited |
Extracts a file to the output stream.
| outStream | the (binary) stream where the content of the archive will be put. |
| index | the index of the file to be extracted. |
|
inherited |
| auto filesCount | ( | ) | const -> std::uint32_t |
|
noexceptinherited |
Find an item in the archive that has the given path.
| path | the path to be searched in the archive. |
|
noexceptinherited |
Find an item in the archive that has the given name (last component of its path within the archive).
| name | the name to be searched in the archive. |
| auto foldersCount | ( | ) | const -> std::uint32_t |
|
overridevirtualnoexceptinherited |
Implements BitAbstractArchiveHandler.
|
noexceptinherited |
| auto hasEncryptedItems | ( | ) | const -> bool |
| auto isEncrypted | ( | ) | const -> bool |
|
inlinestaticnoexcept |
Checks if the given archive contains only encrypted items.
| T | The input type of the archive (i.e., file path, buffer, or standard stream). |
| lib | the 7z library used. |
| inArchive | the archive to be read. |
| format | the format of the input archive. |
|
inlinestaticnoexcept |
Checks if the given archive is header-encrypted or not.
| T | The input type of the archive (i.e., file path, buffer, or standard stream). |
| lib | the 7z library used. |
| inArchive | the archive to be read. |
| format | the format of the input archive. |
|
inherited |
| index | the index of an item in the archive. |
|
inherited |
| index | the index of an item in the archive. |
| auto isMultiVolume | ( | ) | const -> bool |
|
noexceptinherited |
| auto isSolid | ( | ) | const -> bool |
|
inherited |
Retrieve the item at the given index.
| index | the index of the item to be retrieved. |
|
inherited |
Checks whether the item at the given index has the specified property.
| index | the index (in the archive) of the item. |
| property | the property to be checked for existence. |
|
inherited |
Gets the specified property of an item in the archive.
| index | the index (in the archive) of the item. |
| property | the property to be retrieved. |
| auto items | ( | ) | const -> std::vector< BitArchiveItemInfo > |
|
inherited |
| auto itemsMatching | ( | const tstring & | pattern | ) | const -> std::vector< BitArchiveItemInfo > |
Gets the items whose paths match the given wildcard pattern.
| pattern | a wildcard pattern. |
|
noexceptinherited |
|
inherited |
| BitException | if the archive format doesn't have a main subfile. |
|
noexceptinherited |
| auto packSize | ( | ) | const -> std::uint64_t |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
noexceptinherited |
|
inherited |
Returns the single top-level folder that contains all of the archive's items.
The archive is considered to have a root folder only when every item is contained within the same top-level folder. There is no common root folder if the items belong to different top-level folders, if the archive contains a file at its root, or if the archive is empty.
|
inherited |
Sets the function to be called when the current file being processed changes.
| callback | the file callback to be used. |
|
inherited |
Sets how the handler should behave when it tries to output to an existing file or buffer.
| mode | the OverwriteMode to be used by the handler. |
|
virtualinherited |
Sets up a password to be used by the archive handler.
The password will be used to encrypt/decrypt archives by using the default cryptographic method of the archive format.
| password | the password to be used. |
Reimplemented in BitAbstractArchiveCreator.
|
inherited |
Sets the function to be called when a password is needed to complete the ongoing operation.
| callback | the password callback to be used. |
|
inherited |
Sets the function to be called when the processed size of the ongoing operation is updated.
| callback | the progress callback to be used. |
|
inherited |
Sets the function to be called when the input processed size and current output size of the ongoing operation are known.
| callback | the ratio callback to be used. |
|
noexceptinherited |
Sets whether the operations' output will preserve the input's directory structure or not.
| retain | the setting for preserving or not the input directory structure |
|
inherited |
Sets the function to be called when the total size of an operation is available.
| callback | the total callback to be used. |
| auto size | ( | ) | const -> std::uint64_t |
|
inherited |
Tests the archive without extracting its content.
| indices | (optional) the indices of the items to be tested. |
| BitException | if the archive is not valid. |
|
inherited |
Tests the archive item at the given index without extracting it.
| index | the index of the item to be tested. |
| BitException | if the index is not valid, or the item at the given index is not valid, or the whole archive is not valid. |
|
inherited |
|
inherited |
Use the given format property to read the archive.
| name | the name of the property. |
| property | the property value. |
|
inlineinherited |
Use the given format property to read the archive.
| T | the type of the property. |
| name | the name of the property. |
| value | the property value. |
| auto volumesCount | ( | ) | const -> std::uint32_t |