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

  1. #ifndef _IEVTDATA_
  2. #define _IEVTDATA_
  3. /*******************************************************************************
  4. * FILE NAME: ievtdata.hpp                                                      *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   Declaration of the classes:                                                *
  8. *     IEventData                                                               *
  9. *     IEventParameter1                                                         *
  10. *     IEventParameter2                                                         *
  11. *     ILowEventParameter                                                       *
  12. *     IHighEventParameter                                                      *
  13. *     IEventResult                                                             *
  14. *                                                                              *
  15. * COPYRIGHT:                                                                   *
  16. *   IBM Open Class Library                                                     *
  17. *   (C) Copyright International Business Machines Corporation 1992, 1996       *
  18. *   Licensed Material - Program-Property of IBM - All Rights Reserved.         *
  19. *   US Government Users Restricted Rights - Use, duplication, or disclosure    *
  20. *   restricted by GSA ADP Schedule Contract with IBM Corp.                     *
  21. *                                                                              *
  22. *******************************************************************************/
  23. #include <ibase.hpp>
  24.  
  25. #pragma pack(4)
  26.  
  27. class IEventData : public IBase {
  28. typedef IBase
  29.   Inherited;
  30. public:
  31. /*------------------------------- Constructors -------------------------------*/
  32.   IEventData ( );
  33.   IEventData ( void*            value );
  34.   IEventData ( unsigned long    value );
  35.   IEventData ( int              value );
  36.   IEventData ( BooleanConstants value );
  37.  
  38.   IEventData ( unsigned short   lowValue,
  39.                unsigned short   hiValue );
  40.  
  41.   IEventData ( unsigned short   lowValue,
  42.                char             lowByte,
  43.                char             hiByte );
  44.  
  45. /*--------------------------------- Contents ---------------------------------*/
  46. unsigned short
  47.   lowNumber    ( ) const,
  48.   highNumber   ( ) const,
  49.   number1      ( ) const,
  50.   number2      ( ) const;
  51.  
  52. char
  53.   lowLowByte   ( ) const,
  54.   lowHighByte  ( ) const,
  55.   highLowByte  ( ) const,
  56.   highHighByte ( ) const,
  57.   char1        ( ) const,
  58.   char2        ( ) const,
  59.   char3        ( ) const,
  60.   char4        ( ) const;
  61.  
  62. /*-------------------------------- Conversion --------------------------------*/
  63. unsigned long
  64.   asUnsignedLong         ( ) const;
  65. long
  66.   asLong                 ( ) const;
  67.  
  68.   operator char*         ( ) const;
  69.   operator unsigned long ( ) const;
  70.  
  71. private:
  72. /*--------------------------------- Private ----------------------------------*/
  73. void
  74.  *pvClMsg;
  75. }; // IEventData
  76.  
  77. typedef IEventData IEventParameter1;
  78. typedef IEventData IEventParameter2;
  79. typedef IEventData ILowEventParameter;
  80. typedef IEventData IHighEventParameter;
  81. typedef IEventData IEventResult;
  82.  
  83. #pragma pack()
  84.  
  85.   #include <ievtdata.inl>
  86.  
  87. #endif /* _IEVTDATA_ */
  88.