ACE 8.0.1
|
Abstract class used for notifying an interested party. More...
#include <Notification_Strategy.h>
Public Member Functions | |
ACE_Notification_Strategy (ACE_Event_Handler *eh, ACE_Reactor_Mask mask) | |
Constructor. | |
virtual | ~ACE_Notification_Strategy ()=default |
Destructor. | |
virtual int | notify ()=0 |
virtual int | notify (ACE_Event_Handler *, ACE_Reactor_Mask mask)=0 |
ACE_Event_Handler * | event_handler () |
Get the event handler. | |
void | event_handler (ACE_Event_Handler *eh) |
Set the event handler. | |
ACE_Reactor_Mask | mask () const |
Get the reactor mask. | |
void | mask (ACE_Reactor_Mask m) |
Set the reactor mask. | |
Protected Attributes | |
ACE_Event_Handler * | eh_ |
The event handler. | |
ACE_Reactor_Mask | mask_ |
The reactor mask. | |
Abstract class used for notifying an interested party.
A vehicle for extending the behavior of ACE_Message_Queue wrt notification without subclassing. Thus, it's an example of the Bridge/Strategy patterns.
ACE_Notification_Strategy::ACE_Notification_Strategy | ( | ACE_Event_Handler * | eh, |
ACE_Reactor_Mask | mask ) |
Constructor.
|
virtualdefault |
Destructor.
|
inline |
Get the event handler.
|
inline |
Set the event handler.
|
inline |
Get the reactor mask.
|
inline |
Set the reactor mask.
Implemented in ACE_Reactor_Notification_Strategy.
|
pure virtual |
Implemented in ACE_Reactor_Notification_Strategy.
|
protected |
The event handler.
|
protected |
The reactor mask.