00001 /* -*- C++ -*- */ 00002 00003 //============================================================================= 00004 /** 00005 * @file Reactor_Notification_Strategy.h 00006 * 00007 * $Id: Reactor_Notification_Strategy.h,v 1.1.1.1 2003/02/21 18:36:32 chad Exp $ 00008 * 00009 * @author Doug Schmidt 00010 */ 00011 //============================================================================= 00012 #ifndef ACE_REACTOR_NOTIFICATION_STRATEGY_H 00013 #define ACE_REACTOR_NOTIFICATION_STRATEGY_H 00014 #include "ace/pre.h" 00015 00016 #include "ace/Notification_Strategy.h" 00017 00018 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00019 # pragma once 00020 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00021 00022 /** 00023 * @class ACE_Reactor_Notification_Strategy 00024 * 00025 * @brief Used to notify an ACE_Reactor 00026 * 00027 * Integrates the <ACE_Message_Queue> notification into the 00028 * <ACE_Reactor::notify> method. 00029 */ 00030 class ACE_Export ACE_Reactor_Notification_Strategy : public ACE_Notification_Strategy 00031 { 00032 public: 00033 ACE_Reactor_Notification_Strategy (ACE_Reactor *reactor, 00034 ACE_Event_Handler *eh, 00035 ACE_Reactor_Mask mask); 00036 00037 /// Default dtor. 00038 virtual ~ACE_Reactor_Notification_Strategy (void); 00039 00040 virtual int notify (void); 00041 00042 virtual int notify (ACE_Event_Handler *, 00043 ACE_Reactor_Mask mask); 00044 00045 /// Get the reactor 00046 ACE_Reactor *reactor (void); 00047 00048 /// Set the reactor 00049 void reactor (ACE_Reactor *r); 00050 00051 protected: 00052 /// The Reactor 00053 ACE_Reactor *reactor_; 00054 }; 00055 00056 #if defined (__ACE_INLINE__) 00057 #include "ace/Reactor_Notification_Strategy.inl" 00058 #endif /* __ACE_INLINE __ */ 00059 00060 #include "ace/post.h" 00061 #endif /*ACE_REACTOR_NOTIFICATION_STRATEGY_H */
1.2.14 written by Dimitri van Heesch,
© 1997-2002