Mercurial > vba-linux
view src/win32/7zip/7z/CPP/7zip/Archive/7z/7zCompressionMode.h @ 1:f9f4f1b99eed
importing src directory
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Mar 2012 10:31:27 -0600 |
parents | |
children |
line wrap: on
line source
1 // 7zCompressionMode.h3 #ifndef __7Z_COMPRESSION_MODE_H4 #define __7Z_COMPRESSION_MODE_H6 #include "../../../Common/MyString.h"8 #include "../../../Windows/PropVariant.h"10 #include "../../Common/MethodProps.h"12 namespace NArchive {13 namespace N7z {15 struct CMethodFull: public CMethod16 {17 UInt32 NumInStreams;18 UInt32 NumOutStreams;19 bool IsSimpleCoder() const { return (NumInStreams == 1) && (NumOutStreams == 1); }20 };22 struct CBind23 {24 UInt32 InCoder;25 UInt32 InStream;26 UInt32 OutCoder;27 UInt32 OutStream;28 };30 struct CCompressionMethodMode31 {32 CObjectVector<CMethodFull> Methods;33 CRecordVector<CBind> Binds;34 #ifdef COMPRESS_MT35 UInt32 NumThreads;36 #endif37 bool PasswordIsDefined;38 UString Password;40 bool IsEmpty() const { return (Methods.IsEmpty() && !PasswordIsDefined); }41 CCompressionMethodMode(): PasswordIsDefined(false)42 #ifdef COMPRESS_MT43 , NumThreads(1)44 #endif45 {}46 };48 }}50 #endif