summaryrefslogtreecommitdiff
path: root/cpp/src/IcePack/Forward.h
blob: 7ba5bd7022b5965beb4c90f0e6b86ed2697aaa61 (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
// **********************************************************************
//
// Copyright (c) 2001
// MutableRealms, Inc.
// Huntsville, AL, USA
//
// All Rights Reserved
//
// **********************************************************************

#ifndef ICE_PACK_FORWARD_H
#define ICE_PACK_FORWARD_H

#include <IcePack/AdminF.h>
#ifndef WIN32
#   include <IcePack/Activator.h>
#endif
#include <map>

namespace IcePack
{

class Forward : public Ice::ObjectLocator
{
public:

    Forward(const Ice::CommunicatorPtr& communicator, const AdminPtr&);
    virtual ~Forward();
    
    virtual Ice::ObjectPtr locate(const Ice::ObjectAdapterPtr&, const std::string&, Ice::ObjectPtr&);
    virtual void finished(const Ice::ObjectAdapterPtr&, const std::string&, const Ice::ObjectPtr&,
			  const Ice::ObjectPtr&);

private:

    Ice::CommunicatorPtr _communicator;
    AdminPtr _admin;
#ifndef WIN32
    ActivatorHandle _activator;
    int _waitTime;
#endif
};

}

#endif