home *** CD-ROM | disk | FTP | other *** search
- #ifndef __ENCODE_H__
- #define __ENCODE_H__
-
- /* Xceed Binary Encoding Library - Encode Sample Application
- * Copyright (c) 2001 Xceed Software Inc.
- *
- * [Encode.h]
- *
- * This console application shows how to encode a file, using different
- * encoding methods. It specifically demonstrates:
- * - The ReadFile and ProcessFile methods.
- * - The EndOfLineType, MaxLineLength, EncodingFormat,
- * DataFormating, HeaderDataForkLen and HeaderResourceForkLen properties
- * from the various Encoding format interfaces.
- *
- * This file is part of the Xceed Binary Encoding Library sample
- * applications. The source code in this file is only intended as
- * a supplement to Xceed Binary Encoding 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 "XceedBEN.dll" no_namespace named_guids
-
- //
- // Enumerations
- //
-
- //The different encoding methods supported by the Xceed Binary Encoding
- //library.
- enum EEncodingMethod
- {
- emUUEncode = 0,
- emXXEncode = 1,
- emBase64 = 2,
- emHexadecimal = 3,
- emQuotedPrintable = 4,
- emBinHex = 5,
- };
-
- //
- // Data types
- //
-
- //Structure that will be used in an array providing a correspondence
- //table between the possible encoding methods passed on the command line
- //and their value in the enumeration EEncodingMethod above.
- struct SEncodingMethod
- {
- const char* pszCommandLine;
- EEncodingMethod eMethod;
- };
-
-
- //
- // Prototypes
- //
-
- void ShowHelp();
-
- bool ExtractParameters( int argc, char* argv[],
- IXceedBinaryEncodingPtr piEncode,
- _bstr_t& bstrInputFileName,
- _bstr_t& bstrOutputFileName );
-
- #endif // __ENCODE_H__
-