summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/background/Connector.h
blob: 193c4881ff9078a282fc2ed7a1255a84cb255e5c (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
// **********************************************************************
//
// Copyright (c) 2003-2015 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 TEST_CONNECTOR_H
#define TEST_CONNECTOR_H

#include <Ice/Connector.h>
#include <Configuration.h>

class Connector : public IceInternal::Connector
{
public:
    
    IceInternal::TransceiverPtr connect();

    Ice::Short type() const;
    std::string toString() const;
    
    virtual bool operator==(const IceInternal::Connector&) const;
    virtual bool operator!=(const IceInternal::Connector&) const;
    virtual bool operator<(const IceInternal::Connector&) const;

    Connector(const IceInternal::ConnectorPtr& connector);

private:

    const IceInternal::ConnectorPtr _connector;
    const ConfigurationPtr _configuration;
};

#endif