Ice 3.7 C++11 API Reference
Current.h
Go to the documentation of this file.
1 //
2 // Copyright (c) ZeroC, Inc. All rights reserved.
3 //
4 //
5 // Ice version 3.7.10
6 //
7 // <auto-generated>
8 //
9 // Generated from file `Current.ice'
10 //
11 // Warning: do not edit this file.
12 //
13 // </auto-generated>
14 //
15 
16 #ifndef __Ice_Current_h__
17 #define __Ice_Current_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/ObjectAdapterF.h>
30 #include <Ice/ConnectionF.h>
31 #include <Ice/Identity.h>
32 #include <Ice/Version.h>
33 #include <IceUtil/UndefSysMacros.h>
34 
35 #ifndef ICE_IGNORE_VERSION
36 # if ICE_INT_VERSION / 100 != 307
37 # error Ice version mismatch!
38 # endif
39 # if ICE_INT_VERSION % 100 >= 50
40 # error Beta header file detected
41 # endif
42 # if ICE_INT_VERSION % 100 < 10
43 # error Ice patch level mismatch!
44 # endif
45 #endif
46 
47 #ifndef ICE_API
48 # if defined(ICE_STATIC_LIBS)
49 # define ICE_API
50 # elif defined(ICE_API_EXPORTS)
51 # define ICE_API ICE_DECLSPEC_EXPORT
52 # else
53 # define ICE_API ICE_DECLSPEC_IMPORT
54 # endif
55 #endif
56 
57 #ifdef ICE_CPP11_MAPPING // C++11 mapping
58 
59 namespace Ice
60 {
61 
68 using Context = ::std::map<::std::string, ::std::string>;
69 
73 enum class OperationMode : unsigned char
74 {
82  Normal,
98  Nonmutating,
109  Idempotent
110 };
111 
119 struct Current
120 {
124  ::std::shared_ptr<::Ice::ObjectAdapter> adapter;
130  ::std::shared_ptr<::Ice::Connection> con;
138  ::std::string facet;
142  ::std::string operation;
159 
164  std::tuple<const ::std::shared_ptr<::Ice::ObjectAdapter>&, const ::std::shared_ptr<::Ice::Connection>&, const ::Ice::Identity&, const ::std::string&, const ::std::string&, const ::Ice::OperationMode&, const ::Ice::Context&, const int&, const ::Ice::EncodingVersion&> ice_tuple() const
165  {
166  return std::tie(adapter, con, id, facet, operation, mode, ctx, requestId, encoding);
167  }
168 };
169 
170 using Ice::operator<;
171 using Ice::operator<=;
172 using Ice::operator>;
173 using Ice::operator>=;
174 using Ice::operator==;
175 using Ice::operator!=;
176 
177 }
178 
180 namespace Ice
181 {
182 
183 template<>
184 struct StreamableTraits< ::Ice::OperationMode>
185 {
186  static const StreamHelperCategory helper = StreamHelperCategoryEnum;
187  static const int minValue = 0;
188  static const int maxValue = 2;
189  static const int minWireSize = 1;
190  static const bool fixedLength = false;
191 };
192 
193 }
195 
196 #else // C++98 mapping
197 
198 namespace Ice
199 {
200 
207 typedef ::std::map< ::std::string, ::std::string> Context;
208 
212 enum OperationMode
213 {
221  Normal,
237  Nonmutating,
248  Idempotent
249 };
250 
258 struct Current
259 {
263  ::Ice::ObjectAdapterPtr adapter;
269  ::Ice::ConnectionPtr con;
277  ::std::string facet;
281  ::std::string operation;
298 };
299 
300 }
301 
303 namespace Ice
304 {
305 
306 template<>
307 struct StreamableTraits< ::Ice::OperationMode>
308 {
309  static const StreamHelperCategory helper = StreamHelperCategoryEnum;
310  static const int minValue = 0;
311  static const int maxValue = 2;
312  static const int minWireSize = 1;
313  static const bool fixedLength = false;
314 };
315 
316 }
318 
319 #endif
320 
322 #endif
Optional.h
Ice::Context
::std::map<::std::string, ::std::string > Context
A request context.
Definition: Current.h:68
Ice::Current::adapter
::std::shared_ptr<::Ice::ObjectAdapter > adapter
The object adapter.
Definition: Current.h:124
Ice::Current::encoding
::Ice::EncodingVersion encoding
The encoding version used to encode the input and output parameters.
Definition: Current.h:158
StreamHelpers.h
ConnectionF.h
Ice::Current::operation
::std::string operation
The operation name.
Definition: Current.h:142
Ice::EncodingVersion
A version structure for the encoding version.
Definition: Version.h:82
Ice::Current::ctx
::Ice::Context ctx
The request context, as received from the client.
Definition: Current.h:150
Version.h
Ice::Current::ice_tuple
std::tuple< const ::std::shared_ptr<::Ice::ObjectAdapter > &, const ::std::shared_ptr<::Ice::Connection > &, const ::Ice::Identity &, const ::std::string &, const ::std::string &, const ::Ice::OperationMode &, const ::Ice::Context &, const int &, const ::Ice::EncodingVersion & > ice_tuple() const
Obtains a tuple containing all of the struct's data members.
Definition: Current.h:164
Ice::Current::id
::Ice::Identity id
The Ice object identity.
Definition: Current.h:134
Ice::OperationMode::Normal
@ Normal
Ordinary operations have Normal mode.
LocalObject.h
PushDisableWarnings.h
ProxyF.h
Ice::Current::mode
::Ice::OperationMode mode
The mode of the operation.
Definition: Current.h:146
UndefSysMacros.h
ObjectF.h
Ice
Definition: BuiltinSequences.h:56
Ice::Current::con
::std::shared_ptr<::Ice::Connection > con
Information about the connection over which the current method invocation was received.
Definition: Current.h:130
Identity.h
Ice::OperationMode
OperationMode
Determines the retry behavior an invocation in case of a (potentially) recoverable error.
Definition: Current.h:74
Comparable.h
ScopedArray.h
Ice::Current::facet
::std::string facet
The facet.
Definition: Current.h:138
Ice::Current
Information about the current method invocation for servers.
Definition: Current.h:120
Ice::Identity
The identity of an Ice object.
Definition: Identity.h:67
Exception.h
ValueF.h
Ice::Int
int Int
The mapping for the Slice int type.
Definition: Config.h:54
ObjectAdapterF.h
Ice::Current::requestId
int requestId
The request id unless oneway (0).
Definition: Current.h:154
PopDisableWarnings.h