diff options
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/ESF/ESF_Peer_Workers.h')
-rw-r--r-- | TAO/orbsvcs/orbsvcs/ESF/ESF_Peer_Workers.h | 107 |
1 files changed, 107 insertions, 0 deletions
diff --git a/TAO/orbsvcs/orbsvcs/ESF/ESF_Peer_Workers.h b/TAO/orbsvcs/orbsvcs/ESF/ESF_Peer_Workers.h new file mode 100644 index 00000000000..b1939cefd81 --- /dev/null +++ b/TAO/orbsvcs/orbsvcs/ESF/ESF_Peer_Workers.h @@ -0,0 +1,107 @@ +/* -*- C++ -*- */ +// $Id$ +// +// ============================================================================ +// +// = LIBRARY +// ORBSVCS Event Service Framework +// +// = FILENAME +// ESF_Peer_Connected +// +// = AUTHOR +// Carlos O'Ryan (coryan@cs.wustl.edu) +// +// = CREDITS +// http://www.cs.wustl.edu/~coryan/EC/index.html +// +// ============================================================================ + +#ifndef TAO_ESF_PEER_WORKERS_H +#define TAO_ESF_PEER_WORKERS_H + +#include "ESF_Worker.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +template<class PROXY, class PEER> +class TAO_ESF_Peer_Connected : public TAO_ESF_Worker<PROXY> +{ + // = DESCRIPTION + // Helper class. + // Used to iterate over a Proxy_Collection and invoke: + // + // PROXY->connected (peer); + // peer->connected (proxy); + // +public: + TAO_ESF_Peer_Connected (PEER *peer); + + void work (PROXY *proxy, + CORBA::Environment &ACE_TRY_ENV); + +private: + PEER* peer_; +}; + +// **************************************************************** + +template<class PROXY, class PEER> +class TAO_ESF_Peer_Reconnected : public TAO_ESF_Worker<PROXY> +{ + // = DESCRIPTION + // Helper class. + // Used to iterate over a Proxy_Collection and invoke: + // + // PROXY->reconnected (peer); + // peer->reconnected (proxy); + // +public: + TAO_ESF_Peer_Reconnected (PEER *peer); + + void work (PROXY *proxy, + CORBA::Environment &ACE_TRY_ENV); + +private: + PEER* peer_; +}; + +// **************************************************************** + +template<class PROXY, class PEER> +class TAO_ESF_Peer_Disconnected : public TAO_ESF_Worker<PROXY> +{ + // = DESCRIPTION + // Helper class. + // Used to iterate over a Proxy_Collection and invoke: + // + // PROXY->disconnected (peer); + // peer->disconnected (proxy); + // +public: + TAO_ESF_Peer_Disconnected (PEER *peer); + + void work (PROXY *proxy, + CORBA::Environment &ACE_TRY_ENV); + +private: + PEER* peer_; +}; + +// **************************************************************** + +#if defined (__ACE_INLINE__) +#include "ESF_Peer_Workers.i" +#endif /* __ACE_INLINE__ */ + +#if defined (ACE_TEMPLATES_REQUIRE_SOURCE) +#include "ESF_Peer_Workers.cpp" +#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */ + +#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA) +#pragma implementation ("ESF_Peer_Workers.cpp") +#endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */ + +#endif /* TAO_ESF_PEER_WORKERS_H */ |