Mercurial > vba-linux
diff src/win32/7zip/7z/CPP/7zip/Archive/Rar/RarVolumeInStream.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/Rar/RarVolumeInStream.h Sat Mar 03 10:31:27 2012 -0600 1.3 @@ -0,0 +1,49 @@ 1.4 +// RarVolumeInStream.h 1.5 + 1.6 +#ifndef __RAR_VOLUME_IN_STREAM_H 1.7 +#define __RAR_VOLUME_IN_STREAM_H 1.8 + 1.9 +#include "../../IStream.h" 1.10 +#include "RarIn.h" 1.11 + 1.12 +namespace NArchive { 1.13 +namespace NRar { 1.14 + 1.15 +struct CRefItem 1.16 +{ 1.17 + int VolumeIndex; 1.18 + int ItemIndex; 1.19 + int NumItems; 1.20 +}; 1.21 + 1.22 +class CFolderInStream: 1.23 + public ISequentialInStream, 1.24 + public CMyUnknownImp 1.25 +{ 1.26 +public: 1.27 + MY_UNKNOWN_IMP 1.28 + 1.29 + STDMETHOD(Read)(void *data, UInt32 size, UInt32 *processedSize); 1.30 + 1.31 +private: 1.32 + CObjectVector<CInArchive> *_archives; 1.33 + const CObjectVector<CItemEx> *_items; 1.34 + CRefItem _refItem; 1.35 + int _curIndex; 1.36 + UInt32 _crc; 1.37 + bool _fileIsOpen; 1.38 + CMyComPtr<ISequentialInStream> _stream; 1.39 + 1.40 + HRESULT OpenStream(); 1.41 + HRESULT CloseStream(); 1.42 +public: 1.43 + void Init(CObjectVector<CInArchive> *archives, 1.44 + const CObjectVector<CItemEx> *items, 1.45 + const CRefItem &refItem); 1.46 + 1.47 + CRecordVector<UInt32> CRCs; 1.48 +}; 1.49 + 1.50 +}} 1.51 + 1.52 +#endif