home *** CD-ROM | disk | FTP | other *** search
- #ifndef __DECOMP_H__
- #define __DECOMP_H__
-
- /* Xceed Streaming Compression Library - Decomp Sample Application
- * Copyright (c) 2001 Xceed Software Inc.
- *
- * [Compress.h]
- *
- * This console application shows how to decompress a file, using different
- * compression formats. It specifically demonstrates:
- * - The ReadFile and ProcessFile methods.
- * - The CompressionFormat properties.
- *
- * This file is part of the Xceed Streaming Compression Library sample
- * applications. The source code in this file is only intended as
- * a supplement to Xceed Streaming Compression Library's documentation,
- * and is provided "as is", without warranty of any kind, either
- * expressed or implied.
- */
-
- //
- // The Visual C++ compiler will automatically generate wrapper classes
- // around available interfaces found in this type library.
- //
-
- #import "XceedSCO.dll" no_namespace named_guids
-
- //
- // Enumerations
- //
-
- // The different compression formats supported by the Xceed Streaming Compression
- // library.
- enum ECompressionFormat
- {
- cfBZip2 = 0,
- cfGZip = 1,
- cfStandard = 2,
- cfZip3 = 3,
- cfZLib = 4,
- // The next three items are not compression formats. They are compression methods.
- // See the comments in the ExtractParameters function
- cfBWT = 5, //BurrowsWheeler
- cfDeflate = 6,
- cfStore = 7,
- };
-
- //
- // Data types
- //
-
- struct SCompressionFormat
- {
- const char* pszCommandLine;
- ECompressionFormat eFormat;
- };
-
-
- //
- // Prototypes
- //
-
- void ShowHelp();
-
- bool ExtractParameters( int argc, char* argv[],
- IXceedStreamingCompressionPtr piComp,
- _bstr_t& bstrInputFileName,
- _bstr_t& bstrOutputFileName );
-
-
- #endif // __DECOMP_H__
-