home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / isynonym.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  2.2 KB  |  50 lines

  1. #ifndef _ISYNONYM_
  2. #define _ISYNONYM_
  3. /*******************************************************************************
  4. * FILE NAME: isynonym.hpp                                                      *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   This file declares synonyms for the types and values nested within         *
  8. *   class IBase (see <ibase.hpp>).  #include-ing this file results in those    *
  9. *   names being placed in the global name space, permitting consistent usage   *
  10. *   in IBase derived classes and client code.                                  *
  11. *                                                                              *
  12. *   If these global names conflict with other usage of these names within      *
  13. *   a client application, then this file should be modified for use in such    *
  14. *   application.  For example, if you are using another library which          *
  15. *   utilizes the typedef Boolean, then change "Boolean" below to something     *
  16. *   like "IBoolean." "IBoolean" would then be used throughout your             *
  17. *   application.                                                               *
  18. *                                                                              *
  19. * COPYRIGHT:                                                                   *
  20. *   IBM Open Class Library                                                     *
  21. *   (C) Copyright International Business Machines Corporation 1992, 1996       *
  22. *   Licensed Material - Program-Property of IBM - All Rights Reserved.         *
  23. *   US Government Users Restricted Rights - Use, duplication, or disclosure    *
  24. *   restricted by GSA ADP Schedule Contract with IBM Corp.                     *
  25. *                                                                              *
  26. *******************************************************************************/
  27.  
  28. #ifndef _BooleanType
  29.    #define _BooleanType
  30.  
  31. typedef int Boolean;
  32.  
  33. #endif
  34.  
  35. typedef int IBoolean;
  36.  
  37. #ifndef _BooleanConst
  38.    #define _BooleanConst
  39.  
  40.    enum {
  41.       false = 0,
  42.       False = 0,
  43.       true  = 1,
  44.       True  = 1
  45.    };
  46.  
  47. #endif
  48.  
  49. #endif /* _ISYNONYM_ */
  50.