home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 September / Chip_2002-09_cd1.bin / zkuste / vbasic / Data / Utils / XZipComp.exe / XceedCompression.Cab / F112864_Decomp.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-05-11  |  1.7 KB  |  72 lines

  1. #ifndef __DECOMP_H__
  2. #define __DECOMP_H__
  3.  
  4. /* Xceed Streaming Compression Library - Decomp Sample Application
  5.  * Copyright (c) 2001 Xceed Software Inc.
  6.  *
  7.  * [Compress.h]
  8.  *
  9.  * This console application shows how to decompress a file, using different
  10.  * compression formats. It specifically demonstrates:
  11.  *  - The ReadFile and ProcessFile methods.
  12.  *  - The CompressionFormat properties.
  13.  *
  14.  * This file is part of the Xceed Streaming Compression Library sample 
  15.  * applications. The source code in this file is only intended as 
  16.  * a supplement to Xceed Streaming Compression Library's documentation, 
  17.  * and is provided "as is", without warranty of any kind, either 
  18.  * expressed or implied. 
  19.  */
  20.  
  21. //
  22. // The Visual C++ compiler will automatically generate wrapper classes 
  23. // around available interfaces found in this type library.
  24. //
  25.  
  26. #import "XceedSCO.dll" no_namespace named_guids
  27.  
  28. //
  29. // Enumerations
  30. //
  31.  
  32. // The different compression formats supported by the Xceed Streaming Compression
  33. // library.
  34. enum ECompressionFormat
  35. {
  36.   cfBZip2 = 0,
  37.   cfGZip = 1,
  38.   cfStandard = 2,
  39.   cfZip3 = 3,
  40.   cfZLib = 4,
  41.   // The next three items are not compression formats. They are compression methods.
  42.   // See the comments in the ExtractParameters function
  43.   cfBWT = 5,   //BurrowsWheeler
  44.   cfDeflate = 6,
  45.   cfStore = 7,
  46. };
  47.  
  48. //
  49. // Data types
  50. //
  51.  
  52. struct SCompressionFormat
  53. {
  54.   const char*         pszCommandLine;
  55.   ECompressionFormat  eFormat;
  56. };
  57.  
  58.  
  59. //
  60. // Prototypes
  61. //
  62.  
  63. void ShowHelp();
  64.  
  65. bool ExtractParameters( int argc, char* argv[],
  66.                         IXceedStreamingCompressionPtr piComp,
  67.                         _bstr_t& bstrInputFileName,
  68.                         _bstr_t& bstrOutputFileName );
  69.  
  70.  
  71. #endif // __DECOMP_H__
  72.