5#ifndef ICE_CONNECTION_ASYNC_H
6#define ICE_CONNECTION_ASYNC_H
8#ifndef ICE_CPP11_MAPPING
23class CallbackNC_Connection_flushBatchRequests :
public Callback_Connection_flushBatchRequests_Base,
24 public ::IceInternal::OnewayCallbackNC<T>
28 typedef IceUtil::Handle<T> TPtr;
30 typedef void (T::*Exception)(const ::Ice::Exception&);
31 typedef void (T::*Sent)(bool);
33 CallbackNC_Connection_flushBatchRequests(
const TPtr& obj, Exception excb, Sent sentcb)
34 : ::IceInternal::OnewayCallbackNC<T>(obj, 0, excb, sentcb)
39 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
41 ::Ice::ConnectionPtr connection = result->getConnection();
45 connection->end_flushBatchRequests(result);
48 catch(const ::Ice::Exception& ex)
50 ::IceInternal::CallbackNC<T>::exception(result, ex);
64template<
class T> Callback_Connection_flushBatchRequestsPtr
65newCallback_Connection_flushBatchRequests(
const IceUtil::Handle<T>& instance,
66 void (T::*excb)(const ::Ice::Exception&),
67 void (T::*sentcb)(
bool) = 0)
69 return new CallbackNC_Connection_flushBatchRequests<T>(instance, excb, sentcb);
80template<
class T> Callback_Connection_flushBatchRequestsPtr
81newCallback_Connection_flushBatchRequests(T* instance,
void (T::*excb)(const ::Ice::Exception&),
82 void (T::*sentcb)(
bool) = 0)
84 return new CallbackNC_Connection_flushBatchRequests<T>(instance, excb, sentcb);
93template<
class T,
typename CT>
94class Callback_Connection_flushBatchRequests :
public Callback_Connection_flushBatchRequests_Base,
95 public ::IceInternal::OnewayCallback<T, CT>
99 typedef IceUtil::Handle<T> TPtr;
101 typedef void (T::*Exception)(const ::Ice::Exception& ,
const CT&);
102 typedef void (T::*Sent)(bool ,
const CT&);
104 Callback_Connection_flushBatchRequests(
const TPtr& obj, Exception excb, Sent sentcb)
105 : ::IceInternal::OnewayCallback<T, CT>(obj, 0, excb, sentcb)
110 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
112 ::Ice::ConnectionPtr connection = result->getConnection();
116 connection->end_flushBatchRequests(result);
119 catch(const ::Ice::Exception& ex)
121 ::IceInternal::Callback<T, CT>::exception(result, ex);
135template<
class T,
typename CT> Callback_Connection_flushBatchRequestsPtr
136newCallback_Connection_flushBatchRequests(
const IceUtil::Handle<T>& instance,
137 void (T::*excb)(const ::Ice::Exception&,
const CT&),
138 void (T::*sentcb)(
bool,
const CT&) = 0)
140 return new Callback_Connection_flushBatchRequests<T, CT>(instance, excb, sentcb);
151template<
class T,
typename CT> Callback_Connection_flushBatchRequestsPtr
152newCallback_Connection_flushBatchRequests(T* instance,
void (T::*excb)(const ::Ice::Exception&,
const CT&),
153 void (T::*sentcb)(
bool,
const CT&) = 0)
155 return new Callback_Connection_flushBatchRequests<T, CT>(instance, excb, sentcb);
165class CallbackNC_Connection_heartbeat :
public Callback_Connection_heartbeat_Base,
166 public ::IceInternal::OnewayCallbackNC<T>
170 typedef IceUtil::Handle<T> TPtr;
172 typedef void (T::*Exception)(const ::Ice::Exception&);
173 typedef void (T::*Sent)(bool);
175 CallbackNC_Connection_heartbeat(
const TPtr& obj, Exception excb, Sent sentcb)
176 : ::IceInternal::OnewayCallbackNC<T>(obj, 0, excb, sentcb)
181 virtual void completed(const ::Ice::AsyncResultPtr& __result)
const
183 ::Ice::ConnectionPtr __con = __result->getConnection();
187 __con->end_heartbeat(__result);
190 catch(const ::Ice::Exception& ex)
192 ::IceInternal::CallbackNC<T>::exception(__result, ex);
206template<
class T> Callback_Connection_heartbeatPtr
207newCallback_Connection_heartbeat(
const IceUtil::Handle<T>& instance,
208 void (T::*excb)(const ::Ice::Exception&),
209 void (T::*sentcb)(
bool) = 0)
211 return new CallbackNC_Connection_heartbeat<T>(instance, excb, sentcb);
222template<
class T> Callback_Connection_heartbeatPtr
223newCallback_Connection_heartbeat(T* instance,
void (T::*excb)(const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
225 return new CallbackNC_Connection_heartbeat<T>(instance, excb, sentcb);
234template<
class T,
typename CT>
235class Callback_Connection_heartbeat :
public Callback_Connection_heartbeat_Base,
236 public ::IceInternal::OnewayCallback<T, CT>
240 typedef IceUtil::Handle<T> TPtr;
242 typedef void (T::*Exception)(const ::Ice::Exception& ,
const CT&);
243 typedef void (T::*Sent)(bool ,
const CT&);
245 Callback_Connection_heartbeat(
const TPtr& obj, Exception excb, Sent sentcb)
246 : ::IceInternal::OnewayCallback<T, CT>(obj, 0, excb, sentcb)
251 virtual void completed(const ::Ice::AsyncResultPtr& __result)
const
253 ::Ice::ConnectionPtr __con = __result->getConnection();
257 __con->end_heartbeat(__result);
260 catch(const ::Ice::Exception& ex)
262 ::IceInternal::Callback<T, CT>::exception(__result, ex);
276template<
class T,
typename CT> Callback_Connection_heartbeatPtr
277newCallback_Connection_heartbeat(
const IceUtil::Handle<T>& instance,
278 void (T::*excb)(const ::Ice::Exception&,
const CT&),
279 void (T::*sentcb)(
bool,
const CT&) = 0)
281 return new Callback_Connection_heartbeat<T, CT>(instance, excb, sentcb);
292template<
class T,
typename CT> Callback_Connection_heartbeatPtr
293newCallback_Connection_heartbeat(T* instance,
void (T::*excb)(const ::Ice::Exception&,
const CT&),
294 void (T::*sentcb)(
bool,
const CT&) = 0)
296 return new Callback_Connection_heartbeat<T, CT>(instance, excb, sentcb);
Definition BuiltinSequences.h:56