5 #ifndef ICE_COMMUNICATOR_ASYNC_H
6 #define ICE_COMMUNICATOR_ASYNC_H
8 #ifndef ICE_CPP11_MAPPING
22 class CallbackNC_Communicator_flushBatchRequests :
public Callback_Communicator_flushBatchRequests_Base,
23 public ::IceInternal::OnewayCallbackNC<T>
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);
49 ::IceInternal::CallbackNC<T>::exception(result, ex);
63 template<
class T> Callback_Communicator_flushBatchRequestsPtr
66 void (T::*sentcb)(
bool) = 0)
68 return new CallbackNC_Communicator_flushBatchRequests<T>(instance, excb, sentcb);
79 template<
class T> Callback_Communicator_flushBatchRequestsPtr
81 void (T::*sentcb)(
bool) = 0)
83 return new CallbackNC_Communicator_flushBatchRequests<T>(instance, excb, sentcb);
92 template<
class T,
typename CT>
93 class Callback_Communicator_flushBatchRequests :
public Callback_Communicator_flushBatchRequests_Base,
94 public ::IceInternal::OnewayCallback<T, 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);
120 ::IceInternal::Callback<T, CT>::exception(result, ex);
131 template<
class T,
typename CT> Callback_Communicator_flushBatchRequestsPtr
134 void (T::*sentcb)(
bool,
const CT&) = 0)
136 return new Callback_Communicator_flushBatchRequests<T, CT>(instance, excb, sentcb);
144 template<
class T,
typename CT> Callback_Communicator_flushBatchRequestsPtr
145 newCallback_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);