blob: 80867fe37a40fafa5ccd4f1b74bdc6969321183e (
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
|
// **********************************************************************
//
// Copyright (c) 2003
// ZeroC, Inc.
// Billerica, MA, USA
//
// All Rights Reserved.
//
// Ice is free software; you can redistribute it and/or modify it under
// the terms of the GNU General Public License version 2 as published by
// the Free Software Foundation.
//
// **********************************************************************
#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
|