Public Member Functions | Protected Attributes

ACE_Notification_Strategy Class Reference

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]

List of all members.

Public Member Functions

 ACE_Notification_Strategy (ACE_Event_Handler *eh, ACE_Reactor_Mask mask)
 Constructor.
virtual ~ACE_Notification_Strategy (void)
 Destructor.
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.
void event_handler (ACE_Event_Handler *eh)
 Set the event handler.
ACE_Reactor_Mask mask (void) const
 Get the reactor mask.
void mask (ACE_Reactor_Mask m)
 Set the reactor mask.

Protected Attributes

ACE_Event_Handlereh_
 The event handler.
ACE_Reactor_Mask mask_
 The reactor mask.

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.

Definition at line 36 of file Notification_Strategy.h.


Constructor & Destructor Documentation

ACE_Notification_Strategy::ACE_Notification_Strategy ( ACE_Event_Handler eh,
ACE_Reactor_Mask  mask 
)

Constructor.

Definition at line 11 of file Notification_Strategy.cpp.

  : eh_ (eh),
    mask_ (mask)
{
}

ACE_Notification_Strategy::~ACE_Notification_Strategy ( void   )  [virtual]

Destructor.

Definition at line 18 of file Notification_Strategy.cpp.

{
}


Member Function Documentation

ACE_Event_Handler * ACE_Notification_Strategy::event_handler ( void   )  [inline]

Get the event handler.

Definition at line 8 of file Notification_Strategy.inl.

{
  return eh_;
}

void ACE_Notification_Strategy::event_handler ( ACE_Event_Handler eh  )  [inline]

Set the event handler.

Definition at line 14 of file Notification_Strategy.inl.

{
  this->eh_ = eh;
}

ACE_Reactor_Mask ACE_Notification_Strategy::mask ( void   )  const [inline]

Get the reactor mask.

Definition at line 20 of file Notification_Strategy.inl.

{
  return mask_;
}

void ACE_Notification_Strategy::mask ( ACE_Reactor_Mask  m  )  [inline]

Set the reactor mask.

Definition at line 26 of file Notification_Strategy.inl.

{
  this->mask_ = m;
}

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

Member Data Documentation

The event handler.

Definition at line 62 of file Notification_Strategy.h.

The reactor mask.

Definition at line 65 of file Notification_Strategy.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines