home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / odtlktv4.zip / ODTLKT / TOOLKIT / IDL / REFCTOBJ.IDL < prev    next >
Text File  |  1995-12-13  |  2KB  |  71 lines

  1. /********************************************************************/
  2. /*  Licensed Materials - Property of IBM                            */
  3. /*                                                                  */
  4. /*                                                                  */
  5. /* Copyright (C) International Business Machines Corp., 1994.       */
  6. /* Copyright (C) Apple Computer, Inc., 1994                         */
  7. /*                                                                  */
  8. /*  US Government Users Restricted Rights -                         */
  9. /*  Use, duplication, or disclosure restricted                      */
  10. /*  by GSA ADP Schedule Contract with IBM Corp.                     */
  11. /*                                                                  */
  12. /*                                                                  */
  13. /********************************************************************/
  14.  
  15.  
  16. #ifndef _REFCTOBJ_
  17. #define _REFCTOBJ_
  18.  
  19. #ifndef _ODOBJECT_
  20. #include "ODObject.idl"
  21. #endif
  22.  
  23. //==============================================================================
  24. // Theory of Operation
  25. //==============================================================================
  26.  
  27. /*
  28.   This file defines class ODRefCntObject.  This class is the common base class
  29.   for all OpenDoc classes whose objects require ref counting.
  30. */
  31.  
  32. //==============================================================================
  33. // Classes defined in this interface
  34. //==============================================================================
  35.  
  36. interface  ODRefCntObject;
  37.  
  38. //==============================================================================
  39. // ODRefCntObject
  40. //==============================================================================
  41.  
  42. interface ODRefCntObject :  ODObject
  43. {     
  44.   void  InitRefCntObject();
  45.  
  46.   void  Acquire();
  47.  
  48.   void  Release();
  49.  
  50.   ODULong  GetRefCount();
  51.  
  52. #ifdef __SOMIDL__
  53.   implementation
  54.   {
  55.       functionprefix = ODRefCntObject;
  56.  
  57.     somInit : override;
  58.     somUninit : override;
  59.     releaseorder:
  60.         InitRefCntObject,
  61.         Acquire,
  62.         Release,
  63.         GetRefCount;
  64.  
  65.   };
  66. #endif
  67. };
  68.  
  69. #endif // _REFCTOBJ_
  70.  
  71.