diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/win32/7zip/7z/CPP/7zip/Archive/7z/7zCompressionMode.h	Sat Mar 03 10:31:27 2012 -0600
     1.3 @@ -0,0 +1,50 @@
     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 "../../../Common/MyString.h"
    1.10 +
    1.11 +#include "../../../Windows/PropVariant.h"
    1.12 +
    1.13 +#include "../../Common/MethodProps.h"
    1.14 +
    1.15 +namespace NArchive {
    1.16 +namespace N7z {
    1.17 +
    1.18 +struct CMethodFull: public CMethod
    1.19 +{
    1.20 +  UInt32 NumInStreams;
    1.21 +  UInt32 NumOutStreams;
    1.22 +  bool IsSimpleCoder() const { return (NumInStreams == 1) && (NumOutStreams == 1); }
    1.23 +};
    1.24 +
    1.25 +struct CBind
    1.26 +{
    1.27 +  UInt32 InCoder;
    1.28 +  UInt32 InStream;
    1.29 +  UInt32 OutCoder;
    1.30 +  UInt32 OutStream;
    1.31 +};
    1.32 +
    1.33 +struct CCompressionMethodMode
    1.34 +{
    1.35 +  CObjectVector<CMethodFull> Methods;
    1.36 +  CRecordVector<CBind> Binds;
    1.37 +  #ifdef COMPRESS_MT
    1.38 +  UInt32 NumThreads;
    1.39 +  #endif
    1.40 +  bool PasswordIsDefined;
    1.41 +  UString Password;
    1.42 +
    1.43 +  bool IsEmpty() const { return (Methods.IsEmpty() && !PasswordIsDefined); }
    1.44 +  CCompressionMethodMode(): PasswordIsDefined(false)
    1.45 +      #ifdef COMPRESS_MT
    1.46 +      , NumThreads(1)
    1.47 +      #endif
    1.48 +  {}
    1.49 +};
    1.50 +
    1.51 +}}
    1.52 +
    1.53 +#endif