• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // DummyOutStream.h
2 
3 #ifndef __DUMMY_OUT_STREAM_H
4 #define __DUMMY_OUT_STREAM_H
5 
6 #include "../../../Common/MyCom.h"
7 
8 #include "../../IStream.h"
9 
10 class CDummyOutStream:
11   public ISequentialOutStream,
12   public CMyUnknownImp
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; }
20   MY_UNKNOWN_IMP
21   STDMETHOD(Write)(const void *data, UInt32 size, UInt32 *processedSize);
GetSize()22   UInt64 GetSize() const { return _size; }
23 };
24 
25 #endif
26