blob: 9797b9163924367dad290f18aed7c5c50a00a508 (
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
|
// -*- C++ -*-
//=============================================================================
/**
* @file Transport_Current_Listener.h
*
* $Id$
*
* @author Iliyan Jeliazkov <iliyan@ociweb.com>
*/
//=============================================================================
#ifndef TAO_TRANSPORT_CURRENT_LISTENER_H
#define TAO_TRANSPORT_CURRENT_LISTENER_H
#include /**/ "ace/pre.h"
#include "ace/Unbounded_Set.h"
#include "ace/Service_Object.h"
#include "tao/TAO_Export.h"
#include "tao/Versioned_Namespace.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_Transport;
class TAO_ORB_Core;
namespace TAO {
namespace Transport {
class TAO_Export Listener
{
public:
virtual ~Listener (void);
virtual int notify (const TAO_Transport*) = 0;
};
class TAO_Export Listener_Manager : public ACE_Service_Object
{
public:
virtual ~Listener_Manager (void);
public:
int notify (const TAO_Transport*);
int insert (Listener*);
int remove (Listener*);
private:
typedef ACE_Unbounded_Set<Listener*> Listener_Collection;
Listener_Collection collection_;
};
};
};
TAO_END_VERSIONED_NAMESPACE_DECL
ACE_STATIC_SVC_DECLARE_EXPORT (TAO, TAO_Transport_Listener_Manager)
ACE_FACTORY_DECLARE (TAO, TAO_Transport_Listener_Manager)
/* #if defined (__ACE_INLINE__) */
/* # include "Transport_Current_Listener.inl" */
/* #endif /\* __ACE_INLINE__ *\/ */
#include /**/ "ace/post.h"
#endif /* TAO_TRANSPORT_CURRENT_LISTENER_H */
|