Class StreamUpdateCallback

Synopsis

#include <include/streamupdatecallback.hpp>

class StreamUpdateCallback : public UpdateCallback

Description

No description yet.

Inheritance

Ancestors: UpdateCallback

Methods

StreamUpdateCallbackMost of this code is taken from the CUpdateCallback class in Client7z.cpp of the 7z SDK Main changes made:
~StreamUpdateCallback
GetPropertyIArchiveUpdateCallback2.
GetStream
GetVolumeSizeIArchiveUpdateCallback2 specific methods are unnecessary, but we need a common interface (CompressCallback) for both this class and UpdateCallback!
GetVolumeStream
itemsCount

Source

Lines 34-53 in include/streamupdatecallback.hpp.

class StreamUpdateCallback : public UpdateCallback {
    public:
        StreamUpdateCallback( const BitArchiveCreator& creator,
                              istream& in_stream,
                              const wstring& in_stream_name );
        virtual ~StreamUpdateCallback() override;
        // IArchiveUpdateCallback2
        STDMETHOD( GetProperty )( UInt32 index, PROPID propID, PROPVARIANT* value );
        STDMETHOD( GetStream )( UInt32 index, ISequentialInStream** inStream );
        STDMETHOD( GetVolumeSize )( UInt32 index, UInt64* size );
        STDMETHOD( GetVolumeStream )( UInt32 index, ISequentialOutStream** volumeStream );
        uint32_t itemsCount() const override;
    private:
        istream& mStream;
        const wstring& mStreamName;
};





Add Discussion as Guest

Log in