blob: b1939cefd8122b7585ecc7e07c56237afec761bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
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 */
|