Ice 3.7 C++11 API Reference
Loading...
Searching...
No Matches
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.11
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>
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 < 11
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
59namespace Ice
60{
61
68using Context = ::std::map<::std::string, ::std::string>;
69
73enum class OperationMode : unsigned char
74{
110};
111
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
170using Ice::operator<;
171using Ice::operator<=;
172using Ice::operator>;
173using Ice::operator>=;
174using Ice::operator==;
175using Ice::operator!=;
176
177}
178
180namespace Ice
181{
182
183template<>
184struct 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
198namespace Ice
199{
200
207typedef ::std::map< ::std::string, ::std::string> Context;
208
212enum OperationMode
213{
221 Normal,
249};
250
258struct Current
259{
263 ::Ice::ObjectAdapterPtr adapter;
269 ::Ice::ConnectionPtr con;
273 ::Ice::Identity id;
277 ::std::string facet;
281 ::std::string operation;
297 ::Ice::EncodingVersion encoding;
298};
299
300}
301
303namespace Ice
304{
305
306template<>
307struct 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
Definition BuiltinSequences.h:56
int Int
The mapping for the Slice int type.
Definition Config.h:54
OperationMode
Determines the retry behavior an invocation in case of a (potentially) recoverable error.
Definition Current.h:74
@ Normal
Ordinary operations have Normal mode.
Definition Current.h:82
@ Idempotent
Operations that use the Slice idempotent keyword can modify object state, but invoking an operation t...
Definition Current.h:109
@ Nonmutating
Operations that use the Slice nonmutating keyword must not modify object state.
Definition Current.h:98
::std::map<::std::string, ::std::string > Context
A request context.
Definition Current.h:68
Information about the current method invocation for servers.
Definition Current.h:120
::std::shared_ptr<::Ice::ObjectAdapter > adapter
The object adapter.
Definition Current.h:124
::Ice::EncodingVersion encoding
The encoding version used to encode the input and output parameters.
Definition Current.h:158
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::Context ctx
The request context, as received from the client.
Definition Current.h:150
::Ice::OperationMode mode
The mode of the operation.
Definition Current.h:146
::std::string facet
The facet.
Definition Current.h:138
::std::string operation
The operation name.
Definition Current.h:142
int requestId
The request id unless oneway (0).
Definition Current.h:154
::Ice::Identity id
The Ice object identity.
Definition Current.h:134
::std::shared_ptr<::Ice::Connection > con
Information about the connection over which the current method invocation was received.
Definition Current.h:130
A version structure for the encoding version.
Definition Version.h:82
The identity of an Ice object.
Definition Identity.h:67