Imported Upstream version 9.20
[platform/upstream/7zip.git] / CPP / 7zip / Archive / Com / ComHandler.h
1 // ComHandler.h\r
2 \r
3 #ifndef __ARCHIVE_COM_HANDLER_H\r
4 #define __ARCHIVE_COM_HANDLER_H\r
5 \r
6 #include "Common/MyCom.h"\r
7 #include "../IArchive.h"\r
8 #include "ComIn.h"\r
9 \r
10 namespace NArchive {\r
11 namespace NCom {\r
12 \r
13 class CHandler:\r
14   public IInArchive,\r
15   public IInArchiveGetStream,\r
16   public CMyUnknownImp\r
17 {\r
18   CMyComPtr<IInStream> _stream;\r
19   CDatabase _db;\r
20 public:\r
21   MY_UNKNOWN_IMP2(IInArchive, IInArchiveGetStream)\r
22   INTERFACE_IInArchive(;)\r
23   STDMETHOD(GetStream)(UInt32 index, ISequentialInStream **stream);\r
24 };\r
25 \r
26 }}\r
27 \r
28 #endif\r