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

  1. #ifndef _IRESLIB_INL_
  2. #define _IRESLIB_INL_ 0
  3. /*******************************************************************************
  4. * FILE NAME: ireslib.inl                                                       *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   This file contains the definition of the inline functions for the          *
  8. *   classes declared in ireslib.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 _IRESLIB_
  19.   #undef  _IRESLIB_INL_
  20.   #define _IRESLIB_INL_ 1
  21.   #include <ireslib.hpp>
  22. #endif
  23.  
  24. #include <iapp.hpp>
  25.  
  26. #if _IRESLIB_INL_
  27.   #define inline
  28. #endif
  29.  
  30. inline IResourceId :: IResourceId(unsigned long resourceId, const IResourceLibrary& resourceLibrary)
  31.                      : reslibCl(resourceLibrary), ulClId(resourceId)
  32.  
  33. { }
  34.  
  35. inline IResourceId :: IResourceId(unsigned long resourceId, const IDynamicLinkLibrary& dllLibrary)
  36.                      : reslibCl(dllLibrary), ulClId(resourceId)
  37.  
  38. { }
  39.  
  40. inline IResourceId :: IResourceId(unsigned long resourceId)
  41.                        : reslibCl ( IApplication::current().userResourceLibrary() ),
  42.                          ulClId   ( resourceId )
  43.  
  44. { }
  45.  
  46. inline const IResourceLibrary& IResourceId::resourceLibrary() const
  47. { return reslibCl; }
  48.  
  49. inline IResourceId::operator unsigned long( )   const
  50. { return this->ulClId; }
  51.  
  52. inline unsigned long IResourceId::id( )   const
  53. { return this->ulClId; }
  54.  
  55. #endif // _IRESLIB_INL_
  56.