home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / ibhandle.inl < prev    next >
Encoding:
Text File  |  1996-02-22  |  1.8 KB  |  49 lines

  1. #ifndef _IBHANDLE_INL_
  2. #define _IBHANDLE_INL_ 0
  3. /*******************************************************************************
  4. * FILE NAME: ibhandle.inl                                                      *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   This file contains the definition of the inline functions for the          *
  8. *   classes declared in ibhandle.hpp.                                          *
  9. *                                                                              *
  10. * COPYRIGHT:                                                                   *
  11. *   IBM Open Class Library                                                     *
  12. *   (C) Copyright International Business Machines Corporation 1992, 1996       *
  13. *   Licensed Material - Program-Property of IBM - All Rights Reserved.         *
  14. *   US Government Users Restricted Rights - Use, duplication, or disclosure    *
  15. *   restricted by GSA ADP Schedule Contract with IBM Corp.                     *
  16. *                                                                              *
  17. *******************************************************************************/
  18. #ifndef _IBHANDLE_
  19.   #undef  _IBHANDLE_INL_
  20.   #define _IBHANDLE_INL_ 1
  21.   #include <ibhandle.hpp>
  22. #endif
  23.  
  24. #if _IBHANDLE_INL_
  25.   #define inline
  26. #endif
  27.  
  28. inline IHandle :: IHandle ( Value value )
  29.   : handle( value )
  30.   {
  31.   }
  32.  
  33. inline unsigned long IHandle :: asUnsigned ( ) const
  34.   {
  35.   return (unsigned long) this->handle;
  36.   }
  37.  
  38. inline IHandle :: operator Value ( ) const
  39.   {
  40.   return this->handle;
  41.   }
  42.  
  43. inline ISemaphoreHandle :: ISemaphoreHandle ( Value value )
  44.   : IHandle( value )
  45.   {
  46.   }
  47.  
  48. #endif // _IBHANDLE_INL_
  49.