Reactor_Notification_Strategy.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file   Reactor_Notification_Strategy.h
00006  *
00007  *  $Id: Reactor_Notification_Strategy.h 80826 2008-03-04 14:51:23Z wotte $
00008  *
00009  *  @author Doug Schmidt
00010  */
00011 //=============================================================================
00012 #ifndef ACE_REACTOR_NOTIFICATION_STRATEGY_H
00013 #define ACE_REACTOR_NOTIFICATION_STRATEGY_H
00014 
00015 #include /**/ "ace/pre.h"
00016 
00017 #include "ace/Notification_Strategy.h"
00018 
00019 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00020 # pragma once
00021 #endif /* ACE_LACKS_PRAGMA_ONCE */
00022 
00023 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00024 
00025 /**
00026  * @class ACE_Reactor_Notification_Strategy
00027  *
00028  * @brief Used to notify an ACE_Reactor
00029  *
00030  * Integrates the ACE_Message_Queue notification into the
00031  * <ACE_Reactor::notify> method.
00032  */
00033 class ACE_Export ACE_Reactor_Notification_Strategy : public ACE_Notification_Strategy
00034 {
00035 public:
00036   ACE_Reactor_Notification_Strategy (ACE_Reactor *reactor,
00037                                      ACE_Event_Handler *eh,
00038                                      ACE_Reactor_Mask mask);
00039 
00040   /// Default dtor.
00041   virtual ~ACE_Reactor_Notification_Strategy (void);
00042 
00043   virtual int notify (void);
00044 
00045   virtual int notify (ACE_Event_Handler *eh, ACE_Reactor_Mask mask);
00046 
00047   /// Get the reactor
00048   ACE_Reactor *reactor (void);
00049 
00050   /// Set the reactor
00051   void reactor (ACE_Reactor *r);
00052 
00053 protected:
00054   /// The Reactor
00055   ACE_Reactor *reactor_;
00056 };
00057 
00058 ACE_END_VERSIONED_NAMESPACE_DECL
00059 
00060 #if defined (__ACE_INLINE__)
00061 #include "ace/Reactor_Notification_Strategy.inl"
00062 #endif /* __ACE_INLINE __ */
00063 
00064 #include /**/ "ace/post.h"
00065 
00066 #endif /*ACE_REACTOR_NOTIFICATION_STRATEGY_H */

Generated on Tue Feb 2 17:18:42 2010 for ACE by  doxygen 1.4.7