Skip to content

BitExtractor

Oz edited this page Apr 21, 2016 · 15 revisions

The BitExtractor class allows to extract the content of various file archives.

#include "bitextractor.hpp"

List of all members

Public Members

Return type Name
BitExtractor( const Bit7zLibrary &lib, const BitInFormat &format )
const BitInFormat & extractionFormat()
void setPassword( const wstring &password )
void extract( const wstring &in_file, const wstring &out_dir=L"" ) const
void extract( const wstring &in_file, vector< byte_t > &out_buffer, unsigned int index=0 )

Member Function Documentation

BitExtractor( const Bit7zLibrary &lib, const BitInFormat &format )

Constructs a BitExtractor object.

The Bit7zLibrary parameter is needed in order to have access to the functionalities of the 7z DLLs. On the other hand, the BitInFormat is required in order to know the format of the input archive.


#### const [BitInFormat](./BitInFormat)& extractionFormat() Returns the archive format used by the extractor
#### void setPassword( const wstring &password ) Sets up a password to be used to open the archives.

When setting a password, the opened archive will be decrypted using the default cryptographic method of the input format.

Note: Calling setPassword when the input archive is not encrypted does not have effect on the extraction process.


#### void extract( const wstring &in_file, const wstring &out_dir=L"" ) const Extracts the given archive into the choosen directory.
#### void extract( const wstring &in_file, vector< [byte_t](./bit7z) > &out_buffer, unsigned int index=0 ) Extracts the given archive into the output buffer.
Clone this wiki locally