home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cset21v1.zip / IBMCPP / IBMCLASS / ISTRENUM.HPP < prev    next >
C/C++ Source or Header  |  1993-10-22  |  3KB  |  62 lines

  1. #ifndef _ISTRENUM_
  2. #define _ISTRENUM_
  3. /*******************************************************************************
  4. * FILE NAME: istrenum.hpp                                                      *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   This file contains the declaration(s) of the class(es):                    *
  8. *     IStringEnum - Placeholder for enumerations related to class IString.      *
  9. *                                                                              *
  10. * COPYRIGHT:                                                                   *
  11. *   Licensed Materials - Property of IBM                                       *
  12. *   (C) Copyright IBM Corporation 1992, 1993                                   *
  13. *   All Rights Reserved                                                        *
  14. *   US Government Users Restricted Rights - Use, duplication, or               *
  15. *   disclosure                                                                 *
  16. *   restricted by GSA ADP Schedule Contract with IBM Corp.                     *
  17. *                                                                              *
  18. *******************************************************************************/
  19.  
  20. /*----------------------------------------------------------------------------*/
  21. /* Align classes on four byte boundary.                                       */
  22. /*----------------------------------------------------------------------------*/
  23. #pragma pack(4)
  24.  
  25. class IStringEnum {
  26. /*******************************************************************************
  27.   The IStringEnum class serves as a repository for enumeration types related
  28.   to the IString class.  These enumeration types are placed here so they can
  29.   easily be shared between code that implements the IString class and the
  30.   IBuffer and IDBCSBuffer classes.
  31. *******************************************************************************/
  32. public:
  33. /*------------------------------ Related Types ---------------------------------
  34.   This class defines the following enumeration types:
  35.     StripMode - Enumeration that defines the mode of operation of various
  36.                 functions that strip leading characters, trailing characters,
  37.                 or both from IStrings.
  38.     CharType  - Enumeration that defines the various types of characters that
  39.                 comprise an IString.
  40. ------------------------------------------------------------------------------*/
  41. typedef enum
  42.   {
  43.   leading,
  44.   trailing,
  45.   both
  46.   } StripMode;
  47.  
  48. typedef enum
  49.   {
  50.   sbcs,
  51.   dbcs1,
  52.   dbcs2
  53.   } CharType;
  54. }; // class IStringEnum
  55.  
  56. /*----------------------------------------------------------------------------*/
  57. /* Resume compiler default packing.                                           */
  58. /*----------------------------------------------------------------------------*/
  59. #pragma pack()
  60.  
  61. #endif // _ISTRENUM_
  62.