other-licenses/7zstub/src/7zip/Archive/7z/7zCompressionMode.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/other-licenses/7zstub/src/7zip/Archive/7z/7zCompressionMode.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,64 @@
     1.4 +// 7zCompressionMode.h
     1.5 +
     1.6 +#ifndef __7Z_COMPRESSION_MODE_H
     1.7 +#define __7Z_COMPRESSION_MODE_H
     1.8 +
     1.9 +#include "../../../Windows/PropVariant.h"
    1.10 +
    1.11 +#include "7zMethodID.h"
    1.12 +
    1.13 +namespace NArchive {
    1.14 +namespace N7z {
    1.15 +
    1.16 +struct CProperty
    1.17 +{
    1.18 +  PROPID PropID;
    1.19 +  NWindows::NCOM::CPropVariant Value;
    1.20 +};
    1.21 +
    1.22 +struct CMethodFull
    1.23 +{
    1.24 +  CMethodID MethodID;
    1.25 +  UInt32 NumInStreams;
    1.26 +  UInt32 NumOutStreams;
    1.27 +  bool IsSimpleCoder() const 
    1.28 +    { return (NumInStreams == 1) && (NumOutStreams == 1); }
    1.29 +
    1.30 +  #ifdef EXCLUDE_COM
    1.31 +  #else
    1.32 +  CLSID EncoderClassID;
    1.33 +  CSysString FilePath;
    1.34 +  #endif
    1.35 +
    1.36 +  CObjectVector<CProperty> CoderProperties;
    1.37 +};
    1.38 +
    1.39 +struct CBind
    1.40 +{
    1.41 +  UInt32 InCoder;
    1.42 +  UInt32 InStream;
    1.43 +  UInt32 OutCoder;
    1.44 +  UInt32 OutStream;
    1.45 +};
    1.46 +
    1.47 +struct CCompressionMethodMode
    1.48 +{
    1.49 +  CObjectVector<CMethodFull> Methods;
    1.50 +  CRecordVector<CBind> Binds;
    1.51 +  #ifdef COMPRESS_MT
    1.52 +  UInt32 NumThreads;
    1.53 +  #endif
    1.54 +  bool PasswordIsDefined;
    1.55 +  UString Password;
    1.56 +
    1.57 +  bool IsEmpty() const { return (Methods.IsEmpty() && !PasswordIsDefined); }
    1.58 +  CCompressionMethodMode(): PasswordIsDefined(false)
    1.59 +      #ifdef COMPRESS_MT
    1.60 +      , NumThreads(1) 
    1.61 +      #endif
    1.62 +  {}
    1.63 +};
    1.64 +
    1.65 +}}
    1.66 +
    1.67 +#endif

mercurial