|
bit7z 4.1.0
A C++ library for interfacing with the 7-zip shared libs.
|
The main namespace of the bit7z library. More...
Namespaces | |
| namespace | BitFormat |
| The namespace that contains a set of archive formats usable with bit7z classes. | |
Classes | |
| class | Bit7zLibrary |
| The Bit7zLibrary class allows accessing the basic functionalities provided by the 7z DLLs. More... | |
| class | Bit7zLibraryLoader |
| The Bit7zLibraryLoader class provides deferred and optional loading of the 7-zip shared library. More... | |
| class | BitAbstractArchiveCreator |
| Abstract class representing a generic archive creator. More... | |
| class | BitAbstractArchiveHandler |
| Abstract class representing a generic archive handler. More... | |
| class | BitAbstractArchiveOpener |
| The BitAbstractArchiveOpener abstract class represents a generic archive opener. More... | |
| class | BitArchiveEditor |
| The BitArchiveEditor class allows creating new file archives or updating old ones. More... | |
| class | BitArchiveItem |
| The BitArchiveItem class represents a generic item inside an archive. More... | |
| class | BitArchiveItemInfo |
| The BitArchiveItemInfo class represents an archived item and that stores all its properties for later use. More... | |
| class | BitArchiveItemOffset |
| The BitArchiveItemOffset class represents an archived item but doesn't store its properties. More... | |
| class | BitArchiveReader |
| The BitArchiveReader class allows reading metadata of archives, as well as extracting them. More... | |
| class | BitArchiveWriter |
| The BitArchiveWriter class allows creating new archives or updating old ones with new items. More... | |
| class | BitCompressor |
| The BitCompressor template class allows compressing files into archives. More... | |
| class | BitException |
| The BitException class represents a generic exception thrown from the bit7z classes. More... | |
| class | BitExtractor |
| The BitExtractor template class allows extracting the content of archives from supported input types. More... | |
| class | BitFileCompressor |
| The BitFileCompressor class allows compressing files and directories. More... | |
| class | BitGenericItem |
| The BitGenericItem interface class represents a generic item (either inside or outside an archive). More... | |
| class | BitIndicesView |
| A non-owning, read-only view over a contiguous sequence of archive item indices. More... | |
| class | BitInFormat |
| The BitInFormat class specifies an extractable archive format. More... | |
| class | BitInOutFormat |
| The BitInOutFormat class specifies a format available for creating new archives and extract old ones. More... | |
| class | BitInputArchive |
| The BitInputArchive class, given a handler object, allows reading/extracting the content of archives. More... | |
| class | BitInputItem |
| A generic input item for compression operations. More... | |
| class | BitNestedArchiveReader |
| The BitNestedArchiveReader class allows reading and extracting nested archives (e.g., the tarball inside a .tar.gz archive). More... | |
| class | BitOutputArchive |
| The BitOutputArchive class, given a creator object, allows creating new archives. More... | |
| struct | BitPropVariant |
| The BitPropVariant struct is a light extension to the WinAPI PROPVARIANT struct providing useful getters. More... | |
Typedefs | |
| using | BitFileExtractor = BitExtractor< const tstring& > |
| The BitFileExtractor alias allows extracting archives on the filesystem. | |
| using | BitItemsVector = std::vector< BitInputItem > |
| A vector of items to be compressed into an archive. | |
| using | BitMemCompressor = BitCompressor< const buffer_t& > |
| The BitMemCompressor alias allows compressing memory buffers. | |
| using | BitMemExtractor = BitExtractor< const buffer_t& > |
| The BitMemExtractor alias allows extracting the content of in-memory archives. | |
| using | BitStreamCompressor = BitCompressor< std::istream& > |
| The BitStreamCompressor alias allows compressing data from standard input streams. | |
| using | BitStreamExtractor = BitExtractor< std::istream& > |
| The BitStreamExtractor alias allows extracting the content of in-memory archives. | |
| using | BufferCallback = std::function< buffer_t&( std::uint32_t, const tstring& ) > |
| A function returning a reference to the buffer where to extract the item at the given index/path. | |
| using | byte_t = unsigned char |
| A type representing a byte. | |
| using | FailedFile = std::pair< tstring, std::error_code > |
| An alias for a pair holding: 1) the path or identifier of a file (tstring) 2) the error that occurred when processing that file (std::error_code). | |
| using | FailedFiles = std::vector< FailedFile > |
| An alias for a sequence of FailedFile entries. | |
| using | FileCallback = std::function< void( const tstring& ) > |
| A function whose argument is the path, in the archive, of the file currently being processed by the ongoing operation. | |
| using | FilterCallback = std::function< FilterResult( const BitArchiveItem& ) > |
| A function returning what to do with the given archive item. | |
| using | FormatFeaturesType = underlying_type_t< FormatFeatures > |
| The underlying integer type of the FormatFeatures enumeration. | |
| template<std::size_t N> | |
| using | IndicesArray = std::array< std::uint32_t, N > |
| A fixed-size array of N archive item indices. | |
| using | IndicesVector = std::vector< std::uint32_t > |
| A dynamically-sized vector of archive item indices. | |
| template<typename From, typename To> | |
| using | is_explicitly_convertible |
| Type trait that is true if and only if From is explicitly (but not implicitly) convertible to To. | |
| using | LegacyRenameCallback = std::function< tstring( std::uint32_t, const tstring& ) > |
| The (index, path) form of RenameCallback. | |
| using | native_char = native_string::value_type |
| The character type of the system's native string type. | |
| using | native_string = std::string |
| Native string type of the system. | |
| using | PasswordCallback = std::function< tstring() > |
| A function returning the password to be used to handle an archive. | |
| using | ProgressCallback = std::function< bool( std::uint64_t ) > |
| A function whose argument is the currently processed size of the ongoing operation and returns true or false whether the operation must continue or not. | |
| using | RatioCallback = std::function< void( std::uint64_t, std::uint64_t ) > |
| A function whose arguments are the current processed input size, and the current output size of the ongoing operation. | |
| using | RawDataCallback = std::function< bool( const byte_t*, std::size_t ) > |
| A function providing the raw extracted data and its size to the user. | |
| using | RenameCallback = std::function< tstring( const BitArchiveItem& ) > |
| A function returning a new name for the item currently being extracted. | |
| using | sevenzip_string = std::wstring |
| The string type used internally by 7-Zip. | |
| using | tchar = char |
| using | time_type = std::chrono::time_point< std::chrono::system_clock > |
| A type representing a time point measured using the system clock. | |
| using | TotalCallback = std::function< void( std::uint64_t ) > |
| A function whose argument is the total size of the ongoing operation. | |
| using | tregex = std::basic_regex< tchar > |
| using | tstring = std::basic_string< tchar > |
| template<typename Enum> | |
| using | underlying_type_t = typename std::underlying_type< Enum >::type |
| Alias for the underlying integer type of the given enumeration type. | |
Enumerations | |
| enum struct | ArchiveStartOffset : std::uint8_t { None , FileStart } |
| Offset from where the archive starts within the input file. More... | |
| enum struct | BitCompressionLevel : std::uint8_t { None = 0 , Fastest = 1 , Fast = 3 , Normal = 5 , Max = 7 , Ultra = 9 } |
| The BitCompressionLevel enum represents the compression level used by 7z when creating archives. More... | |
| enum struct | BitCompressionMethod : std::uint8_t { Copy , Deflate , Deflate64 , BZip2 , Lzma , Lzma2 , Ppmd } |
| The BitCompressionMethod enum represents the compression methods used by 7z when creating archives. More... | |
| enum struct | BitError : std::uint8_t { Fail = 1 , FilterNotSpecified , FormatFeatureNotSupported , IndicesNotSpecified , InvalidArchivePath , InvalidOutputBufferSize , InvalidCompressionMethod , InvalidDictionarySize , InvalidIndex , InvalidWordSize , ItemIsAFolder , ItemMarkedAsDeleted , NoMatchingItems , NoMatchingFile , NoMatchingSignature , NonEmptyOutputBuffer , NullOutputBuffer , RequestedWrongVariantType , UnsupportedOperation , UnsupportedVariantType , WrongUpdateMode , InvalidZipPassword , InvalidDirectoryPath , ItemPathOutsideOutputDirectory , ItemHasAbsolutePath , InvalidItemPath } |
| The BitError enum struct values represent bit7z specific errors. More... | |
| enum struct | BitFailureSource : std::uint8_t { CRCError , DataAfterEnd , DataError , InvalidArchive , InvalidArgument , FormatDetectionError , HeadersError , NoSuchItem , OperationNotSupported , OperationNotPermitted , UnavailableData , UnexpectedEnd , WrongPassword } |
| The BitFailureSource enum struct values represent bit7z error conditions. More... | |
| enum struct | BitProperty : PROPID { NoProperty = 0 , MainSubfile , HandlerItemIndex , Path , Name , Extension , IsDir , Size , PackSize , Attrib , CTime , ATime , MTime , Solid , Commented , Encrypted , SplitBefore , SplitAfter , DictionarySize , CRC , Type , IsAnti , Method , HostOS , FileSystem , User , Group , Block , Comment , Position , Prefix , NumSubDirs , NumSubFiles , UnpackVer , Volume , IsVolume , Offset , Links , NumBlocks , NumVolumes , TimeType , Bit64 , BigEndian , Cpu , PhySize , HeadersSize , Checksum , Characts , Va , Id , ShortName , CreatorApp , SectorSize , PosixAttrib , SymLink , Error , TotalSize , FreeSpace , ClusterSize , VolumeName , LocalName , Provider , NtSecure , IsAltStream , IsAux , IsDeleted , IsTree , Sha1 , Sha256 , ErrorType , NumErrors , ErrorFlags , WarningFlags , Warning , NumStreams , NumAltStreams , AltStreamsSize , VirtualSize , UnpackSize , TotalPhySize , VolumeIndex , SubType , ShortComment , CodePage , IsNotArcType , PhySizeCantBeDetected , ZerosTailIsAllowed , TailSize , EmbeddedStubSize , NtReparse , HardLink , INode , StreamId , ReadOnly , OutName , CopyLink } |
| The BitProperty enum represents the archive/item properties that 7-zip can read or write. More... | |
| enum struct | BitPropVariantType : std::uint8_t { Empty , Bool , String , UInt8 , UInt16 , UInt32 , UInt64 , Int8 , Int16 , Int32 , Int64 , FileTime } |
| The BitPropVariantType enum represents the possible types that a BitPropVariant can store. More... | |
| enum struct | DeletePolicy : std::uint8_t { ItemOnly , RecurseDirs } |
| Enumeration representing how the deletion of an item from an archive should be handled. More... | |
| enum struct | EncryptionScope : std::uint8_t { DataOnly , DataAndHeaders } |
| The EncryptionScope enum represents the scope of encryption applied when setting a password on an archive. More... | |
| enum struct | FilterPolicy : std::uint8_t { Include , Exclude } |
| Enumeration representing the policy according to which the archive handler should treat the items that match the pattern given by the user. More... | |
| enum struct | FilterResult : std::uint8_t { ProcessItem , SkipItem , AbortOperation , Process = ProcessItem , Skip = SkipItem , Abort = AbortOperation } |
| Enumeration representing the result of applying a filter callback on an archive item. More... | |
| enum struct | FolderPathPolicy : std::uint8_t { Strip , KeepName , KeepPath } |
| Policy controlling how a folder's path is reflected in the extracted items' paths. More... | |
| enum struct | FormatFeatures : std::uint8_t { MultipleFiles = 1u << 0u , SolidArchive = 1u << 1u , CompressionLevel = 1u << 2u , Encryption = 1u << 3u , HeaderEncryption = 1u << 4u , MultipleMethods = 1u << 5u } |
| The FormatFeatures enum specifies the features supported by an archive file format. More... | |
| enum struct | OverwriteMode : std::uint8_t { None = 0 , Overwrite , Skip } |
| Enumeration representing how a handler should deal when an output file already exists. More... | |
| enum struct | SymlinkPolicy : std::uint8_t { Follow , DoNotFollow } |
| Enumeration representing how an input item should deal with symbolic links. More... | |
| enum struct | UpdateMode : std::uint8_t { None , Append , Update , Overwrite = Update } |
| Enumeration representing how an archive creator should deal when the output archive already exists. More... | |
Functions | |
| void | indexBuffer (BitItemsVector &outVector, const buffer_t &inBuffer, const tstring &name) |
| Indexes the given buffer, using the given name as a path when compressed in archives. | |
| void | indexDirectory (BitItemsVector &outVector, const tstring &inDir, const tstring &filter={}, IndexingOptions options={}) |
| Indexes the given directory, adding to the vector all the files that match the wildcard filter. | |
| void | indexDirectoryContent (BitItemsVector &outVector, const tstring &inDir, const tstring &filter={}, IndexingOptions options={}) |
| Indexes the content of the given directory, adding to the vector all the files that match the wildcard filter. | |
| void | indexFile (BitItemsVector &outVector, const tstring &inFile, const tstring &name={}, SymlinkPolicy symlinkPolicy=SymlinkPolicy::Follow) |
| Indexes the given file path, with an optional user-defined path to be used in output archives. | |
| void | indexPaths (BitItemsVector &outVector, const std::vector< std::pair< tstring, tstring > > &inPaths, IndexingOptions options={}) |
| Indexes the given vector of <filesystem path, in-archive path> pairs, adding to the vector all the files. | |
| void | indexPaths (BitItemsVector &outVector, const std::vector< tstring > &inPaths, IndexingOptions options={}) |
| Indexes the given vector of filesystem paths, adding to the item vector all the files. | |
| void | indexPathsMap (BitItemsVector &outVector, const std::map< tstring, tstring > &inPaths, IndexingOptions options={}) |
| Indexes the given map of filesystem paths, adding to the vector all the files. | |
| void | indexStream (BitItemsVector &outVector, std::istream &inStream, const tstring &name) |
| Indexes the given standard input stream, using the given name as a path when compressed in archives. | |
| auto | lastErrorCode () noexcept -> std::error_code |
| Returns a std::error_code corresponding to the last system error that occurred. | |
| auto | make_error_code (BitError error) noexcept -> std::error_code |
| Creates a std::error_code from the given BitError value. | |
| auto | make_error_condition (BitFailureSource failureSource) noexcept -> std::error_condition |
| Creates a std::error_condition from the given BitFailureSource value. | |
| auto | make_hresult_code (HRESULT res) noexcept -> std::error_code |
| Creates a std::error_code from the given HRESULT value. | |
| auto | operator!= (const BitPropVariant &lhs, const BitPropVariant &rhs) noexcept -> bool |
| Checks whether two BitPropVariant objects differ in type or value. | |
| constexpr auto | operator& (FormatFeatures lhs, FormatFeatures rhs) noexcept -> FormatFeaturesType |
| Computes the bitwise AND of two FormatFeatures values. | |
| auto | operator== (const BitPropVariant &lhs, const BitPropVariant &rhs) noexcept -> bool |
| Checks whether two BitPropVariant objects have the same type and value. | |
| constexpr auto | operator| (FormatFeatures lhs, FormatFeatures rhs) noexcept -> FormatFeatures |
| Computes the bitwise OR of two FormatFeatures values. | |
| template<typename T, typename = typename std::enable_if< std::is_arithmetic< T >::value, T >::type> | |
| auto | to_native_string (T arg) -> native_string |
| Converts an arithmetic value to a native string. | |
| auto | to_string (BitProperty property) -> std::string |
| Returns the name of the given archive/item property. | |
| template<typename T, typename = typename std::enable_if< std::is_arithmetic< T >::value, T >::type> | |
| auto | to_tstring (T arg) -> std::basic_string< tchar > |
| Converts an arithmetic value to a tstring. | |
| template<typename Enum> | |
| constexpr auto | to_underlying (Enum enum_value) noexcept -> underlying_type_t< Enum > |
| Converts an enumerator to its underlying integer value. | |
| auto | to_tstring (native_string &&str) -> tstring |
| Converts a native string to a tstring. | |
| auto | to_tstring (const native_string &str) -> const tstring & |
| Converts a native string to a tstring. | |
| auto | to_native_string (native_string &&str) -> native_string |
| Converts a string to a native string. | |
| auto | to_native_string (const native_string &str) -> const native_string & |
| Converts a string to a native string. | |
| auto | to_native_string (const sevenzip_string &str) -> native_string |
| Converts a string to a native string. | |
Variables | |
| constexpr auto | kDefaultLibrary = "<platform-dependent value>" |
| The default file path for the 7-zip shared library to be used by bit7z in case the user doesn't pass a path to the constructor of the Bit7zLibrary class. | |
The main namespace of the bit7z library.
| using BitFileExtractor = BitExtractor< const tstring& > |
The BitFileExtractor alias allows extracting archives on the filesystem.
| using BitItemsVector = std::vector< BitInputItem > |
A vector of items to be compressed into an archive.
| using BitMemCompressor = BitCompressor< const buffer_t& > |
The BitMemCompressor alias allows compressing memory buffers.
The compressed archives can be saved to the filesystem, standard streams, or memory buffers.
It let decide various properties of the produced archive, such as the password protection and the compression level desired.
| using BitMemExtractor = BitExtractor< const buffer_t& > |
The BitMemExtractor alias allows extracting the content of in-memory archives.
| using BitStreamCompressor = BitCompressor< std::istream& > |
The BitStreamCompressor alias allows compressing data from standard input streams.
The compressed archives can be saved to the filesystem, standard streams, or memory buffers.
It let decide various properties of the produced archive, such as the password protection and the compression level desired.
| using BitStreamExtractor = BitExtractor< std::istream& > |
The BitStreamExtractor alias allows extracting the content of in-memory archives.
| using BufferCallback = std::function< buffer_t&( std::uint32_t, const tstring& ) > |
A function returning a reference to the buffer where to extract the item at the given index/path.
| using byte_t = unsigned char |
A type representing a byte.
| using FailedFile = std::pair< tstring, std::error_code > |
An alias for a pair holding: 1) the path or identifier of a file (tstring) 2) the error that occurred when processing that file (std::error_code).
| using FailedFiles = std::vector< FailedFile > |
An alias for a sequence of FailedFile entries.
| using FileCallback = std::function< void( const tstring& ) > |
A function whose argument is the path, in the archive, of the file currently being processed by the ongoing operation.
| using FilterCallback = std::function< FilterResult( const BitArchiveItem& ) > |
A function returning what to do with the given archive item.
| using FormatFeaturesType = underlying_type_t< FormatFeatures > |
The underlying integer type of the FormatFeatures enumeration.
| using IndicesArray = std::array< std::uint32_t, N > |
A fixed-size array of N archive item indices.
| N | the number of indices in the array. |
| using IndicesVector = std::vector< std::uint32_t > |
A dynamically-sized vector of archive item indices.
| using is_explicitly_convertible |
Type trait that is true if and only if From is explicitly (but not implicitly) convertible to To.
| using LegacyRenameCallback = std::function< tstring( std::uint32_t, const tstring& ) > |
The (index, path) form of RenameCallback.
| using native_char = native_string::value_type |
The character type of the system's native string type.
| using native_string = std::string |
Native string type of the system.
| using PasswordCallback = std::function< tstring() > |
A function returning the password to be used to handle an archive.
| using ProgressCallback = std::function< bool( std::uint64_t ) > |
A function whose argument is the currently processed size of the ongoing operation and returns true or false whether the operation must continue or not.
| using RatioCallback = std::function< void( std::uint64_t, std::uint64_t ) > |
A function whose arguments are the current processed input size, and the current output size of the ongoing operation.
| using RawDataCallback = std::function< bool( const byte_t*, std::size_t ) > |
A function providing the raw extracted data and its size to the user.
| using RenameCallback = std::function< tstring( const BitArchiveItem& ) > |
A function returning a new name for the item currently being extracted.
| using sevenzip_string = std::wstring |
The string type used internally by 7-Zip.
| using tchar = char |
A type representing a time point measured using the system clock.
| using TotalCallback = std::function< void( std::uint64_t ) > |
A function whose argument is the total size of the ongoing operation.
| using tregex = std::basic_regex< tchar > |
| using tstring = std::basic_string< tchar > |
| using underlying_type_t = typename std::underlying_type< Enum >::type |
Alias for the underlying integer type of the given enumeration type.
|
strong |
|
strong |
The BitCompressionLevel enum represents the compression level used by 7z when creating archives.
| Enumerator | |
|---|---|
| None | Copy mode (no compression). |
| Fastest | Fastest compressing. |
| Fast | Fast compressing. |
| Normal | Normal compressing. |
| Max | Maximum compressing. |
| Ultra | Ultra compressing. |
|
strong |
The BitCompressionMethod enum represents the compression methods used by 7z when creating archives.
|
strong |
The BitError enum struct values represent bit7z specific errors.
|
strong |
The BitFailureSource enum struct values represent bit7z error conditions.
They can be used for performing queries on bit7z's error_codes, for the purpose of grouping, classification, or error translation.
|
strong |
The BitProperty enum represents the archive/item properties that 7-zip can read or write.
|
strong |
The BitPropVariantType enum represents the possible types that a BitPropVariant can store.
| Enumerator | |
|---|---|
| Empty | Empty BitPropVariant type. |
| Bool | Boolean BitPropVariant type. |
| String | String BitPropVariant type. |
| UInt8 | 8-bit unsigned int BitPropVariant type |
| UInt16 | 16-bit unsigned int BitPropVariant type |
| UInt32 | 32-bit unsigned int BitPropVariant type |
| UInt64 | 64-bit unsigned int BitPropVariant type |
| Int8 | 8-bit signed int BitPropVariant type |
| Int16 | 16-bit signed int BitPropVariant type |
| Int32 | 32-bit signed int BitPropVariant type |
| Int64 | 64-bit signed int BitPropVariant type |
| FileTime | FILETIME BitPropVariant type. |
|
strong |
|
strong |
The EncryptionScope enum represents the scope of encryption applied when setting a password on an archive.
| Enumerator | |
|---|---|
| DataOnly | Only the archive's file data is encrypted. |
| DataAndHeaders | Both the archive's file data and headers are encrypted (valid only for the 7z format). |
|
strong |
|
strong |
|
strong |
|
strong |
The FormatFeatures enum specifies the features supported by an archive file format.
|
strong |
Enumeration representing how a handler should deal when an output file already exists.
|
strong |
|
strong |
Enumeration representing how an archive creator should deal when the output archive already exists.
| Enumerator | |
|---|---|
| None | The creator will throw an exception (unless the OverwriteMode is not None). |
| Append | The creator will append the new items to the existing archive. |
| Update | New items whose path already exists in the archive will overwrite the old ones, other will be appended. |
| Overwrite |
|
| void indexBuffer | ( | BitItemsVector & | outVector, |
| const buffer_t & | inBuffer, | ||
| const tstring & | name ) |
Indexes the given buffer, using the given name as a path when compressed in archives.
| outVector | the output vector. |
| inBuffer | the buffer containing the file to be indexed in the vector. |
| name | user-defined path to be used inside archives. |
| void indexDirectory | ( | BitItemsVector & | outVector, |
| const tstring & | inDir, | ||
| const tstring & | filter = {}, | ||
| IndexingOptions | options = {} ) |
Indexes the given directory, adding to the vector all the files that match the wildcard filter.
| outVector | the output vector. |
| inDir | the directory to be indexed. |
| filter | (optional) the wildcard filter to be used for indexing; empty string means "index all files". |
| options | (optional) the settings to be used while indexing the given directory and all of its subdirectories. |
| void indexDirectoryContent | ( | BitItemsVector & | outVector, |
| const tstring & | inDir, | ||
| const tstring & | filter = {}, | ||
| IndexingOptions | options = {} ) |
Indexes the content of the given directory, adding to the vector all the files that match the wildcard filter.
| outVector | the output vector. |
| inDir | the directory to be indexed. |
| filter | (optional) the wildcard filter to be used for indexing; empty string means "index all files". |
| options | (optional) the settings to be used while indexing the given directory and all of its subdirectories. |
| void indexFile | ( | BitItemsVector & | outVector, |
| const tstring & | inFile, | ||
| const tstring & | name = {}, | ||
| SymlinkPolicy | symlinkPolicy = SymlinkPolicy::Follow ) |
Indexes the given file path, with an optional user-defined path to be used in output archives.
| outVector | the output vector. |
| inFile | the path to the filesystem file to be indexed in the vector. |
| name | (optional) user-defined path to be used inside archives. |
| symlinkPolicy | (optional) whether to follow symbolic links or not. |
| void indexPaths | ( | BitItemsVector & | outVector, |
| const std::vector< std::pair< tstring, tstring > > & | inPaths, | ||
| IndexingOptions | options = {} ) |
Indexes the given vector of <filesystem path, in-archive path> pairs, adding to the vector all the files.
| outVector | the output vector. |
| inPaths | vector of <filesystem path, in-archive path> pairs. |
| options | (optional) the settings to be used while indexing the given directory and all of its subdirectories. |
| void indexPaths | ( | BitItemsVector & | outVector, |
| const std::vector< tstring > & | inPaths, | ||
| IndexingOptions | options = {} ) |
Indexes the given vector of filesystem paths, adding to the item vector all the files.
| outVector | the output vector. |
| inPaths | the vector of filesystem paths. |
| options | (optional) the settings to be used while indexing the given directory and all of its subdirectories. |
| void indexPathsMap | ( | BitItemsVector & | outVector, |
| const std::map< tstring, tstring > & | inPaths, | ||
| IndexingOptions | options = {} ) |
Indexes the given map of filesystem paths, adding to the vector all the files.
| outVector | the output vector. |
| inPaths | map of filesystem paths with the corresponding user-defined path desired inside the output archive. |
| options | (optional) the settings to be used while indexing the given directory and all of its subdirectories. |
| void indexStream | ( | BitItemsVector & | outVector, |
| std::istream & | inStream, | ||
| const tstring & | name ) |
Indexes the given standard input stream, using the given name as a path when compressed in archives.
| outVector | the output vector. |
| inStream | the standard input stream of the file to be indexed in the vector. |
| name | user-defined path to be used inside archives. |
|
noexcept |
Returns a std::error_code corresponding to the last system error that occurred.
|
noexcept |
Creates a std::error_code from the given BitError value.
| error | the BitError value to be converted. |
|
noexcept |
Creates a std::error_condition from the given BitFailureSource value.
| failureSource | the BitFailureSource value to be converted. |
|
noexcept |
Creates a std::error_code from the given HRESULT value.
| res | the HRESULT value to be converted. |
|
noexcept |
Checks whether two BitPropVariant objects differ in type or value.
| lhs | the first variant to be compared. |
| rhs | the second variant to be compared. |
|
constexprnoexcept |
Computes the bitwise AND of two FormatFeatures values.
| lhs | the first set of features. |
| rhs | the second set of features. |
|
noexcept |
Checks whether two BitPropVariant objects have the same type and value.
| lhs | the first variant to be compared. |
| rhs | the second variant to be compared. |
|
constexprnoexcept |
Computes the bitwise OR of two FormatFeatures values.
| lhs | the first set of features. |
| rhs | the second set of features. |
|
inline |
Converts a string to a native string.
| str | the string to be converted. |
| auto to_native_string | ( | const sevenzip_string & | str | ) | -> native_string |
Converts a string to a native string.
| str | the string to be converted. |
|
inline |
Converts a string to a native string.
| str | the string to be converted. |
| auto to_native_string | ( | T | arg | ) | -> native_string |
Converts an arithmetic value to a native string.
| arg | the arithmetic value to be converted. |
| auto to_string | ( | BitProperty | property | ) | -> std::string |
Returns the name of the given archive/item property.
| property | the property whose name will be returned. |
|
inline |
Converts a native string to a tstring.
| str | The native string to be converted. |
|
inline |
Converts a native string to a tstring.
| str | The native string to be converted. |
| auto to_tstring | ( | T | arg | ) | -> std::basic_string< tchar > |
Converts an arithmetic value to a tstring.
| arg | the arithmetic value to be converted. |
|
constexprnoexcept |
Converts an enumerator to its underlying integer value.
| enum_value | the enumerator to be converted. |
|
constexpr |
The default file path for the 7-zip shared library to be used by bit7z in case the user doesn't pass a path to the constructor of the Bit7zLibrary class.