Ice 3.7 C++11 API Reference
Loading...
Searching...
No Matches
EndpointInfo.h
Go to the documentation of this file.
1//
2// Copyright (c) ZeroC, Inc. All rights reserved.
3//
4//
5// Ice version 3.7.11
6//
7// <auto-generated>
8//
9// Generated from file `EndpointInfo.ice'
10//
11// Warning: do not edit this file.
12//
13// </auto-generated>
14//
15
16#ifndef __IceSSL_EndpointInfo_h__
17#define __IceSSL_EndpointInfo_h__
18
20#include <Ice/ProxyF.h>
21#include <Ice/ObjectF.h>
22#include <Ice/ValueF.h>
23#include <Ice/Exception.h>
24#include <Ice/LocalObject.h>
25#include <Ice/StreamHelpers.h>
26#include <Ice/Comparable.h>
27#include <IceUtil/ScopedArray.h>
28#include <Ice/Optional.h>
29#include <Ice/Endpoint.h>
31
32#ifndef ICE_IGNORE_VERSION
33# if ICE_INT_VERSION / 100 != 307
34# error Ice version mismatch!
35# endif
36# if ICE_INT_VERSION % 100 >= 50
37# error Beta header file detected
38# endif
39# if ICE_INT_VERSION % 100 < 11
40# error Ice patch level mismatch!
41# endif
42#endif
43
44#ifndef ICESSL_API
45# if defined(ICE_STATIC_LIBS)
46# define ICESSL_API /**/
47# elif defined(ICESSL_API_EXPORTS)
48# define ICESSL_API ICE_DECLSPEC_EXPORT
49# else
50# define ICESSL_API ICE_DECLSPEC_IMPORT
51# endif
52#endif
53
54#ifdef ICE_CPP11_MAPPING // C++11 mapping
55
56namespace IceSSL
57{
58
59class EndpointInfo;
60
61}
62
63namespace IceSSL
64{
65
70class ICE_CLASS(ICESSL_API) EndpointInfo : public ::Ice::EndpointInfo
71{
72public:
73
75
76 EndpointInfo() = default;
77
78 EndpointInfo(const EndpointInfo&) = default;
82
89 EndpointInfo(const ::std::shared_ptr<::Ice::EndpointInfo>& underlying, int timeout, bool compress) :
91 {
92 }
93};
94
95}
96
98namespace Ice
99{
100
101}
103
105namespace IceSSL
106{
107
108using EndpointInfoPtr = ::std::shared_ptr<EndpointInfo>;
109
110}
112
113#else // C++98 mapping
114
115namespace IceSSL
116{
117
118class EndpointInfo;
120ICESSL_API ::Ice::LocalObject* upCast(EndpointInfo*);
122typedef ::IceInternal::Handle< EndpointInfo> EndpointInfoPtr;
123
124}
125
126namespace IceSSL
127{
128
133class ICESSL_API EndpointInfo : public ::Ice::EndpointInfo
134{
135public:
136
137 typedef EndpointInfoPtr PointerType;
138
139 virtual ~EndpointInfo();
140
141 EndpointInfo()
142 {
143 }
144
151 EndpointInfo(const ::Ice::EndpointInfoPtr& underlying, ::Ice::Int timeout, bool compress) :
152 ::Ice::EndpointInfo(underlying, timeout, compress)
153 {
154 }
155
156#ifdef ICE_CPP11_COMPILER
157 EndpointInfo(const EndpointInfo&) = default;
158 EndpointInfo& operator=(const EndpointInfo&) = default;
159#endif
160};
161
163inline bool operator==(const EndpointInfo& lhs, const EndpointInfo& rhs)
164{
165 return static_cast<const ::Ice::LocalObject&>(lhs) == static_cast<const ::Ice::LocalObject&>(rhs);
166}
167
168inline bool operator<(const EndpointInfo& lhs, const EndpointInfo& rhs)
169{
170 return static_cast<const ::Ice::LocalObject&>(lhs) < static_cast<const ::Ice::LocalObject&>(rhs);
171}
173
174}
175
177namespace Ice
178{
179
180}
182
183#endif
184
186#endif
#define ICESSL_API
Definition ConnectionInfoF.h:49
#define ICE_MEMBER(API)
Definition Config.h:177
Provides access to an SSL endpoint information.
Definition EndpointInfo.h:71
EndpointInfo(EndpointInfo &&)=default
EndpointInfo & operator=(const EndpointInfo &)=default
EndpointInfo & operator=(EndpointInfo &&)=default
EndpointInfo(const ::std::shared_ptr<::Ice::EndpointInfo > &underlying, int timeout, bool compress)
One-shot constructor to initialize all data members.
Definition EndpointInfo.h:89
EndpointInfo(const EndpointInfo &)=default
Base class providing access to the endpoint details.
Definition Endpoint.h:129
int timeout
The timeout for the endpoint in milliseconds.
Definition Endpoint.h:181
bool compress
Specifies whether or not compression should be used if available when using this endpoint.
Definition Endpoint.h:186
::std::shared_ptr<::Ice::EndpointInfo > underlying
The information of the underyling endpoint of null if there's no underlying endpoint.
Definition Endpoint.h:176
Definition ConnectionInfo.h:59
Definition BuiltinSequences.h:56
int Int
The mapping for the Slice int type.
Definition Config.h:54
bool operator<(const C &lhs, const C &rhs)
Relational operator for generated structs and classes.
Definition Comparable.h:136
bool operator==(const C &lhs, const C &rhs)
Relational operator for generated structs and classes.
Definition Comparable.h:184