diff src/win32/7zip/7z/CPP/7zip/Common/MethodProps.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/Common/MethodProps.h	Sat Mar 03 10:31:27 2012 -0600
     1.3 @@ -0,0 +1,41 @@
     1.4 +// MethodProps.h
     1.5 +
     1.6 +#ifndef __7Z_METHOD_PROPS_H
     1.7 +#define __7Z_METHOD_PROPS_H
     1.8 +
     1.9 +#include "../../Common/MyVector.h"
    1.10 +
    1.11 +#include "../../Windows/PropVariant.h"
    1.12 +
    1.13 +#include "MethodId.h"
    1.14 +
    1.15 +struct CProp
    1.16 +{
    1.17 +  PROPID Id;
    1.18 +  NWindows::NCOM::CPropVariant Value;
    1.19 +};
    1.20 +
    1.21 +struct CMethod
    1.22 +{
    1.23 +  CMethodId Id;
    1.24 +  CObjectVector<CProp> Props;
    1.25 +};
    1.26 +
    1.27 +struct CMethodsMode
    1.28 +{
    1.29 +  CObjectVector<CMethod> Methods;
    1.30 +  #ifdef COMPRESS_MT
    1.31 +  UInt32 NumThreads;
    1.32 +  #endif
    1.33 +
    1.34 +  CMethodsMode()
    1.35 +      #ifdef COMPRESS_MT
    1.36 +      : NumThreads(1)
    1.37 +      #endif
    1.38 +  {}
    1.39 +  bool IsEmpty() const { return Methods.IsEmpty() ; }
    1.40 +};
    1.41 +
    1.42 +HRESULT SetMethodProperties(const CMethod &method, const UInt64 *inSizeForReduce, IUnknown *coder);
    1.43 +
    1.44 +#endif