*Backed out changeset 3be01fb200a5
--HG-- branch : trunk
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
|
||||
//=============================================================================
|
||||
/**
|
||||
* @file Notification_Strategy.h
|
||||
@@ -11,13 +12,18 @@
|
||||
#ifndef ACE_NOTIFICATION_STRATEGY_H
|
||||
#define ACE_NOTIFICATION_STRATEGY_H
|
||||
#include /**/ "ace/pre.h"
|
||||
|
||||
#include "ace/Event_Handler.h"
|
||||
|
||||
#if !defined (ACE_LACKS_PRAGMA_ONCE)
|
||||
# pragma once
|
||||
#endif /* ACE_LACKS_PRAGMA_ONCE */
|
||||
|
||||
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
|
||||
|
||||
// Forward decls.
|
||||
class ACE_Reactor;
|
||||
|
||||
/**
|
||||
* @class ACE_Notification_Strategy
|
||||
*
|
||||
@@ -32,28 +38,39 @@ class ACE_Export ACE_Notification_Strategy
|
||||
public:
|
||||
/// Constructor.
|
||||
ACE_Notification_Strategy (ACE_Event_Handler *eh, ACE_Reactor_Mask mask);
|
||||
|
||||
/// Destructor.
|
||||
virtual ~ACE_Notification_Strategy (void);
|
||||
|
||||
virtual int notify (void) = 0;
|
||||
virtual int notify (ACE_Event_Handler *, ACE_Reactor_Mask mask) = 0;
|
||||
|
||||
/// Get the event handler.
|
||||
ACE_Event_Handler *event_handler (void);
|
||||
|
||||
/// Set the event handler.
|
||||
void event_handler (ACE_Event_Handler *eh);
|
||||
|
||||
/// Get the reactor mask.
|
||||
ACE_Reactor_Mask mask (void) const;
|
||||
|
||||
/// Set the reactor mask.
|
||||
void mask (ACE_Reactor_Mask m);
|
||||
|
||||
protected:
|
||||
/// The event handler.
|
||||
ACE_Event_Handler *eh_;
|
||||
|
||||
/// The reactor mask.
|
||||
ACE_Reactor_Mask mask_;
|
||||
};
|
||||
|
||||
ACE_END_VERSIONED_NAMESPACE_DECL
|
||||
|
||||
#if defined (__ACE_INLINE__)
|
||||
#include "ace/Notification_Strategy.inl"
|
||||
#endif /* __ACE_INLINE __ */
|
||||
|
||||
#include /**/ "ace/post.h"
|
||||
#endif /*ACE_NOTIFICATION_STRATEGY_H */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user