OLD | NEW |
| (Empty) |
1 // HandlerOut.h | |
2 | |
3 #ifndef __HANDLER_OUT_H | |
4 #define __HANDLER_OUT_H | |
5 | |
6 #include "../../../Common/MyString.h" | |
7 #include "../../Common/MethodProps.h" | |
8 | |
9 namespace NArchive { | |
10 | |
11 struct COneMethodInfo | |
12 { | |
13 CObjectVector<CProp> Props; | |
14 UString MethodName; | |
15 }; | |
16 | |
17 class COutHandler | |
18 { | |
19 public: | |
20 HRESULT SetProperty(const wchar_t *name, const PROPVARIANT &value); | |
21 | |
22 HRESULT SetSolidSettings(const UString &s); | |
23 HRESULT SetSolidSettings(const PROPVARIANT &value); | |
24 | |
25 #ifdef COMPRESS_MT | |
26 UInt32 _numThreads; | |
27 #endif | |
28 | |
29 UInt32 _crcSize; | |
30 | |
31 CObjectVector<COneMethodInfo> _methods; | |
32 bool _removeSfxBlock; | |
33 | |
34 UInt64 _numSolidFiles; | |
35 UInt64 _numSolidBytes; | |
36 bool _numSolidBytesDefined; | |
37 bool _solidExtension; | |
38 | |
39 bool _compressHeaders; | |
40 bool _encryptHeadersSpecified; | |
41 bool _encryptHeaders; | |
42 | |
43 bool WriteCTime; | |
44 bool WriteATime; | |
45 bool WriteMTime; | |
46 | |
47 bool _autoFilter; | |
48 UInt32 _level; | |
49 | |
50 bool _volumeMode; | |
51 | |
52 HRESULT SetParam(COneMethodInfo &oneMethodInfo, const UString &name, const USt
ring &value); | |
53 HRESULT SetParams(COneMethodInfo &oneMethodInfo, const UString &srcString); | |
54 | |
55 void SetCompressionMethod2(COneMethodInfo &oneMethodInfo | |
56 #ifdef COMPRESS_MT | |
57 , UInt32 numThreads | |
58 #endif | |
59 ); | |
60 | |
61 void InitSolidFiles() { _numSolidFiles = (UInt64)(Int64)(-1); } | |
62 void InitSolidSize() { _numSolidBytes = (UInt64)(Int64)(-1); } | |
63 void InitSolid() | |
64 { | |
65 InitSolidFiles(); | |
66 InitSolidSize(); | |
67 _solidExtension = false; | |
68 _numSolidBytesDefined = false; | |
69 } | |
70 | |
71 void Init(); | |
72 | |
73 COutHandler() { Init(); } | |
74 | |
75 void BeforeSetProperty(); | |
76 | |
77 UInt32 minNumber; | |
78 UInt32 numProcessors; | |
79 UInt32 mainDicSize; | |
80 UInt32 mainDicMethodIndex; | |
81 }; | |
82 | |
83 } | |
84 | |
85 #endif | |
OLD | NEW |