Function FileUpdateCallback


#include <include/fileupdatecallback.hpp>

explicit FileUpdateCallback(const BitArchiveCreator &creator, const vector< FSItem > &new_items)


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 46-50 in src/fileupdatecallback.cpp. Line 38 in include/fileupdatecallback.hpp.

FileUpdateCallback::FileUpdateCallback( const BitArchiveCreator& creator,
                                        const vector< FSItem >& new_items )
    : UpdateCallback( creator ),
      mNewItems( new_items ),
      mVolSize( 0 ) {}

Add Discussion as Guest

Log in