diff options
Diffstat (limited to '')
-rw-r--r-- | CPP/7zip/Compress/XzEncoder.h | 29 |
1 files changed, 9 insertions, 20 deletions
diff --git a/CPP/7zip/Compress/XzEncoder.h b/CPP/7zip/Compress/XzEncoder.h index ea5190e..434f582 100644 --- a/CPP/7zip/Compress/XzEncoder.h +++ b/CPP/7zip/Compress/XzEncoder.h | |||
@@ -1,7 +1,7 @@ | |||
1 | // XzEncoder.h | 1 | // XzEncoder.h |
2 | 2 | ||
3 | #ifndef __XZ_ENCODER_H | 3 | #ifndef ZIP7_INC_XZ_ENCODER_H |
4 | #define __XZ_ENCODER_H | 4 | #define ZIP7_INC_XZ_ENCODER_H |
5 | 5 | ||
6 | #include "../../../C/XzEnc.h" | 6 | #include "../../../C/XzEnc.h" |
7 | 7 | ||
@@ -12,33 +12,22 @@ | |||
12 | namespace NCompress { | 12 | namespace NCompress { |
13 | namespace NXz { | 13 | namespace NXz { |
14 | 14 | ||
15 | 15 | Z7_CLASS_IMP_COM_3( | |
16 | class CEncoder: | 16 | CEncoder |
17 | public ICompressCoder, | 17 | , ICompressCoder |
18 | public ICompressSetCoderProperties, | 18 | , ICompressSetCoderProperties |
19 | public ICompressSetCoderPropertiesOpt, | 19 | , ICompressSetCoderPropertiesOpt |
20 | public CMyUnknownImp | 20 | ) |
21 | { | ||
22 | CXzEncHandle _encoder; | 21 | CXzEncHandle _encoder; |
23 | public: | 22 | public: |
24 | CXzProps xzProps; | 23 | CXzProps xzProps; |
25 | 24 | ||
26 | MY_UNKNOWN_IMP3( | ||
27 | ICompressCoder, | ||
28 | ICompressSetCoderProperties, | ||
29 | ICompressSetCoderPropertiesOpt) | ||
30 | |||
31 | void InitCoderProps(); | 25 | void InitCoderProps(); |
32 | HRESULT SetCheckSize(UInt32 checkSizeInBytes); | 26 | HRESULT SetCheckSize(UInt32 checkSizeInBytes); |
33 | HRESULT SetCoderProp(PROPID propID, const PROPVARIANT &prop); | 27 | HRESULT SetCoderProp(PROPID propID, const PROPVARIANT &prop); |
34 | |||
35 | STDMETHOD(Code)(ISequentialInStream *inStream, ISequentialOutStream *outStream, | ||
36 | const UInt64 *inSize, const UInt64 *outSize, ICompressProgressInfo *progress); | ||
37 | STDMETHOD(SetCoderProperties)(const PROPID *propIDs, const PROPVARIANT *props, UInt32 numProps); | ||
38 | STDMETHOD(SetCoderPropertiesOpt)(const PROPID *propIDs, const PROPVARIANT *props, UInt32 numProps); | ||
39 | 28 | ||
40 | CEncoder(); | 29 | CEncoder(); |
41 | virtual ~CEncoder(); | 30 | ~CEncoder(); |
42 | }; | 31 | }; |
43 | 32 | ||
44 | }} | 33 | }} |