ACE  6.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
ACE_Notification_Strategy Class Referenceabstract

Abstract class used for notifying an interested party. More...

#include <Notification_Strategy.h>

Inheritance diagram for ACE_Notification_Strategy:
Inheritance graph
[legend]
Collaboration diagram for ACE_Notification_Strategy:
Collaboration graph
[legend]

Public Member Functions

 ACE_Notification_Strategy (ACE_Event_Handler *eh, ACE_Reactor_Mask mask)
 Constructor. More...
 
virtual ~ACE_Notification_Strategy (void)
 Destructor. More...
 
virtual int notify (void)=0
 
virtual int notify (ACE_Event_Handler *, ACE_Reactor_Mask mask)=0
 
ACE_Event_Handlerevent_handler (void)
 Get the event handler. More...
 
void event_handler (ACE_Event_Handler *eh)
 Set the event handler. More...
 
ACE_Reactor_Mask mask (void) const
 Get the reactor mask. More...
 
void mask (ACE_Reactor_Mask m)
 Set the reactor mask. More...
 

Protected Attributes

ACE_Event_Handlereh_
 The event handler. More...
 
ACE_Reactor_Mask mask_
 The reactor mask. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

ACE_Notification_Strategy::ACE_Notification_Strategy ( ACE_Event_Handler eh,
ACE_Reactor_Mask  mask 
)

Constructor.

ACE_Notification_Strategy::~ACE_Notification_Strategy ( void  )
virtual

Destructor.

Member Function Documentation

ACE_Event_Handler * ACE_Notification_Strategy::event_handler ( void  )
inline

Get the event handler.

void ACE_Notification_Strategy::event_handler ( ACE_Event_Handler eh)
inline

Set the event handler.

ACE_Reactor_Mask ACE_Notification_Strategy::mask ( void  ) const
inline

Get the reactor mask.

void ACE_Notification_Strategy::mask ( ACE_Reactor_Mask  m)
inline

Set the reactor mask.

virtual int ACE_Notification_Strategy::notify ( void  )
pure virtual
virtual int ACE_Notification_Strategy::notify ( ACE_Event_Handler ,
ACE_Reactor_Mask  mask 
)
pure virtual

Member Data Documentation

ACE_Event_Handler* ACE_Notification_Strategy::eh_
protected

The event handler.

ACE_Reactor_Mask ACE_Notification_Strategy::mask_
protected

The reactor mask.


The documentation for this class was generated from the following files: