1 // DummyOutStream.h 2 3 #ifndef ZIP7_INC_DUMMY_OUT_STREAM_H 4 #define ZIP7_INC_DUMMY_OUT_STREAM_H 5 6 #include "../../../Common/MyCom.h" 7 8 #include "../../IStream.h" 9 10 Z7_CLASS_IMP_NOQIB_1( 11 CDummyOutStream 12 , ISequentialOutStream 13 ) 14 CMyComPtr<ISequentialOutStream> _stream; 15 UInt64 _size; 16 public: SetStream(ISequentialOutStream * outStream)17 void SetStream(ISequentialOutStream *outStream) { _stream = outStream; } ReleaseStream()18 void ReleaseStream() { _stream.Release(); } Init()19 void Init() { _size = 0; } GetSize()20 UInt64 GetSize() const { return _size; } 21 }; 22 23 #endif 24