Function StreamUpdateCallback


#include <include/streamupdatecallback.hpp>

StreamUpdateCallback(const BitArchiveCreator &creator, istream &in_stream, const wstring &in_stream_name)


Most of this code is taken from the CUpdateCallback class in Client7z.cpp of the 7z SDK Main changes made:

  • Use of std::vector instead of CRecordVector, CObjectVector and UStringVector
  • Use of std::wstring instead of UString (see Callback base interface)
  • Error messages are not showed (see comments in ExtractCallback)
  • The work performed originally by the Init method is now performed by the class constructor
  • FSItem class is used instead of CDirItem struct


Lines 38-43 in src/streamupdatecallback.cpp. Line 36 in include/streamupdatecallback.hpp.

StreamUpdateCallback::StreamUpdateCallback( const BitArchiveCreator& creator,
                                            istream& in_stream,
                                            const wstring& in_stream_name )
    : UpdateCallback( creator ),
      mStream( in_stream ),
      mStreamName( in_stream_name ) {}

Add Discussion as Guest

Log in