diff src/win32/7zip/7z/CPP/7zip/Archive/7z/7zFolderOutStream.h @ 1:f9f4f1b99eed

importing src directory
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Mar 2012 10:31:27 -0600
parents
children
line wrap: on
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/win32/7zip/7z/CPP/7zip/Archive/7z/7zFolderOutStream.h	Sat Mar 03 10:31:27 2012 -0600
     1.3 @@ -0,0 +1,60 @@
     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 +
    1.43 +  bool _checkCrc;
    1.44 +  UInt64 _filePos;
    1.45 +
    1.46 +  HRESULT OpenFile();
    1.47 +  HRESULT WriteEmptyFiles();
    1.48 +public:
    1.49 +  HRESULT Init(
    1.50 +      const CArchiveDatabaseEx *archiveDatabase,
    1.51 +      UInt32 ref2Offset,
    1.52 +      UInt32 startIndex,
    1.53 +      const CBoolVector *extractStatuses,
    1.54 +      IArchiveExtractCallback *extractCallback,
    1.55 +      bool testMode,
    1.56 +      bool checkCrc);
    1.57 +  HRESULT FlushCorrupted(Int32 resultEOperationResult);
    1.58 +  HRESULT WasWritingFinished();
    1.59 +};
    1.60 +
    1.61 +}}
    1.62 +
    1.63 +#endif