home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / ioc / lancelot / lcnrobj.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  3.9 KB  |  69 lines

  1. /******************************************************************************
  2. * .FILE:         lcnrobj.cpp                                                  *
  3. *                                                                             *
  4. * .DESCRIPTION:  Lancelot Sample Program:              Class Implementation   *
  5. *                                                                             *
  6. * .CLASSES:      LCnrObject                                                   *
  7. *                                                                             *
  8. * .COPYRIGHT:                                                                 *
  9. *                                                                             *
  10. * .DISCLAIMER:                                                                *
  11. *                                                                             *
  12. * .NOTE: WE RECOMMEND USING A FIXED SPACE FONT TO LOOK AT THE SOURCE          *
  13. *                                                                             *
  14. ******************************************************************************/
  15.  
  16. #ifndef _IBASE_                         //Make sure ibase.hpp is included
  17.   #include <ibase.hpp>                  //  since that is where IC_<environ>
  18. #endif                                  //  is defined.
  19. #include "lcnrobj.hpp"
  20.  
  21. /******************************************************************************
  22. * Class LCnrObject :: LCnrObject - Constructor for the cnr object given a     *
  23. *   string title.                                                             *
  24. *                                                                             *
  25. * Define yourself as an IContainerObject                                      *
  26. ******************************************************************************/
  27. LCnrObject::LCnrObject( IString title, unsigned long icon )
  28.      :IContainerObject     ( title, icon )
  29. {
  30. /*-----------------------------------------------------------------------------
  31. | Decrement object usage count                                                |
  32. -----------------------------------------------------------------------------*/
  33.    decrementUsage();
  34. }
  35.  
  36.  
  37. /******************************************************************************
  38. * Class LCnrObject :: LCnrObject - Constructor for the cnr object given a     *
  39. *   resourceId title.                                                         *
  40. *                                                                             *
  41. * Define yourself as an IContainerObject                                      *
  42. ******************************************************************************/
  43. LCnrObject::LCnrObject( IResourceId title, unsigned long icon )
  44.      :IContainerObject     ( title, icon )
  45. {
  46. /*-----------------------------------------------------------------------------
  47. | Decrement object usage count                                                |
  48. -----------------------------------------------------------------------------*/
  49.    decrementUsage();
  50. }
  51.  
  52.  
  53. /******************************************************************************
  54. * Class LCnrObject :: LCnrObject - Constructor for the cnr object given an    *
  55. *   existing cnr object.                                                      *
  56. *                                                                             *
  57. * Define yourself as an IContainerObject                                      *
  58. ******************************************************************************/
  59. LCnrObject::LCnrObject( const LCnrObject& cnrobj )
  60.      :IContainerObject     ( (const IContainerObject&) cnrobj )
  61. {}
  62.  
  63.  
  64. /******************************************************************************
  65. * Class LCnrObject :: ~LCnrObject - Destructor for the info window            *
  66. ******************************************************************************/
  67. LCnrObject::~LCnrObject()
  68. {}
  69.