blob: 9e6ee95e2af41591fd45f4432b3d9d308e3ccbcd (
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
|
// **********************************************************************
//
// Copyright (c) 2001
// MutableRealms, Inc.
// Huntsville, AL, USA
//
// All Rights Reserved
//
// **********************************************************************
#ifndef SUBSCRIBER_FACTORY_H
#define SUBSCRIBER_FACTORY_H
#include <IceStorm/IceStormInternal.h> // For QoS, TopicLink
namespace IceStorm
{
//
// Forward declarations.
//
class TraceLevels;
typedef IceUtil::Handle<TraceLevels> TraceLevelsPtr;
class Subscriber;
typedef IceUtil::Handle<Subscriber> SubscriberPtr;
class Flusher;
typedef IceUtil::Handle<Flusher> FlusherPtr;
//
// Factory object that knows how to create various type of Subscriber
// objects.
//
class SubscriberFactory : public IceUtil::Shared
{
public:
SubscriberFactory(const TraceLevelsPtr&, const FlusherPtr&);
//
// Create a link subscriber (that is a subscriber that points to
// another topic instance).
//
SubscriberPtr createLinkSubscriber(const TopicLinkPrx&, Ice::Int);
//
// Create a Subscriber with the given QoS.
//
SubscriberPtr createSubscriber(const QoS&, const Ice::ObjectPrx&);
private:
TraceLevelsPtr _traceLevels;
FlusherPtr _flusher;
};
typedef IceUtil::Handle<SubscriberFactory> SubscriberFactoryPtr;
} // End namespace IceStorm
#endif
|