home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / ODFDev / ODF / Found / FWNotifn / Sources / FWNotifn.cpp < prev    next >
Encoding:
Text File  |  1995-11-08  |  2.2 KB  |  69 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWNotifn.cpp
  4. //    Release Version:    $ 1.0d11 $
  5. //
  6. //    Copyright:    (c) 1993, 1995 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #include "FWFound.hpp"
  11.  
  12. #ifndef FWNOTIFN_H
  13. #include "FWNotifn.h"
  14. #endif
  15.  
  16. #if FW_LIB_EXPORT_PRAGMAS
  17. #pragma lib_export on
  18. #endif
  19.  
  20. //========================================================================================
  21. // CLASS FW_CNotification
  22. //========================================================================================
  23.  
  24. //----------------------------------------------------------------------------------------
  25. // FW_CNotification::FW_CNotification
  26. //----------------------------------------------------------------------------------------
  27.  
  28. FW_CNotification::FW_CNotification(const FW_CInterest& interest) :
  29.     fInterest(interest.Copy())
  30. {
  31. }
  32.  
  33. //----------------------------------------------------------------------------------------
  34. // FW_CNotification::FW_CNotification
  35. //----------------------------------------------------------------------------------------
  36.  
  37. FW_CNotification::FW_CNotification(const FW_CNotification& other) :
  38.     fInterest(other.fInterest)
  39. {
  40. }
  41.  
  42. //----------------------------------------------------------------------------------------
  43. // FW_CNotification::~FW_CNotification
  44. //----------------------------------------------------------------------------------------
  45.  
  46. FW_CNotification::~FW_CNotification()
  47. {
  48. }
  49.  
  50. //----------------------------------------------------------------------------------------
  51. // FW_CNotification::operator==
  52. //----------------------------------------------------------------------------------------
  53.  
  54. FW_Boolean FW_CNotification::operator==(const FW_CNotification& other)
  55. {
  56.     return *fInterest == *(other.fInterest);
  57. }
  58.  
  59. //----------------------------------------------------------------------------------------
  60. // FW_CNotification::operator=
  61. //----------------------------------------------------------------------------------------
  62.  
  63. FW_CNotification& FW_CNotification::operator=(const FW_CNotification& other)
  64. {
  65.     fInterest = other.fInterest;
  66.     return *this;
  67. }
  68.  
  69.