16#ifndef __IceDiscovery_IceDiscovery_h__
17#define __IceDiscovery_IceDiscovery_h__
38#ifndef ICE_IGNORE_VERSION
39# if ICE_INT_VERSION / 100 != 307
40# error Ice version mismatch!
42# if ICE_INT_VERSION % 100 >= 50
43# error Beta header file detected
45# if ICE_INT_VERSION % 100 < 11
46# error Ice patch level mismatch!
50#ifdef ICE_CPP11_MAPPING
82 virtual bool ice_isA(::std::string
id, const ::Ice::Current& current)
const override;
89 virtual ::std::vector<::std::string>
ice_ids(const ::Ice::Current& current)
const override;
96 virtual ::std::string
ice_id(const ::Ice::Current& current)
const override;
112 bool _iceD_foundObjectById(::IceInternal::Incoming&, const ::Ice::Current&);
124 virtual void foundAdapterById(::std::string
id, ::std::shared_ptr<::Ice::ObjectPrx> prx,
bool isReplicaGroup, const ::Ice::Current& current) = 0;
126 bool _iceD_foundAdapterById(::IceInternal::Incoming&, const ::Ice::Current&);
130 virtual bool _iceDispatch(::IceInternal::Incoming&, const ::Ice::Current&)
override;
151 virtual bool ice_isA(::std::string
id, const ::Ice::Current& current)
const override;
158 virtual ::std::vector<::std::string>
ice_ids(const ::Ice::Current& current)
const override;
165 virtual ::std::string
ice_id(const ::Ice::Current& current)
const override;
184 bool _iceD_findObjectById(::IceInternal::Incoming&, const ::Ice::Current&);
196 virtual void findAdapterById(::std::string domainId, ::std::string
id, ::std::shared_ptr<LookupReplyPrx> reply, const ::Ice::Current& current) = 0;
198 bool _iceD_findAdapterById(::IceInternal::Incoming&, const ::Ice::Current&);
202 virtual bool _iceDispatch(::IceInternal::Incoming&, const ::Ice::Current&)
override;
228 _makePromiseOutgoing<void>(
true,
this, &LookupReplyPrx::_iceI_foundObjectById,
id, prx, context).get();
238 template<
template<
typename>
class P = ::std::promise>
240 ->
decltype(::std::declval<P<void>>().get_future())
242 return _makePromiseOutgoing<void, P>(
false,
this, &LookupReplyPrx::_iceI_foundObjectById,
id, prx, context);
255 ::std::function<void()>
257 ::std::function<
void()> response,
258 ::std::function<
void(::std::exception_ptr)> ex =
nullptr,
259 ::std::function<
void(
bool)> sent =
nullptr,
262 return _makeLambdaOutgoing<void>(std::move(response), std::move(ex), std::move(sent),
this, &IceDiscovery::LookupReplyPrx::_iceI_foundObjectById,
id, prx, context);
266 void _iceI_foundObjectById(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<void>>&, const ::Ice::Identity&, const ::std::shared_ptr<::Ice::ObjectPrx>&, const ::Ice::Context&);
280 _makePromiseOutgoing<void>(
true,
this, &LookupReplyPrx::_iceI_foundAdapterById,
id, prx, isReplicaGroup, context).get();
293 template<
template<
typename>
class P = ::std::promise>
295 ->
decltype(::std::declval<P<void>>().get_future())
297 return _makePromiseOutgoing<void, P>(
false,
this, &LookupReplyPrx::_iceI_foundAdapterById,
id, prx, isReplicaGroup, context);
313 ::std::function<void()>
315 ::std::function<
void()> response,
316 ::std::function<
void(::std::exception_ptr)> ex =
nullptr,
317 ::std::function<
void(
bool)> sent =
nullptr,
320 return _makeLambdaOutgoing<void>(std::move(response), std::move(ex), std::move(sent),
this, &IceDiscovery::LookupReplyPrx::_iceI_foundAdapterById,
id, prx, isReplicaGroup, context);
324 void _iceI_foundAdapterById(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<void>>&, const ::std::string&, const ::std::shared_ptr<::Ice::ObjectPrx>&,
bool, const ::Ice::Context&);
337 friend ::std::shared_ptr<LookupReplyPrx> IceInternal::createProxy<LookupReplyPrx>();
339 virtual ::std::shared_ptr<::Ice::ObjectPrx> _newInstance()
const override;
363 _makePromiseOutgoing<void>(
true,
this, &LookupPrx::_iceI_findObjectById, domainId,
id, reply, context).get();
376 template<
template<
typename>
class P = ::std::promise>
378 ->
decltype(::std::declval<P<void>>().get_future())
380 return _makePromiseOutgoing<void, P>(
false,
this, &LookupPrx::_iceI_findObjectById, domainId,
id, reply, context);
396 ::std::function<void()>
397 findObjectByIdAsync(const ::std::string& domainId, const ::Ice::Identity&
id, const ::std::shared_ptr<LookupReplyPrx>& reply,
398 ::std::function<
void()> response,
399 ::std::function<
void(::std::exception_ptr)> ex =
nullptr,
400 ::std::function<
void(
bool)> sent =
nullptr,
403 return _makeLambdaOutgoing<void>(std::move(response), std::move(ex), std::move(sent),
this, &IceDiscovery::LookupPrx::_iceI_findObjectById, domainId,
id, reply, context);
407 void _iceI_findObjectById(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<void>>&, const ::std::string&, const ::Ice::Identity&, const ::std::shared_ptr<LookupReplyPrx>&, const ::Ice::Context&);
421 _makePromiseOutgoing<void>(
true,
this, &LookupPrx::_iceI_findAdapterById, domainId,
id, reply, context).get();
434 template<
template<
typename>
class P = ::std::promise>
436 ->
decltype(::std::declval<P<void>>().get_future())
438 return _makePromiseOutgoing<void, P>(
false,
this, &LookupPrx::_iceI_findAdapterById, domainId,
id, reply, context);
454 ::std::function<void()>
455 findAdapterByIdAsync(const ::std::string& domainId, const ::std::string&
id, const ::std::shared_ptr<LookupReplyPrx>& reply,
456 ::std::function<
void()> response,
457 ::std::function<
void(::std::exception_ptr)> ex =
nullptr,
458 ::std::function<
void(
bool)> sent =
nullptr,
461 return _makeLambdaOutgoing<void>(std::move(response), std::move(ex), std::move(sent),
this, &IceDiscovery::LookupPrx::_iceI_findAdapterById, domainId,
id, reply, context);
465 void _iceI_findAdapterById(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<void>>&, const ::std::string&, const ::std::string&, const ::std::shared_ptr<LookupReplyPrx>&, const ::Ice::Context&);
478 friend ::std::shared_ptr<LookupPrx> IceInternal::createProxy<LookupPrx>();
480 virtual ::std::shared_ptr<::Ice::ObjectPrx> _newInstance()
const override;
497using LookupReplyPtr = ::std::shared_ptr<LookupReply>;
498using LookupReplyPrxPtr = ::std::shared_ptr<LookupReplyPrx>;
500using LookupPtr = ::std::shared_ptr<Lookup>;
501using LookupPrxPtr = ::std::shared_ptr<LookupPrx>;
511namespace IceDiscovery
516void _readProxy(::Ice::InputStream*, ::IceInternal::ProxyHandle< LookupReply>&);
517::IceProxy::Ice::Object* upCast(LookupReply*);
522void _readProxy(::Ice::InputStream*, ::IceInternal::ProxyHandle< Lookup>&);
523::IceProxy::Ice::Object* upCast(Lookup*);
537typedef ::IceInternal::Handle< LookupReply> LookupReplyPtr;
538typedef ::IceInternal::ProxyHandle< ::IceProxy::IceDiscovery::LookupReply>
LookupReplyPrx;
541void _icePatchObjectPtr(LookupReplyPtr&, const ::Ice::ObjectPtr&);
546::Ice::Object* upCast(
Lookup*);
548typedef ::IceInternal::Handle< Lookup> LookupPtr;
549typedef ::IceInternal::ProxyHandle< ::IceProxy::IceDiscovery::Lookup>
LookupPrx;
552void _icePatchObjectPtr(LookupPtr&, const ::Ice::ObjectPtr&);
565class Callback_LookupReply_foundObjectById_Base :
public virtual ::IceInternal::CallbackBase { };
566typedef ::IceUtil::Handle< Callback_LookupReply_foundObjectById_Base> Callback_LookupReply_foundObjectByIdPtr;
573class Callback_LookupReply_foundAdapterById_Base :
public virtual ::IceInternal::CallbackBase { };
574typedef ::IceUtil::Handle< Callback_LookupReply_foundAdapterById_Base> Callback_LookupReply_foundAdapterByIdPtr;
581class Callback_Lookup_findObjectById_Base :
public virtual ::IceInternal::CallbackBase { };
582typedef ::IceUtil::Handle< Callback_Lookup_findObjectById_Base> Callback_Lookup_findObjectByIdPtr;
589class Callback_Lookup_findAdapterById_Base :
public virtual ::IceInternal::CallbackBase { };
590typedef ::IceUtil::Handle< Callback_Lookup_findAdapterById_Base> Callback_Lookup_findAdapterByIdPtr;
597namespace IceDiscovery
600class LookupReply :
public virtual ::Ice::Proxy<LookupReply, ::IceProxy::Ice::Object>
610 void foundObjectById(const ::Ice::Identity&
id, const ::Ice::ObjectPrx& prx, const ::Ice::Context& context =
::Ice::noExplicitContext)
612 end_foundObjectById(_iceI_begin_foundObjectById(
id, prx, context, ::IceInternal::dummyCallback, 0,
true));
622 ::Ice::AsyncResultPtr begin_foundObjectById(const ::Ice::Identity&
id, const ::Ice::ObjectPrx& prx, const ::Ice::Context& context =
::Ice::noExplicitContext)
624 return _iceI_begin_foundObjectById(
id, prx, context, ::IceInternal::dummyCallback, 0);
635 ::Ice::AsyncResultPtr begin_foundObjectById(const ::Ice::Identity&
id, const ::Ice::ObjectPrx& prx, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
649 ::Ice::AsyncResultPtr begin_foundObjectById(const ::Ice::Identity&
id, const ::Ice::ObjectPrx& prx, const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
651 return _iceI_begin_foundObjectById(
id, prx, context, cb, cookie);
662 ::Ice::AsyncResultPtr begin_foundObjectById(const ::Ice::Identity&
id, const ::Ice::ObjectPrx& prx, const ::IceDiscovery::Callback_LookupReply_foundObjectByIdPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
676 ::Ice::AsyncResultPtr begin_foundObjectById(const ::Ice::Identity&
id, const ::Ice::ObjectPrx& prx, const ::Ice::Context& context, const ::IceDiscovery::Callback_LookupReply_foundObjectByIdPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
678 return _iceI_begin_foundObjectById(
id, prx, context, cb, cookie);
685 void end_foundObjectById(const ::Ice::AsyncResultPtr& result);
689 ::Ice::AsyncResultPtr _iceI_begin_foundObjectById(const ::Ice::Identity&, const ::Ice::ObjectPrx&, const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0,
bool sync =
false);
702 void foundAdapterById(const ::std::string&
id, const ::Ice::ObjectPrx& prx,
bool isReplicaGroup, const ::Ice::Context& context =
::Ice::noExplicitContext)
704 end_foundAdapterById(_iceI_begin_foundAdapterById(
id, prx, isReplicaGroup, context, ::IceInternal::dummyCallback, 0,
true));
717 ::Ice::AsyncResultPtr begin_foundAdapterById(const ::std::string&
id, const ::Ice::ObjectPrx& prx,
bool isReplicaGroup, const ::Ice::Context& context =
::Ice::noExplicitContext)
719 return _iceI_begin_foundAdapterById(
id, prx, isReplicaGroup, context, ::IceInternal::dummyCallback, 0);
733 ::Ice::AsyncResultPtr begin_foundAdapterById(const ::std::string&
id, const ::Ice::ObjectPrx& prx,
bool isReplicaGroup, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
750 ::Ice::AsyncResultPtr begin_foundAdapterById(const ::std::string&
id, const ::Ice::ObjectPrx& prx,
bool isReplicaGroup, const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
752 return _iceI_begin_foundAdapterById(
id, prx, isReplicaGroup, context, cb, cookie);
766 ::Ice::AsyncResultPtr begin_foundAdapterById(const ::std::string&
id, const ::Ice::ObjectPrx& prx,
bool isReplicaGroup, const ::IceDiscovery::Callback_LookupReply_foundAdapterByIdPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
783 ::Ice::AsyncResultPtr begin_foundAdapterById(const ::std::string&
id, const ::Ice::ObjectPrx& prx,
bool isReplicaGroup, const ::Ice::Context& context, const ::IceDiscovery::Callback_LookupReply_foundAdapterByIdPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
785 return _iceI_begin_foundAdapterById(
id, prx, isReplicaGroup, context, cb, cookie);
792 void end_foundAdapterById(const ::Ice::AsyncResultPtr& result);
796 ::Ice::AsyncResultPtr _iceI_begin_foundAdapterById(const ::std::string&, const ::Ice::ObjectPrx&,
bool, const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0,
bool sync =
false);
804 static const ::std::string& ice_staticId();
809 virtual ::IceProxy::Ice::Object* _newInstance()
const;
813class Lookup :
public virtual ::Ice::Proxy<Lookup, ::IceProxy::Ice::Object>
826 void findObjectById(const ::std::string& domainId, const ::Ice::Identity&
id, const ::IceDiscovery::LookupReplyPrx& reply, const ::Ice::Context& context =
::Ice::noExplicitContext)
828 end_findObjectById(_iceI_begin_findObjectById(domainId,
id, reply, context, ::IceInternal::dummyCallback, 0,
true));
841 ::Ice::AsyncResultPtr begin_findObjectById(const ::std::string& domainId, const ::Ice::Identity&
id, const ::IceDiscovery::LookupReplyPrx& reply, const ::Ice::Context& context =
::Ice::noExplicitContext)
843 return _iceI_begin_findObjectById(domainId,
id, reply, context, ::IceInternal::dummyCallback, 0);
857 ::Ice::AsyncResultPtr begin_findObjectById(const ::std::string& domainId, const ::Ice::Identity&
id, const ::IceDiscovery::LookupReplyPrx& reply, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
874 ::Ice::AsyncResultPtr begin_findObjectById(const ::std::string& domainId, const ::Ice::Identity&
id, const ::IceDiscovery::LookupReplyPrx& reply, const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
876 return _iceI_begin_findObjectById(domainId,
id, reply, context, cb, cookie);
890 ::Ice::AsyncResultPtr begin_findObjectById(const ::std::string& domainId, const ::Ice::Identity&
id, const ::IceDiscovery::LookupReplyPrx& reply, const ::IceDiscovery::Callback_Lookup_findObjectByIdPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
907 ::Ice::AsyncResultPtr begin_findObjectById(const ::std::string& domainId, const ::Ice::Identity&
id, const ::IceDiscovery::LookupReplyPrx& reply, const ::Ice::Context& context, const ::IceDiscovery::Callback_Lookup_findObjectByIdPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
909 return _iceI_begin_findObjectById(domainId,
id, reply, context, cb, cookie);
916 void end_findObjectById(const ::Ice::AsyncResultPtr& result);
920 ::Ice::AsyncResultPtr _iceI_begin_findObjectById(const ::std::string&, const ::Ice::Identity&, const ::IceDiscovery::LookupReplyPrx&, const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0,
bool sync =
false);
933 void findAdapterById(const ::std::string& domainId, const ::std::string&
id, const ::IceDiscovery::LookupReplyPrx& reply, const ::Ice::Context& context =
::Ice::noExplicitContext)
935 end_findAdapterById(_iceI_begin_findAdapterById(domainId,
id, reply, context, ::IceInternal::dummyCallback, 0,
true));
948 ::Ice::AsyncResultPtr begin_findAdapterById(const ::std::string& domainId, const ::std::string&
id, const ::IceDiscovery::LookupReplyPrx& reply, const ::Ice::Context& context =
::Ice::noExplicitContext)
950 return _iceI_begin_findAdapterById(domainId,
id, reply, context, ::IceInternal::dummyCallback, 0);
964 ::Ice::AsyncResultPtr begin_findAdapterById(const ::std::string& domainId, const ::std::string&
id, const ::IceDiscovery::LookupReplyPrx& reply, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
981 ::Ice::AsyncResultPtr begin_findAdapterById(const ::std::string& domainId, const ::std::string&
id, const ::IceDiscovery::LookupReplyPrx& reply, const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
983 return _iceI_begin_findAdapterById(domainId,
id, reply, context, cb, cookie);
997 ::Ice::AsyncResultPtr begin_findAdapterById(const ::std::string& domainId, const ::std::string&
id, const ::IceDiscovery::LookupReplyPrx& reply, const ::IceDiscovery::Callback_Lookup_findAdapterByIdPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1014 ::Ice::AsyncResultPtr begin_findAdapterById(const ::std::string& domainId, const ::std::string&
id, const ::IceDiscovery::LookupReplyPrx& reply, const ::Ice::Context& context, const ::IceDiscovery::Callback_Lookup_findAdapterByIdPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1016 return _iceI_begin_findAdapterById(domainId,
id, reply, context, cb, cookie);
1023 void end_findAdapterById(const ::Ice::AsyncResultPtr& result);
1027 ::Ice::AsyncResultPtr _iceI_begin_findAdapterById(const ::std::string&, const ::std::string&, const ::IceDiscovery::LookupReplyPrx&, const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0,
bool sync =
false);
1035 static const ::std::string& ice_staticId();
1040 virtual ::IceProxy::Ice::Object* _newInstance()
const;
1061 typedef LookupReplyPtr PointerType;
1063 virtual ~LookupReply();
1065#ifdef ICE_CPP11_COMPILER
1066 LookupReply() =
default;
1067 LookupReply(
const LookupReply&) =
default;
1068 LookupReply& operator=(
const LookupReply&) =
default;
1107 bool _iceD_foundObjectById(::IceInternal::Incoming&, const ::Ice::Current&);
1121 bool _iceD_foundAdapterById(::IceInternal::Incoming&, const ::Ice::Current&);
1125 virtual bool _iceDispatch(::IceInternal::Incoming&, const ::Ice::Current&);
1131 virtual void _iceWriteImpl(::Ice::OutputStream*)
const;
1132 virtual void _iceReadImpl(::Ice::InputStream*);
1139 return static_cast<const ::Ice::Object&
>(lhs) ==
static_cast<const ::Ice::Object&
>(rhs);
1144 return static_cast<const ::Ice::Object&
>(lhs) <
static_cast<const ::Ice::Object&
>(rhs);
1153class Lookup :
public virtual ::Ice::Object
1158 typedef LookupPtr PointerType;
1162#ifdef ICE_CPP11_COMPILER
1164 Lookup(
const Lookup&) =
default;
1165 Lookup& operator=(
const Lookup&) =
default;
1205 virtual void findObjectById(const ::std::string& domainId, const ::Ice::Identity&
id,
const LookupReplyPrx& reply, const ::Ice::Current& current =
::Ice::emptyCurrent) = 0;
1207 bool _iceD_findObjectById(::IceInternal::Incoming&, const ::Ice::Current&);
1219 virtual void findAdapterById(const ::std::string& domainId, const ::std::string&
id,
const LookupReplyPrx& reply, const ::Ice::Current& current =
::Ice::emptyCurrent) = 0;
1221 bool _iceD_findAdapterById(::IceInternal::Incoming&, const ::Ice::Current&);
1225 virtual bool _iceDispatch(::IceInternal::Incoming&, const ::Ice::Current&);
1231 virtual void _iceWriteImpl(::Ice::OutputStream*)
const;
1232 virtual void _iceReadImpl(::Ice::InputStream*);
1239 return static_cast<const ::Ice::Object&
>(lhs) ==
static_cast<const ::Ice::Object&
>(rhs);
1244 return static_cast<const ::Ice::Object&
>(lhs) <
static_cast<const ::Ice::Object&
>(rhs);
1266class CallbackNC_LookupReply_foundObjectById :
public Callback_LookupReply_foundObjectById_Base,
public ::IceInternal::OnewayCallbackNC<T>
1270 typedef IceUtil::Handle<T> TPtr;
1272 typedef void (T::*Exception)(const ::Ice::Exception&);
1273 typedef void (T::*Sent)(bool);
1274 typedef void (T::*Response)();
1276 CallbackNC_LookupReply_foundObjectById(
const TPtr& obj, Response cb, Exception excb, Sent sentcb)
1277 : ::IceInternal::OnewayCallbackNC<T>(obj, cb, excb, sentcb)
1290template<
class T> Callback_LookupReply_foundObjectByIdPtr
1291newCallback_LookupReply_foundObjectById(
const IceUtil::Handle<T>& instance,
void (T::*cb)(),
void (T::*excb)(const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
1293 return new CallbackNC_LookupReply_foundObjectById<T>(instance, cb, excb, sentcb);
1303template<
class T> Callback_LookupReply_foundObjectByIdPtr
1304newCallback_LookupReply_foundObjectById(
const IceUtil::Handle<T>& instance,
void (T::*excb)(const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
1306 return new CallbackNC_LookupReply_foundObjectById<T>(instance, 0, excb, sentcb);
1317template<
class T> Callback_LookupReply_foundObjectByIdPtr
1318newCallback_LookupReply_foundObjectById(T* instance,
void (T::*cb)(),
void (T::*excb)(const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
1320 return new CallbackNC_LookupReply_foundObjectById<T>(instance, cb, excb, sentcb);
1330template<
class T> Callback_LookupReply_foundObjectByIdPtr
1331newCallback_LookupReply_foundObjectById(T* instance,
void (T::*excb)(const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
1333 return new CallbackNC_LookupReply_foundObjectById<T>(instance, 0, excb, sentcb);
1341template<
class T,
typename CT>
1342class Callback_LookupReply_foundObjectById :
public Callback_LookupReply_foundObjectById_Base,
public ::IceInternal::OnewayCallback<T, CT>
1346 typedef IceUtil::Handle<T> TPtr;
1348 typedef void (T::*Exception)(const ::Ice::Exception& ,
const CT&);
1349 typedef void (T::*Sent)(bool ,
const CT&);
1350 typedef void (T::*Response)(
const CT&);
1352 Callback_LookupReply_foundObjectById(
const TPtr& obj, Response cb, Exception excb, Sent sentcb)
1353 : ::IceInternal::OnewayCallback<T, CT>(obj, cb, excb, sentcb)
1367template<
class T,
typename CT> Callback_LookupReply_foundObjectByIdPtr
1368newCallback_LookupReply_foundObjectById(
const IceUtil::Handle<T>& instance,
void (T::*cb)(
const CT&),
void (T::*excb)(const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
1370 return new Callback_LookupReply_foundObjectById<T, CT>(instance, cb, excb, sentcb);
1381template<
class T,
typename CT> Callback_LookupReply_foundObjectByIdPtr
1382newCallback_LookupReply_foundObjectById(
const IceUtil::Handle<T>& instance,
void (T::*excb)(const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
1384 return new Callback_LookupReply_foundObjectById<T, CT>(instance, 0, excb, sentcb);
1396template<
class T,
typename CT> Callback_LookupReply_foundObjectByIdPtr
1397newCallback_LookupReply_foundObjectById(T* instance,
void (T::*cb)(
const CT&),
void (T::*excb)(const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
1399 return new Callback_LookupReply_foundObjectById<T, CT>(instance, cb, excb, sentcb);
1410template<
class T,
typename CT> Callback_LookupReply_foundObjectByIdPtr
1411newCallback_LookupReply_foundObjectById(T* instance,
void (T::*excb)(const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
1413 return new Callback_LookupReply_foundObjectById<T, CT>(instance, 0, excb, sentcb);
1422class CallbackNC_LookupReply_foundAdapterById :
public Callback_LookupReply_foundAdapterById_Base,
public ::IceInternal::OnewayCallbackNC<T>
1426 typedef IceUtil::Handle<T> TPtr;
1428 typedef void (T::*Exception)(const ::Ice::Exception&);
1429 typedef void (T::*Sent)(bool);
1430 typedef void (T::*Response)();
1432 CallbackNC_LookupReply_foundAdapterById(
const TPtr& obj, Response cb, Exception excb, Sent sentcb)
1433 : ::IceInternal::OnewayCallbackNC<T>(obj, cb, excb, sentcb)
1446template<
class T> Callback_LookupReply_foundAdapterByIdPtr
1447newCallback_LookupReply_foundAdapterById(
const IceUtil::Handle<T>& instance,
void (T::*cb)(),
void (T::*excb)(const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
1449 return new CallbackNC_LookupReply_foundAdapterById<T>(instance, cb, excb, sentcb);
1459template<
class T> Callback_LookupReply_foundAdapterByIdPtr
1460newCallback_LookupReply_foundAdapterById(
const IceUtil::Handle<T>& instance,
void (T::*excb)(const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
1462 return new CallbackNC_LookupReply_foundAdapterById<T>(instance, 0, excb, sentcb);
1473template<
class T> Callback_LookupReply_foundAdapterByIdPtr
1474newCallback_LookupReply_foundAdapterById(T* instance,
void (T::*cb)(),
void (T::*excb)(const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
1476 return new CallbackNC_LookupReply_foundAdapterById<T>(instance, cb, excb, sentcb);
1486template<
class T> Callback_LookupReply_foundAdapterByIdPtr
1487newCallback_LookupReply_foundAdapterById(T* instance,
void (T::*excb)(const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
1489 return new CallbackNC_LookupReply_foundAdapterById<T>(instance, 0, excb, sentcb);
1497template<
class T,
typename CT>
1498class Callback_LookupReply_foundAdapterById :
public Callback_LookupReply_foundAdapterById_Base,
public ::IceInternal::OnewayCallback<T, CT>
1502 typedef IceUtil::Handle<T> TPtr;
1504 typedef void (T::*Exception)(const ::Ice::Exception& ,
const CT&);
1505 typedef void (T::*Sent)(bool ,
const CT&);
1506 typedef void (T::*Response)(
const CT&);
1508 Callback_LookupReply_foundAdapterById(
const TPtr& obj, Response cb, Exception excb, Sent sentcb)
1509 : ::IceInternal::OnewayCallback<T, CT>(obj, cb, excb, sentcb)
1523template<
class T,
typename CT> Callback_LookupReply_foundAdapterByIdPtr
1524newCallback_LookupReply_foundAdapterById(
const IceUtil::Handle<T>& instance,
void (T::*cb)(
const CT&),
void (T::*excb)(const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
1526 return new Callback_LookupReply_foundAdapterById<T, CT>(instance, cb, excb, sentcb);
1537template<
class T,
typename CT> Callback_LookupReply_foundAdapterByIdPtr
1538newCallback_LookupReply_foundAdapterById(
const IceUtil::Handle<T>& instance,
void (T::*excb)(const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
1540 return new Callback_LookupReply_foundAdapterById<T, CT>(instance, 0, excb, sentcb);
1552template<
class T,
typename CT> Callback_LookupReply_foundAdapterByIdPtr
1553newCallback_LookupReply_foundAdapterById(T* instance,
void (T::*cb)(
const CT&),
void (T::*excb)(const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
1555 return new Callback_LookupReply_foundAdapterById<T, CT>(instance, cb, excb, sentcb);
1566template<
class T,
typename CT> Callback_LookupReply_foundAdapterByIdPtr
1567newCallback_LookupReply_foundAdapterById(T* instance,
void (T::*excb)(const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
1569 return new Callback_LookupReply_foundAdapterById<T, CT>(instance, 0, excb, sentcb);
1578class CallbackNC_Lookup_findObjectById :
public Callback_Lookup_findObjectById_Base,
public ::IceInternal::OnewayCallbackNC<T>
1582 typedef IceUtil::Handle<T> TPtr;
1584 typedef void (T::*Exception)(const ::Ice::Exception&);
1585 typedef void (T::*Sent)(bool);
1586 typedef void (T::*Response)();
1588 CallbackNC_Lookup_findObjectById(
const TPtr& obj, Response cb, Exception excb, Sent sentcb)
1589 : ::IceInternal::OnewayCallbackNC<T>(obj, cb, excb, sentcb)
1602template<
class T> Callback_Lookup_findObjectByIdPtr
1603newCallback_Lookup_findObjectById(
const IceUtil::Handle<T>& instance,
void (T::*cb)(),
void (T::*excb)(const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
1605 return new CallbackNC_Lookup_findObjectById<T>(instance, cb, excb, sentcb);
1615template<
class T> Callback_Lookup_findObjectByIdPtr
1616newCallback_Lookup_findObjectById(
const IceUtil::Handle<T>& instance,
void (T::*excb)(const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
1618 return new CallbackNC_Lookup_findObjectById<T>(instance, 0, excb, sentcb);
1629template<
class T> Callback_Lookup_findObjectByIdPtr
1630newCallback_Lookup_findObjectById(T* instance,
void (T::*cb)(),
void (T::*excb)(const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
1632 return new CallbackNC_Lookup_findObjectById<T>(instance, cb, excb, sentcb);
1642template<
class T> Callback_Lookup_findObjectByIdPtr
1643newCallback_Lookup_findObjectById(T* instance,
void (T::*excb)(const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
1645 return new CallbackNC_Lookup_findObjectById<T>(instance, 0, excb, sentcb);
1653template<
class T,
typename CT>
1654class Callback_Lookup_findObjectById :
public Callback_Lookup_findObjectById_Base,
public ::IceInternal::OnewayCallback<T, CT>
1658 typedef IceUtil::Handle<T> TPtr;
1660 typedef void (T::*Exception)(const ::Ice::Exception& ,
const CT&);
1661 typedef void (T::*Sent)(bool ,
const CT&);
1662 typedef void (T::*Response)(
const CT&);
1664 Callback_Lookup_findObjectById(
const TPtr& obj, Response cb, Exception excb, Sent sentcb)
1665 : ::IceInternal::OnewayCallback<T, CT>(obj, cb, excb, sentcb)
1679template<
class T,
typename CT> Callback_Lookup_findObjectByIdPtr
1680newCallback_Lookup_findObjectById(
const IceUtil::Handle<T>& instance,
void (T::*cb)(
const CT&),
void (T::*excb)(const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
1682 return new Callback_Lookup_findObjectById<T, CT>(instance, cb, excb, sentcb);
1693template<
class T,
typename CT> Callback_Lookup_findObjectByIdPtr
1694newCallback_Lookup_findObjectById(
const IceUtil::Handle<T>& instance,
void (T::*excb)(const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
1696 return new Callback_Lookup_findObjectById<T, CT>(instance, 0, excb, sentcb);
1708template<
class T,
typename CT> Callback_Lookup_findObjectByIdPtr
1709newCallback_Lookup_findObjectById(T* instance,
void (T::*cb)(
const CT&),
void (T::*excb)(const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
1711 return new Callback_Lookup_findObjectById<T, CT>(instance, cb, excb, sentcb);
1722template<
class T,
typename CT> Callback_Lookup_findObjectByIdPtr
1723newCallback_Lookup_findObjectById(T* instance,
void (T::*excb)(const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
1725 return new Callback_Lookup_findObjectById<T, CT>(instance, 0, excb, sentcb);
1734class CallbackNC_Lookup_findAdapterById :
public Callback_Lookup_findAdapterById_Base,
public ::IceInternal::OnewayCallbackNC<T>
1738 typedef IceUtil::Handle<T> TPtr;
1740 typedef void (T::*Exception)(const ::Ice::Exception&);
1741 typedef void (T::*Sent)(bool);
1742 typedef void (T::*Response)();
1744 CallbackNC_Lookup_findAdapterById(
const TPtr& obj, Response cb, Exception excb, Sent sentcb)
1745 : ::IceInternal::OnewayCallbackNC<T>(obj, cb, excb, sentcb)
1758template<
class T> Callback_Lookup_findAdapterByIdPtr
1759newCallback_Lookup_findAdapterById(
const IceUtil::Handle<T>& instance,
void (T::*cb)(),
void (T::*excb)(const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
1761 return new CallbackNC_Lookup_findAdapterById<T>(instance, cb, excb, sentcb);
1771template<
class T> Callback_Lookup_findAdapterByIdPtr
1772newCallback_Lookup_findAdapterById(
const IceUtil::Handle<T>& instance,
void (T::*excb)(const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
1774 return new CallbackNC_Lookup_findAdapterById<T>(instance, 0, excb, sentcb);
1785template<
class T> Callback_Lookup_findAdapterByIdPtr
1786newCallback_Lookup_findAdapterById(T* instance,
void (T::*cb)(),
void (T::*excb)(const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
1788 return new CallbackNC_Lookup_findAdapterById<T>(instance, cb, excb, sentcb);
1798template<
class T> Callback_Lookup_findAdapterByIdPtr
1799newCallback_Lookup_findAdapterById(T* instance,
void (T::*excb)(const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
1801 return new CallbackNC_Lookup_findAdapterById<T>(instance, 0, excb, sentcb);
1809template<
class T,
typename CT>
1810class Callback_Lookup_findAdapterById :
public Callback_Lookup_findAdapterById_Base,
public ::IceInternal::OnewayCallback<T, CT>
1814 typedef IceUtil::Handle<T> TPtr;
1816 typedef void (T::*Exception)(const ::Ice::Exception& ,
const CT&);
1817 typedef void (T::*Sent)(bool ,
const CT&);
1818 typedef void (T::*Response)(
const CT&);
1820 Callback_Lookup_findAdapterById(
const TPtr& obj, Response cb, Exception excb, Sent sentcb)
1821 : ::IceInternal::OnewayCallback<T, CT>(obj, cb, excb, sentcb)
1835template<
class T,
typename CT> Callback_Lookup_findAdapterByIdPtr
1836newCallback_Lookup_findAdapterById(
const IceUtil::Handle<T>& instance,
void (T::*cb)(
const CT&),
void (T::*excb)(const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
1838 return new Callback_Lookup_findAdapterById<T, CT>(instance, cb, excb, sentcb);
1849template<
class T,
typename CT> Callback_Lookup_findAdapterByIdPtr
1850newCallback_Lookup_findAdapterById(
const IceUtil::Handle<T>& instance,
void (T::*excb)(const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
1852 return new Callback_Lookup_findAdapterById<T, CT>(instance, 0, excb, sentcb);
1864template<
class T,
typename CT> Callback_Lookup_findAdapterByIdPtr
1865newCallback_Lookup_findAdapterById(T* instance,
void (T::*cb)(
const CT&),
void (T::*excb)(const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
1867 return new Callback_Lookup_findAdapterById<T, CT>(instance, cb, excb, sentcb);
1878template<
class T,
typename CT> Callback_Lookup_findAdapterByIdPtr
1879newCallback_Lookup_findAdapterById(T* instance,
void (T::*excb)(const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
1881 return new Callback_Lookup_findAdapterById<T, CT>(instance, 0, excb, sentcb);
The Lookup interface is used by IceDiscovery clients to look for objects and adapters using UDP multi...
Definition IceDiscovery.h:349
::std::function< void()> findObjectByIdAsync(const ::std::string &domainId, const ::Ice::Identity &id, const ::std::shared_ptr< LookupReplyPrx > &reply, ::std::function< void()> response, ::std::function< void(::std::exception_ptr)> ex=nullptr, ::std::function< void(bool)> sent=nullptr, const ::Ice::Context &context=::Ice::noExplicitContext)
Request to find an Ice object.
Definition IceDiscovery.h:397
void findAdapterById(const ::std::string &domainId, const ::std::string &id, const ::std::shared_ptr< LookupReplyPrx > &reply, const ::Ice::Context &context=::Ice::noExplicitContext)
Request to find an object adapter.
Definition IceDiscovery.h:419
void findObjectById(const ::std::string &domainId, const ::Ice::Identity &id, const ::std::shared_ptr< LookupReplyPrx > &reply, const ::Ice::Context &context=::Ice::noExplicitContext)
Request to find an Ice object.
Definition IceDiscovery.h:361
auto findAdapterByIdAsync(const ::std::string &domainId, const ::std::string &id, const ::std::shared_ptr< LookupReplyPrx > &reply, const ::Ice::Context &context=::Ice::noExplicitContext) -> decltype(::std::declval< P< void > >().get_future())
Request to find an object adapter.
Definition IceDiscovery.h:435
::std::function< void()> findAdapterByIdAsync(const ::std::string &domainId, const ::std::string &id, const ::std::shared_ptr< LookupReplyPrx > &reply, ::std::function< void()> response, ::std::function< void(::std::exception_ptr)> ex=nullptr, ::std::function< void(bool)> sent=nullptr, const ::Ice::Context &context=::Ice::noExplicitContext)
Request to find an object adapter.
Definition IceDiscovery.h:455
static const ::std::string & ice_staticId()
Obtains the Slice type ID of this interface.
auto findObjectByIdAsync(const ::std::string &domainId, const ::Ice::Identity &id, const ::std::shared_ptr< LookupReplyPrx > &reply, const ::Ice::Context &context=::Ice::noExplicitContext) -> decltype(::std::declval< P< void > >().get_future())
Request to find an Ice object.
Definition IceDiscovery.h:377
The LookupReply interface is used by IceDiscovery clients to answer requests received on the Lookup i...
Definition IceDiscovery.h:217
void foundObjectById(const ::Ice::Identity &id, const ::std::shared_ptr<::Ice::ObjectPrx > &prx, const ::Ice::Context &context=::Ice::noExplicitContext)
Reply to the findObjectById request.
Definition IceDiscovery.h:226
auto foundAdapterByIdAsync(const ::std::string &id, const ::std::shared_ptr<::Ice::ObjectPrx > &prx, bool isReplicaGroup, const ::Ice::Context &context=::Ice::noExplicitContext) -> decltype(::std::declval< P< void > >().get_future())
Reply to the findAdpaterById request.
Definition IceDiscovery.h:294
void foundAdapterById(const ::std::string &id, const ::std::shared_ptr<::Ice::ObjectPrx > &prx, bool isReplicaGroup, const ::Ice::Context &context=::Ice::noExplicitContext)
Reply to the findAdpaterById request.
Definition IceDiscovery.h:278
::std::function< void()> foundAdapterByIdAsync(const ::std::string &id, const ::std::shared_ptr<::Ice::ObjectPrx > &prx, bool isReplicaGroup, ::std::function< void()> response, ::std::function< void(::std::exception_ptr)> ex=nullptr, ::std::function< void(bool)> sent=nullptr, const ::Ice::Context &context=::Ice::noExplicitContext)
Reply to the findAdpaterById request.
Definition IceDiscovery.h:314
static const ::std::string & ice_staticId()
Obtains the Slice type ID of this interface.
::std::function< void()> foundObjectByIdAsync(const ::Ice::Identity &id, const ::std::shared_ptr<::Ice::ObjectPrx > &prx, ::std::function< void()> response, ::std::function< void(::std::exception_ptr)> ex=nullptr, ::std::function< void(bool)> sent=nullptr, const ::Ice::Context &context=::Ice::noExplicitContext)
Reply to the findObjectById request.
Definition IceDiscovery.h:256
auto foundObjectByIdAsync(const ::Ice::Identity &id, const ::std::shared_ptr<::Ice::ObjectPrx > &prx, const ::Ice::Context &context=::Ice::noExplicitContext) -> decltype(::std::declval< P< void > >().get_future())
Reply to the findObjectById request.
Definition IceDiscovery.h:239
The LookupReply interface is used by IceDiscovery clients to answer requests received on the Lookup i...
Definition IceDiscovery.h:71
virtual void foundAdapterById(::std::string id, ::std::shared_ptr<::Ice::ObjectPrx > prx, bool isReplicaGroup, const ::Ice::Current ¤t)=0
Reply to the findAdpaterById request.
virtual bool ice_isA(::std::string id, const ::Ice::Current ¤t) const override
Determines whether this object supports an interface with the given Slice type ID.
virtual void foundObjectById(::Ice::Identity id, ::std::shared_ptr<::Ice::ObjectPrx > prx, const ::Ice::Current ¤t)=0
Reply to the findObjectById request.
virtual ::std::vector<::std::string > ice_ids(const ::Ice::Current ¤t) const override
Obtains a list of the Slice type IDs representing the interfaces supported by this object.
virtual::std::string ice_id(const ::Ice::Current ¤t) const override
Obtains a Slice type ID representing the most-derived interface supported by this object.
static const ::std::string & ice_staticId()
Obtains the Slice type ID corresponding to this class.
LookupReplyPrx ProxyType
Definition IceDiscovery.h:74
The Lookup interface is used by IceDiscovery clients to look for objects and adapters using UDP multi...
Definition IceDiscovery.h:140
virtual void findAdapterById(::std::string domainId, ::std::string id, ::std::shared_ptr< LookupReplyPrx > reply, const ::Ice::Current ¤t)=0
Request to find an object adapter.
static const ::std::string & ice_staticId()
Obtains the Slice type ID corresponding to this class.
virtual void findObjectById(::std::string domainId, ::Ice::Identity id, ::std::shared_ptr< LookupReplyPrx > reply, const ::Ice::Current ¤t)=0
Request to find an Ice object.
virtual::std::string ice_id(const ::Ice::Current ¤t) const override
Obtains a Slice type ID representing the most-derived interface supported by this object.
LookupPrx ProxyType
Definition IceDiscovery.h:143
virtual bool ice_isA(::std::string id, const ::Ice::Current ¤t) const override
Determines whether this object supports an interface with the given Slice type ID.
virtual ::std::vector<::std::string > ice_ids(const ::Ice::Current ¤t) const override
Obtains a list of the Slice type IDs representing the interfaces supported by this object.
The base class for servants.
Definition Object.h:91
Helper template that supplies proxy factory functions.
Definition Proxy.h:1204
Definition IceDiscovery.h:53
Definition BuiltinSequences.h:56
const Context noExplicitContext
Marker value used to indicate that no explicit context was passed to a proxy invocation.
const Current emptyCurrent
A default-initialized Current instance.
bool operator<(const C &lhs, const C &rhs)
Relational operator for generated structs and classes.
Definition Comparable.h:136
bool operator==(const C &lhs, const C &rhs)
Relational operator for generated structs and classes.
Definition Comparable.h:184
The identity of an Ice object.
Definition Identity.h:67