Ice 3.7 C++98 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{
82 Normal,
110};
111
119struct Current
120{
124 ::std::shared_ptr<::Ice::ObjectAdapter> adapter;
130 ::std::shared_ptr<::Ice::Connection> con;
134 ::Ice::Identity id;
138 ::std::string facet;
142 ::std::string operation;
154 int requestId;
158 ::Ice::EncodingVersion encoding;
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
250
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:113
OperationMode
Determines the retry behavior an invocation in case of a (potentially) recoverable error.
Definition Current.h:213
@ Idempotent
Operations that use the Slice idempotent keyword can modify object state, but invoking an operation t...
Definition Current.h:248
@ Nonmutating
Operations that use the Slice nonmutating keyword must not modify object state.
Definition Current.h:237
@ Normal
Ordinary operations have Normal mode.
Definition Current.h:221
int Int
The mapping for the Slice int type.
Definition Config.h:54
::std::map< ::std::string, ::std::string > Context
A request context.
Definition Current.h:207
::IceInternal::Handle< Connection > ConnectionPtr
Definition Connection.h:767
::IceInternal::Handle< ObjectAdapter > ObjectAdapterPtr
Definition ObjectAdapter.h:620
Information about the current method invocation for servers.
Definition Current.h:259
::Ice::EncodingVersion encoding
The encoding version used to encode the input and output parameters.
Definition Current.h:297
::Ice::ConnectionPtr con
Information about the connection over which the current method invocation was received.
Definition Current.h:269
::Ice::Context ctx
The request context, as received from the client.
Definition Current.h:289
::Ice::Int requestId
The request id unless oneway (0).
Definition Current.h:293
::Ice::OperationMode mode
The mode of the operation.
Definition Current.h:285
::Ice::ObjectAdapterPtr adapter
The object adapter.
Definition Current.h:263
::std::string facet
The facet.
Definition Current.h:277
::std::string operation
The operation name.
Definition Current.h:281
::Ice::Identity id
The Ice object identity.
Definition Current.h:273
A version structure for the encoding version.
Definition Version.h:225
The identity of an Ice object.
Definition Identity.h:144