5#ifndef ICE_COMMUNICATOR_ASYNC_H
6#define ICE_COMMUNICATOR_ASYNC_H
8#ifndef ICE_CPP11_MAPPING
22class CallbackNC_Communicator_flushBatchRequests :
public Callback_Communicator_flushBatchRequests_Base,
23 public ::IceInternal::OnewayCallbackNC<T>
27 typedef IceUtil::Handle<T> TPtr;
29 typedef void (T::*Exception)(const ::Ice::Exception&);
30 typedef void (T::*Sent)(bool);
32 CallbackNC_Communicator_flushBatchRequests(
const TPtr& obj, Exception excb, Sent sentcb)
33 : ::IceInternal::OnewayCallbackNC<T>(obj, 0, excb, sentcb)
38 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
40 ::Ice::CommunicatorPtr communicator = result->getCommunicator();
44 communicator->end_flushBatchRequests(result);
47 catch(const ::Ice::Exception& ex)
49 ::IceInternal::CallbackNC<T>::exception(result, ex);
63template<
class T> Callback_Communicator_flushBatchRequestsPtr
64newCallback_Communicator_flushBatchRequests(
const IceUtil::Handle<T>& instance,
65 void (T::*excb)(const ::Ice::Exception&),
66 void (T::*sentcb)(
bool) = 0)
68 return new CallbackNC_Communicator_flushBatchRequests<T>(instance, excb, sentcb);
79template<
class T> Callback_Communicator_flushBatchRequestsPtr
80newCallback_Communicator_flushBatchRequests(T* instance,
void (T::*excb)(const ::Ice::Exception&),
81 void (T::*sentcb)(
bool) = 0)
83 return new CallbackNC_Communicator_flushBatchRequests<T>(instance, excb, sentcb);
92template<
class T,
typename CT>
93class Callback_Communicator_flushBatchRequests :
public Callback_Communicator_flushBatchRequests_Base,
94 public ::IceInternal::OnewayCallback<T, CT>
98 typedef IceUtil::Handle<T> TPtr;
100 typedef void (T::*Exception)(const ::Ice::Exception& ,
const CT&);
101 typedef void (T::*Sent)(bool ,
const CT&);
103 Callback_Communicator_flushBatchRequests(
const TPtr& obj, Exception excb, Sent sentcb)
104 : ::IceInternal::OnewayCallback<T, CT>(obj, 0, excb, sentcb)
109 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
111 ::Ice::CommunicatorPtr communicator = result->getCommunicator();
112 assert(communicator);
115 communicator->end_flushBatchRequests(result);
118 catch(const ::Ice::Exception& ex)
120 ::IceInternal::Callback<T, CT>::exception(result, ex);
131template<
class T,
typename CT> Callback_Communicator_flushBatchRequestsPtr
132newCallback_Communicator_flushBatchRequests(
const IceUtil::Handle<T>& instance,
133 void (T::*excb)(const ::Ice::Exception&,
const CT&),
134 void (T::*sentcb)(
bool,
const CT&) = 0)
136 return new Callback_Communicator_flushBatchRequests<T, CT>(instance, excb, sentcb);
144template<
class T,
typename CT> Callback_Communicator_flushBatchRequestsPtr
145newCallback_Communicator_flushBatchRequests(T* instance,
void (T::*excb)(const ::Ice::Exception&,
const CT&),
146 void (T::*sentcb)(
bool,
const CT&) = 0)
148 return new Callback_Communicator_flushBatchRequests<T, CT>(instance, excb, sentcb);
Definition BuiltinSequences.h:56