summaryrefslogtreecommitdiff
path: root/cpp/src/IceLocatorDiscovery/Plugin.h
blob: f9e02b1166a7ce6a2287126db645060ddce60769 (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
// **********************************************************************
//
// Copyright (c) 2003-2017 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.
//
// **********************************************************************

#ifndef LOCATOR_DISCOVERY_PLUGIN_I_H
#define LOCATOR_DISCOVERY_PLUGIN_I_H

#include <Ice/Config.h>
#include <Ice/Plugin.h>
#include <Ice/Locator.h>
#include <IceUtil/Time.h>

//
// Automatically link IceLocatorDiscovery[D|++11|++11D].lib with Visual C++
//
#if !defined(ICE_BUILDING_ICE_LOCATOR_DISCOVERY) && defined(ICE_LOCATOR_DISCOVERY_API_EXPORTS)
#   define ICE_BUILDING_ICE_LOCATOR_DISCOVERY
#endif

#if defined(_MSC_VER) && !defined(ICE_BUILDING_ICE_LOCATOR_DISCOVERY)
#   pragma comment(lib, ICE_LIBNAME("IceLocatorDiscovery"))
#endif

#ifndef ICE_LOCATOR_DISCOVERY_API
#   if defined(ICE_STATIC_LIBS)
#       define ICE_LOCATOR_DISCOVERY_API /**/
#   elif defined(ICE_LOCATOR_DISCOVERY_API_EXPORTS)
#       define ICE_LOCATOR_DISCOVERY_API ICE_DECLSPEC_EXPORT
#   else
#       define ICE_LOCATOR_DISCOVERY_API ICE_DECLSPEC_IMPORT
#   endif
#endif

namespace IceLocatorDiscovery
{

class ICE_LOCATOR_DISCOVERY_API Plugin : public Ice::Plugin
{
public:

    virtual std::vector<Ice::LocatorPrxPtr> getLocators(const std::string&, const IceUtil::Time&) const = 0;
};
ICE_DEFINE_PTR(PluginPtr, Plugin);

};

#endif