1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/other-licenses/7zstub/src/7zip/Archive/7z/7zFolderOutStream.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,57 @@ 1.4 +// 7zFolderOutStream.h 1.5 + 1.6 +#ifndef __7Z_FOLDEROUTSTREAM_H 1.7 +#define __7Z_FOLDEROUTSTREAM_H 1.8 + 1.9 +#include "7zIn.h" 1.10 + 1.11 +#include "../../IStream.h" 1.12 +#include "../IArchive.h" 1.13 +#include "../Common/OutStreamWithCRC.h" 1.14 + 1.15 +namespace NArchive { 1.16 +namespace N7z { 1.17 + 1.18 +class CFolderOutStream: 1.19 + public ISequentialOutStream, 1.20 + public CMyUnknownImp 1.21 +{ 1.22 +public: 1.23 + MY_UNKNOWN_IMP 1.24 + 1.25 + CFolderOutStream(); 1.26 + 1.27 + STDMETHOD(Write)(const void *data, UInt32 size, UInt32 *processedSize); 1.28 +private: 1.29 + 1.30 + COutStreamWithCRC *_outStreamWithHashSpec; 1.31 + CMyComPtr<ISequentialOutStream> _outStreamWithHash; 1.32 + const CArchiveDatabaseEx *_archiveDatabase; 1.33 + const CBoolVector *_extractStatuses; 1.34 + UInt32 _startIndex; 1.35 + UInt32 _ref2Offset; 1.36 + int _currentIndex; 1.37 + // UInt64 _currentDataPos; 1.38 + CMyComPtr<IArchiveExtractCallback> _extractCallback; 1.39 + bool _testMode; 1.40 + 1.41 + bool _fileIsOpen; 1.42 + UInt64 _filePos; 1.43 + 1.44 + HRESULT OpenFile(); 1.45 + HRESULT WriteEmptyFiles(); 1.46 +public: 1.47 + HRESULT Init( 1.48 + const CArchiveDatabaseEx *archiveDatabase, 1.49 + UInt32 ref2Offset, 1.50 + UInt32 startIndex, 1.51 + const CBoolVector *extractStatuses, 1.52 + IArchiveExtractCallback *extractCallback, 1.53 + bool testMode); 1.54 + HRESULT FlushCorrupted(Int32 resultEOperationResult); 1.55 + HRESULT WasWritingFinished(); 1.56 +}; 1.57 + 1.58 +}} 1.59 + 1.60 +#endif