summaryrefslogtreecommitdiff
path: root/cpp/src/IceStorm/Service.h
blob: f514f1b004035005b7c7d32f4e9d5b0f6a3dfc57 (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
// **********************************************************************
//
// Copyright (c) 2003-2012 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************

#pragma once

#include <IceBox/IceBox.h>
#include <IceStorm/IceStorm.h>

#ifndef ICE_STORM_API
#   define ICE_STORM_API ICE_DECLSPEC_IMPORT
#endif

// This API is internal to Ice, and should not be used by external
// applications.
namespace IceStormInternal
{

class Service;
typedef ::IceInternal::Handle< IceStormInternal::Service> ServicePtr;

class Service : public ::IceBox::Service
{
public:

    ICE_STORM_API static ServicePtr create(const Ice::CommunicatorPtr&,
                             const Ice::ObjectAdapterPtr&,
                             const Ice::ObjectAdapterPtr&,
                             const std::string&,
                             const Ice::Identity&,
                             const std::string&);

    virtual void start(const std::string&, const Ice::CommunicatorPtr&, const Ice::StringSeq&) = 0;

    ICE_STORM_API virtual IceStorm::TopicManagerPrx getTopicManager() const = 0;

    virtual void stop() = 0;
};

};