Ice 3.7 C++11 API Reference
|
Go to the documentation of this file.
40 #ifndef ICE_CPP11_MAPPING
49 virtual ~DispatchInterceptorAsyncCallback();
52 virtual bool response() = 0;
58 virtual bool exception(
const std::exception& ex) = 0;
63 virtual bool exception() = 0;
65 ICE_DEFINE_PTR(DispatchInterceptorAsyncCallbackPtr, DispatchInterceptorAsyncCallback);
85 #ifdef ICE_CPP11_MAPPING
106 bool _iceD_ice_isA(IceInternal::Incoming&,
const Current&);
115 bool _iceD_ice_ping(IceInternal::Incoming&,
const Current&);
126 bool _iceD_ice_ids(IceInternal::Incoming&,
const Current&);
136 bool _iceD_ice_id(IceInternal::Incoming&,
const Current&);
157 std::function<
bool()> response =
nullptr,
158 std::function<
bool(std::exception_ptr)> error =
nullptr);
161 virtual bool _iceDispatch(IceInternal::Incoming&,
const Current&);
209 bool _iceD_ice_isA(IceInternal::Incoming&,
const Current&);
218 bool _iceD_ice_ping(IceInternal::Incoming&,
const Current&);
229 bool _iceD_ice_ids(IceInternal::Incoming&,
const Current&);
239 bool _iceD_ice_id(IceInternal::Incoming&,
const Current&);
267 virtual Int ice_operationAttributes(
const std::string& operation)
const;
275 virtual bool _iceGcVisit(IceInternal::GCVisitor&) {
return false; }
283 virtual void ice_collectable(
bool b);
289 virtual void ice_preMarshal();
295 virtual void ice_postUnmarshal();
301 static const std::string& ice_staticId();
307 virtual ObjectPtr ice_clone()
const;
314 virtual SlicedDataPtr ice_getSlicedData()
const;
324 virtual bool ice_dispatch(
Ice::Request& request,
const DispatchInterceptorAsyncCallbackPtr& cb = 0);
326 virtual bool _iceDispatch(IceInternal::Incoming&,
const Current&);
332 #if defined(__clang__)
333 # pragma clang diagnostic push
334 # pragma clang diagnostic ignored "-Wdeprecated-copy-dtor"
337 #if defined(__clang__)
338 # pragma clang diagnostic pop
379 virtual bool _iceDispatch(IceInternal::Incoming&,
const Current&);
404 virtual bool ice_invoke(
ICE_IN(std::pair<const Byte*, const Byte*>) inEncaps, std::vector<Byte>& outEncaps,
408 virtual bool _iceDispatch(IceInternal::Incoming&,
const Current&);
421 #ifdef ICE_CPP11_MAPPING
436 std::function<
void(
bool,
const std::vector<Byte>&)> response,
437 std::function<
void(std::exception_ptr)> error,
449 virtual void ice_invoke_async(
const AMD_Object_ice_invokePtr& cb,
const std::vector<Byte>& inEncaps,
454 virtual bool _iceDispatch(IceInternal::Incoming&,
const Current&);
467 #ifdef ICE_CPP11_MAPPING
482 std::function<
void(
bool,
const std::pair<const Byte*, const Byte*>&)> response,
483 std::function<
void(std::exception_ptr)> error,
495 virtual void ice_invoke_async(
const AMD_Object_ice_invokePtr& cb,
496 const std::pair<const Byte*, const Byte*>& inEncaps,
501 virtual bool _iceDispatch(IceInternal::Incoming&,
const Current&);
virtual bool ice_isA(std::string s, const Current ¤t) const
Tests whether this object supports a specific Slice interface.
bool returnValue
Indicates whether the invocation resulted in success (true) or a user exception (false).
Definition: Object.h:172
virtual const Current & getCurrent()=0
Obtains the Current object associated with the request.
virtual std::string ice_id(const Current ¤t) const
Returns the Slice type ID of the most-derived interface supported by this object.
Holds the results of a call to ice_invoke.
Definition: Object.h:168
const Current emptyCurrent
A default-initialized Current instance.
virtual void ice_ping(const Current ¤t) const
Tests whether this object can be reached.
The base class for servants.
Definition: Object.h:91
bool operator==(const C &lhs, const C &rhs)
Relational operator for generated structs and classes.
Definition: Comparable.h:184
Encapsulates details about a dispatch request.
Definition: Object.h:73
virtual ~Object()=default
virtual bool ice_invoke(std::vector< Byte > inEncaps, std::vector< Byte > &outEncaps, const Current ¤t)=0
Dispatch an incoming request.
#define ICE_API
Definition: Config.h:197
virtual void ice_invokeAsync(std::pair< const Byte *, const Byte * > inEncaps, std::function< void(bool, const std::pair< const Byte *, const Byte * > &)> response, std::function< void(std::exception_ptr)> error, const Current ¤t)=0
Dispatch an incoming request asynchronously.
Base class for dynamic dispatch servants.
Definition: Object.h:360
virtual bool ice_invoke(std::pair< const Byte *, const Byte * > inEncaps, std::vector< Byte > &outEncaps, const Current ¤t)=0
Dispatch an incoming request.
#define ICE_IN(...)
Definition: Config.h:370
bool operator<(const C &lhs, const C &rhs)
Relational operator for generated structs and classes.
Definition: Comparable.h:136
Interface for output streams used to create a sequence of bytes from Slice types.
Definition: OutputStream.h:28
Definition: BuiltinSequences.h:56
Base class for dynamic dispatch servants that uses the array mapping.
Definition: Object.h:389
virtual void ice_invokeAsync(std::vector< Byte > inEncaps, std::function< void(bool, const std::vector< Byte > &)> response, std::function< void(std::exception_ptr)> error, const Current ¤t)=0
Dispatch an incoming request asynchronously.
virtual std::vector< std::string > ice_ids(const Current ¤t) const
Returns the Slice type IDs of the interfaces supported by this object.
OperationMode
Determines the retry behavior an invocation in case of a (potentially) recoverable error.
Definition: Current.h:74
Base class for asynchronous dynamic dispatch servants that uses the array mapping.
Definition: Object.h:464
Information about the current method invocation for servers.
Definition: Current.h:120
Base class for asynchronous dynamic dispatch servants.
Definition: Object.h:418
int Int
The mapping for the Slice int type.
Definition: Config.h:54
ICE_DEFINE_PTR(NativePropertiesAdminPtr, NativePropertiesAdmin)
static const std::string & ice_staticId()
Obtains the Slice type ID of this type.
std::vector<::Ice::Byte > outParams
Holds an encapsulation of the encoded results.
Definition: Object.h:178
virtual bool ice_dispatch(Ice::Request &request, std::function< bool()> response=nullptr, std::function< bool(std::exception_ptr)> error=nullptr)
Dispatches an invocation to a servant.