home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / ODFDev / ODF / Found / FWNotifn / Sources / FWIntere.cpp next >
Encoding:
Text File  |  1996-04-25  |  3.1 KB  |  105 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWIntere.cpp
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #include "FWFound.hpp"
  11.  
  12. #ifndef FWINTERE_H
  13. #include "FWIntere.h"
  14. #endif
  15.  
  16. #ifndef FWNOTIFR_H
  17. #include "FWNotifr.h"
  18. #endif
  19.  
  20. #ifndef FWTCOLL_H
  21. #include "FWTColl.h"
  22. #endif
  23.  
  24. #ifndef FWDEBUG_H
  25. #include "FWDebug.h"
  26. #endif
  27.  
  28. //========================================================================================
  29. //    Template Instantiations
  30. //========================================================================================
  31.  
  32. FW_DEFINE_AUTO_TEMPLATE(FW_TOrderedCollectionIterator, FW_CInterest)
  33. FW_DEFINE_AUTO_TEMPLATE(FW_TOrderedCollection, FW_CInterest)
  34.  
  35. #ifdef FW_USE_TEMPLATE_PRAGMAS
  36.  
  37. #pragma template_access public
  38. #pragma template FW_TOrderedCollection<FW_CInterest>
  39. #pragma template FW_TOrderedCollectionIterator<FW_CInterest>
  40.  
  41. #endif
  42.  
  43. //========================================================================================
  44. // CLASS FW_CInterest
  45. //========================================================================================
  46.  
  47. //----------------------------------------------------------------------------------------
  48. // FW_CInterest::FW_CInterest
  49. //----------------------------------------------------------------------------------------
  50.  
  51. FW_CInterest::FW_CInterest() :
  52.     fNotifier(NULL),
  53.     fMessage(0)
  54. {
  55. }
  56.  
  57. //----------------------------------------------------------------------------------------
  58. // FW_CInterest::FW_CInterest
  59. //----------------------------------------------------------------------------------------
  60.  
  61. FW_CInterest::FW_CInterest(FW_MNotifier* notifier, FW_Message msg) :
  62.     fNotifier(notifier),
  63.     fMessage(msg)
  64. {
  65. }
  66.  
  67. //----------------------------------------------------------------------------------------
  68. // FW_CInterest::FW_CInterest
  69. //----------------------------------------------------------------------------------------
  70.  
  71. FW_CInterest::FW_CInterest(const FW_CInterest& other) :
  72.     fNotifier(other.fNotifier),
  73.     fMessage(other.fMessage)
  74. {
  75. }
  76.  
  77. //----------------------------------------------------------------------------------------
  78. // FW_CInterest::~FW_CInterest
  79. //----------------------------------------------------------------------------------------
  80.  
  81. FW_CInterest::~FW_CInterest()
  82. {
  83. }
  84.  
  85. //----------------------------------------------------------------------------------------
  86. // FW_CInterest::operator=
  87. //----------------------------------------------------------------------------------------
  88.     
  89. FW_CInterest& FW_CInterest::operator=(const FW_CInterest& other)
  90. {
  91.     fNotifier = other.fNotifier;
  92.     fMessage = other.fMessage;
  93.     
  94.     return *this;
  95. }
  96.  
  97. //----------------------------------------------------------------------------------------
  98. // FW_CInterest::operator==
  99. //----------------------------------------------------------------------------------------
  100.  
  101. FW_Boolean FW_CInterest::operator==(const FW_CInterest& other) const
  102. {
  103.     return fNotifier == other.fNotifier && fMessage == other.fMessage;
  104. }
  105.