ACE_Notification_Strategy(3)

ACE_Notification_Strategy3

Abstract class used for notifing an interested party

Usage

#include <ace/Strategies.h>
class ACE_Notification_Strategy
{
  public:
    ACE_Notification_Strategy (
        ACE_Event_Handler *eh,
        ACE_Reactor_Mask mask
        );
    virtual ~ACE_Notification_Strategy (void);
    virtual int notify (void) = 0;
    virtual int notify (
        ACE_Event_Handler *,
        ACE_Reactor_Mask mask
        ) = 0;
    ACE_Event_Handler *event_handler (void);
    void event_handler (ACE_Event_Handler *eh);
    ACE_Reactor_Mask mask (void);
    void mask (ACE_Reactor_Mask m);
  protected:
    ACE_Event_Handler *eh_;
    ACE_Reactor_Mask mask_;
};

Overview

A vehicle for extending the behavior of ACE_Message_Queue wrt notification *without subclassing*. Thus, it's an example of the Bridge/Strategy patterns.

Public members

ACE_Notification_Strategy (
    ACE_Event_Handler *eh,
    ACE_Reactor_Mask mask
    );
virtual ~ACE_Notification_Strategy (void);
virtual int notify (void) = 0;
virtual int notify (ACE_Event_Handler *, ACE_Reactor_Mask mask) = 0;
ACE_Event_Handler *event_handler (void);
void event_handler (ACE_Event_Handler *eh);
ACE_Reactor_Mask mask (void);
void mask (ACE_Reactor_Mask m);

Protected members

ACE_Event_Handler *eh_;
ACE_Reactor_Mask mask_;

Library

ace

Author

Doug Schmidt

From libace-doc 5.0.7-4 in Debian 2.2 (Potato). Parsed by carta from the page's man source.