Class BitArchiveOpener

Synopsis

#include <include/bitarchiveopener.hpp>

class BitArchiveOpener : public BitArchiveHandler

Description

Abstract class representing a generic archive opener.

Inheritance

Ancestors: BitArchiveHandler

Decsendents: BitArchiveInfo, BitStreamExtractor, BitExtractor, BitMemExtractor

Methods

BitArchiveOpener
~BitArchiveOpener
extractionFormatReturn the archive format used by the archive opener.
extractToBuffer
extractToBufferMap
extractToFileSystem
extractToStream
formatReturn the archive format used by the archive opener.

Source

Lines 39-74 in include/bitarchiveopener.hpp.

class BitArchiveOpener : public BitArchiveHandler {
    public:
        /**
         * @return the archive format used by the archive opener.
         */
        const BitInFormat& format() const override;
        /**
         * @return the archive format used by the archive opener.
         */
        const BitInFormat& extractionFormat() const;
    protected:
        const BitInFormat& mFormat;
        BitArchiveOpener( const Bit7zLibrary& lib, const BitInFormat& format, const wstring& password = L"" );
        virtual ~BitArchiveOpener() override = 0;
        void extractToFileSystem( const BitInputArchive& in_archive,
                                  const wstring& in_file,
                                  const wstring& out_dir,
                                  const vector< uint32_t >& indices ) const;
        void extractToBuffer( const BitInputArchive& in_archive,
                              vector< byte_t >& out_buffer,
                              unsigned int index ) const;
        void extractToStream( const BitInputArchive& in_archive,
                              ostream& out_stream,
                              unsigned int index ) const;
        void extractToBufferMap( const BitInputArchive& in_archive,
                                 map< wstring, vector< byte_t > >& out_map ) const;
};





Add Discussion as Guest

Log in