diff options
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/Notify/Notify_Dispatcher.h')
-rw-r--r-- | TAO/orbsvcs/orbsvcs/Notify/Notify_Dispatcher.h | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Notify_Dispatcher.h b/TAO/orbsvcs/orbsvcs/Notify/Notify_Dispatcher.h deleted file mode 100644 index 379095b3928..00000000000 --- a/TAO/orbsvcs/orbsvcs/Notify/Notify_Dispatcher.h +++ /dev/null @@ -1,69 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ -// ========================================================================== -// -// = LIBRARY -// orbsvcs -// -// = FILENAME -// Notify_Dispatcher.h -// -// = DESCRIPTION -// Various dispatching strategies are defined here. -// -// = AUTHOR -// Pradeep Gore <pradeep@cs.wustl.edu> -// -// ========================================================================== - -#ifndef NOTIFY_DISPATCHER_H_ -#define NOTIFY_DISPATCHER_H_ - -#include "ace/Containers.h" -#include "tao/corbafwd.h" - -class TAO_Notify_Dispatcher -{ - // = TITLE - // TAO_Notify_Dispatcher - // = DESCRIPTION - // This is a base class for for different kinds of dispatching schemes. - // Dispatchers will have an internel criteria which will determine *if* - // (i,e. filtering) and *when* (i,e. qos) events will be forwarded to - // contained Dispatchers. - - public: - static TAO_Notify_Dispatcher* create (CORBA::Environment &ACE_TRY_ENV); - // Factory method to create dispatchers of various types. - - virtual void dispatch_event (const CORBA::Any & data, - CORBA::Environment &ACE_TRY_ENV) = 0; - // Clients of this class should call this method to dispatch events. - - int add_dispatcher (TAO_Notify_Dispatcher& dispatcher); - // Add a dispatcher to an internal list of event recipients. - - int remove_dispatcher (TAO_Notify_Dispatcher& dispatcher); - //Remove a dispatcher from the internal list. - - protected: - typedef ACE_Unbounded_Set<TAO_Notify_Dispatcher*> DISPATCHER_SET; - typedef ACE_Unbounded_Set_Iterator<TAO_Notify_Dispatcher*> - DISPATCHER_SET_ITER; - - DISPATCHER_SET contained_; - // Dispatchers forward events to their "contained" dispatchers. -}; - -class Notify_Reactive_Dispatcher : public TAO_Notify_Dispatcher -{ - // = TITLE - // - // = DESCRIPTION - // Simplest dispatcher - dispatches event in the callers thread. - // - virtual void dispatch_event (const CORBA::Any & data, - CORBA::Environment &ACE_TRY_ENV); -}; - -#endif /* NOTIFY_DISPATCHER_H_ */ |