Class FileExtractCallback

Synopsis

#include <include/fileextractcallback.hpp>

class FileExtractCallback : public ExtractCallback

Description

No description yet.

Inheritance

Ancestors: ExtractCallback

Methods

FileExtractCallbackMost of this code, though heavily modified, is taken from the CExtractCallback class in Client7z.cpp of the 7z SDK Main changes made:
~FileExtractCallback
GetStreamIArchiveExtractCallback.
SetOperationResult

Source

Lines 32-61 in include/fileextractcallback.hpp.

class FileExtractCallback : public ExtractCallback {
    public:
        FileExtractCallback( const BitArchiveHandler& handler,
                             const BitInputArchive& inputArchive,
                             const wstring& inFilePath,
                             const wstring& directoryPath );
        virtual ~FileExtractCallback() override;
        // IArchiveExtractCallback
        STDMETHOD( GetStream )( UInt32 index, ISequentialOutStream** outStream, Int32 askExtractMode );
        STDMETHOD( SetOperationResult )( Int32 resultEOperationResult );
    private:
        wstring mInFilePath;     // Input file path
        wstring mDirectoryPath;  // Output directory
        wstring mFilePath;       // name inside archive
        wstring mDiskFilePath;   // full path to file on disk
        struct CProcessedFileInfo {
            FILETIME MTime;
            UInt32 Attrib;
            bool isDir;
            bool AttribDefined;
            bool MTimeDefined;
        } mProcessedFileInfo;
        COutFileStream* mOutFileStreamSpec;
        CMyComPtr< ISequentialOutStream > mOutFileStream;
};





Add Discussion as Guest

Log in