16#ifndef __IceLocatorDiscovery_IceLocatorDiscovery_h__
17#define __IceLocatorDiscovery_IceLocatorDiscovery_h__
40#ifndef ICE_IGNORE_VERSION
41# if ICE_INT_VERSION / 100 != 307
42# error Ice version mismatch!
44# if ICE_INT_VERSION % 100 >= 50
45# error Beta header file detected
47# if ICE_INT_VERSION % 100 < 11
48# error Ice patch level mismatch!
52#ifdef ICE_CPP11_MAPPING
86 virtual bool ice_isA(::std::string
id, const ::Ice::Current& current)
const override;
93 virtual ::std::vector<::std::string>
ice_ids(const ::Ice::Current& current)
const override;
100 virtual ::std::string
ice_id(const ::Ice::Current& current)
const override;
114 virtual void foundLocator(::std::shared_ptr<::Ice::LocatorPrx> prx, const ::Ice::Current& current) = 0;
116 bool _iceD_foundLocator(::IceInternal::Incoming&, const ::Ice::Current&);
120 virtual bool _iceDispatch(::IceInternal::Incoming&, const ::Ice::Current&)
override;
135class Lookup :
public virtual ::Ice::Object
147 virtual bool ice_isA(::std::string
id, const ::Ice::Current& current)
const override;
154 virtual ::std::vector<::std::string>
ice_ids(const ::Ice::Current& current)
const override;
161 virtual ::std::string
ice_id(const ::Ice::Current& current)
const override;
177 virtual void findLocator(::std::string instanceName, ::std::shared_ptr<LookupReplyPrx> reply, const ::Ice::Current& current) = 0;
179 bool _iceD_findLocator(::IceInternal::Incoming&, const ::Ice::Current&);
183 virtual bool _iceDispatch(::IceInternal::Incoming&, const ::Ice::Current&)
override;
199class LookupReplyPrx :
public virtual ::Ice::Proxy<LookupReplyPrx, ::Ice::ObjectPrx>
209 void foundLocator(const ::std::shared_ptr<::Ice::LocatorPrx>& prx, const ::Ice::Context& context =
::Ice::noExplicitContext)
211 _makePromiseOutgoing<void>(
true,
this, &LookupReplyPrx::_iceI_foundLocator, prx, context).get();
221 template<
template<
typename>
class P = ::std::promise>
222 auto foundLocatorAsync(const ::std::shared_ptr<::Ice::LocatorPrx>& prx, const ::Ice::Context& context =
::Ice::noExplicitContext)
223 ->
decltype(::std::declval<P<void>>().get_future())
225 return _makePromiseOutgoing<void, P>(
false,
this, &LookupReplyPrx::_iceI_foundLocator, prx, context);
238 ::std::function<void()>
239 foundLocatorAsync(const ::std::shared_ptr<::Ice::LocatorPrx>& prx,
240 ::std::function<
void()> response,
241 ::std::function<
void(::std::exception_ptr)> ex =
nullptr,
242 ::std::function<
void(
bool)> sent =
nullptr,
245 return _makeLambdaOutgoing<void>(std::move(response), std::move(ex), std::move(sent),
this, &IceLocatorDiscovery::LookupReplyPrx::_iceI_foundLocator, prx, context);
249 void _iceI_foundLocator(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<void>>&, const ::std::shared_ptr<::Ice::LocatorPrx>&, const ::Ice::Context&);
256 static const ::std::string& ice_staticId();
262 friend ::std::shared_ptr<LookupReplyPrx> IceInternal::createProxy<LookupReplyPrx>();
264 virtual ::std::shared_ptr<::Ice::ObjectPrx> _newInstance()
const override;
279class LookupPrx :
public virtual ::Ice::Proxy<LookupPrx, ::Ice::ObjectPrx>
291 void findLocator(const ::std::string& instanceName, const ::std::shared_ptr<LookupReplyPrx>& reply, const ::Ice::Context& context =
::Ice::noExplicitContext)
293 _makePromiseOutgoing<void>(
true,
this, &LookupPrx::_iceI_findLocator, instanceName, reply, context).get();
305 template<
template<
typename>
class P = ::std::promise>
306 auto findLocatorAsync(const ::std::string& instanceName, const ::std::shared_ptr<LookupReplyPrx>& reply, const ::Ice::Context& context =
::Ice::noExplicitContext)
307 ->
decltype(::std::declval<P<void>>().get_future())
309 return _makePromiseOutgoing<void, P>(
false,
this, &LookupPrx::_iceI_findLocator, instanceName, reply, context);
324 ::std::function<void()>
325 findLocatorAsync(const ::std::string& instanceName, const ::std::shared_ptr<LookupReplyPrx>& reply,
326 ::std::function<
void()> response,
327 ::std::function<
void(::std::exception_ptr)> ex =
nullptr,
328 ::std::function<
void(
bool)> sent =
nullptr,
331 return _makeLambdaOutgoing<void>(std::move(response), std::move(ex), std::move(sent),
this, &IceLocatorDiscovery::LookupPrx::_iceI_findLocator, instanceName, reply, context);
335 void _iceI_findLocator(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<void>>&, const ::std::string&, const ::std::shared_ptr<LookupReplyPrx>&, const ::Ice::Context&);
342 static const ::std::string& ice_staticId();
348 friend ::std::shared_ptr<LookupPrx> IceInternal::createProxy<LookupPrx>();
350 virtual ::std::shared_ptr<::Ice::ObjectPrx> _newInstance()
const override;
370using LookupPtr = ::std::shared_ptr<Lookup>;
408typedef ::IceInternal::ProxyHandle< ::IceProxy::IceLocatorDiscovery::LookupReply>
LookupReplyPrx;
419typedef ::IceInternal::ProxyHandle< ::IceProxy::IceLocatorDiscovery::Lookup>
LookupPrx;
422void _icePatchObjectPtr(
LookupPtr&, const ::Ice::ObjectPtr&);
473 end_foundLocator(_iceI_begin_foundLocator(prx, context, ::IceInternal::dummyCallback, 0,
true));
485 return _iceI_begin_foundLocator(prx, context, ::IceInternal::dummyCallback, 0);
512 return _iceI_begin_foundLocator(prx, context, cb, cookie);
537 ::Ice::AsyncResultPtr begin_foundLocator(const ::Ice::LocatorPrx& prx, const ::Ice::Context& context, const ::IceLocatorDiscovery::Callback_LookupReply_foundLocatorPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
539 return _iceI_begin_foundLocator(prx, context, cb, cookie);
550 ::Ice::AsyncResultPtr _iceI_begin_foundLocator(const ::Ice::LocatorPrx&, const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0,
bool sync =
false);
563 virtual ::IceProxy::Ice::Object* _newInstance()
const;
581 end_findLocator(_iceI_begin_findLocator(instanceName, reply, context, ::IceInternal::dummyCallback, 0,
true));
595 return _iceI_begin_findLocator(instanceName, reply, context, ::IceInternal::dummyCallback, 0);
624 ::Ice::AsyncResultPtr begin_findLocator(const ::std::string& instanceName, const ::IceLocatorDiscovery::LookupReplyPrx& reply, const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
626 return _iceI_begin_findLocator(instanceName, reply, context, cb, cookie);
639 ::Ice::AsyncResultPtr begin_findLocator(const ::std::string& instanceName, const ::IceLocatorDiscovery::LookupReplyPrx& reply, const ::IceLocatorDiscovery::Callback_Lookup_findLocatorPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
655 ::Ice::AsyncResultPtr begin_findLocator(const ::std::string& instanceName, const ::IceLocatorDiscovery::LookupReplyPrx& reply, const ::Ice::Context& context, const ::IceLocatorDiscovery::Callback_Lookup_findLocatorPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
657 return _iceI_begin_findLocator(instanceName, reply, context, cb, cookie);
668 ::Ice::AsyncResultPtr _iceI_begin_findLocator(const ::std::string&, const ::IceLocatorDiscovery::LookupReplyPrx&, const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0,
bool sync =
false);
681 virtual ::IceProxy::Ice::Object* _newInstance()
const;
708#ifdef ICE_CPP11_COMPILER
750 bool _iceD_foundLocator(::IceInternal::Incoming&, const ::Ice::Current&);
754 virtual bool _iceDispatch(::IceInternal::Incoming&, const ::Ice::Current&);
771inline bool operator<(
const LookupReply& lhs,
const LookupReply& rhs)
797#ifdef ICE_CPP11_COMPILER
841 bool _iceD_findLocator(::IceInternal::Incoming&, const ::Ice::Current&);
845 virtual bool _iceDispatch(::IceInternal::Incoming&, const ::Ice::Current&);
857inline bool operator==(
const Lookup& lhs,
const Lookup& rhs)
862inline bool operator<(
const Lookup& lhs,
const Lookup& rhs)
897 : ::IceInternal::OnewayCallbackNC<T>(obj, cb, excb, sentcb)
961template<
class T,
typename CT>
968 typedef void (T::*
Exception)(const ::Ice::Exception& ,
const CT&);
969 typedef void (T::*
Sent)(bool ,
const CT&);
973 : ::IceInternal::OnewayCallback<T, CT>(obj, cb, excb, sentcb)
1053 : ::IceInternal::OnewayCallbackNC<T>(obj, cb, excb, sentcb)
1117template<
class T,
typename CT>
1124 typedef void (T::*
Exception)(const ::Ice::Exception& ,
const CT&);
1125 typedef void (T::*
Sent)(bool ,
const CT&);
1129 : ::IceInternal::OnewayCallback<T, CT>(obj, cb, excb, sentcb)
Type-safe asynchronous callback wrapper class used for calls to IceProxy::IceLocatorDiscovery::Lookup...
Definition IceLocatorDiscovery.h:887
void(T::* Sent)(bool)
Definition IceLocatorDiscovery.h:893
void(T::* Response)()
Definition IceLocatorDiscovery.h:894
void(T::* Exception)(const ::Ice::Exception &)
Definition IceLocatorDiscovery.h:892
CallbackNC_LookupReply_foundLocator(const TPtr &obj, Response cb, Exception excb, Sent sentcb)
Definition IceLocatorDiscovery.h:896
IceUtil::Handle< T > TPtr
Definition IceLocatorDiscovery.h:890
Type-safe asynchronous callback wrapper class used for calls to IceProxy::IceLocatorDiscovery::Lookup...
Definition IceLocatorDiscovery.h:1043
CallbackNC_Lookup_findLocator(const TPtr &obj, Response cb, Exception excb, Sent sentcb)
Definition IceLocatorDiscovery.h:1052
void(T::* Sent)(bool)
Definition IceLocatorDiscovery.h:1049
void(T::* Response)()
Definition IceLocatorDiscovery.h:1050
IceUtil::Handle< T > TPtr
Definition IceLocatorDiscovery.h:1046
void(T::* Exception)(const ::Ice::Exception &)
Definition IceLocatorDiscovery.h:1048
Base class for asynchronous callback wrapper classes used for calls to IceProxy::IceLocatorDiscovery:...
Definition IceLocatorDiscovery.h:442
Type-safe asynchronous callback wrapper class with cookie support used for calls to IceProxy::IceLoca...
Definition IceLocatorDiscovery.h:963
Callback_LookupReply_foundLocator(const TPtr &obj, Response cb, Exception excb, Sent sentcb)
Definition IceLocatorDiscovery.h:972
void(T::* Response)(const CT &)
Definition IceLocatorDiscovery.h:970
void(T::* Sent)(bool, const CT &)
Definition IceLocatorDiscovery.h:969
IceUtil::Handle< T > TPtr
Definition IceLocatorDiscovery.h:966
void(T::* Exception)(const ::Ice::Exception &, const CT &)
Definition IceLocatorDiscovery.h:968
Base class for asynchronous callback wrapper classes used for calls to IceProxy::IceLocatorDiscovery:...
Definition IceLocatorDiscovery.h:450
Type-safe asynchronous callback wrapper class with cookie support used for calls to IceProxy::IceLoca...
Definition IceLocatorDiscovery.h:1119
void(T::* Response)(const CT &)
Definition IceLocatorDiscovery.h:1126
Callback_Lookup_findLocator(const TPtr &obj, Response cb, Exception excb, Sent sentcb)
Definition IceLocatorDiscovery.h:1128
void(T::* Sent)(bool, const CT &)
Definition IceLocatorDiscovery.h:1125
IceUtil::Handle< T > TPtr
Definition IceLocatorDiscovery.h:1122
void(T::* Exception)(const ::Ice::Exception &, const CT &)
Definition IceLocatorDiscovery.h:1124
The Ice lookup reply interface must be implemented by clients which are searching for Ice locators.
Definition IceLocatorDiscovery.h:700
virtual const ::std::string & ice_id(const ::Ice::Current ¤t=::Ice::emptyCurrent) const
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.
virtual bool ice_isA(const ::std::string &id, const ::Ice::Current ¤t=::Ice::emptyCurrent) const
Determines whether this object supports an interface with the given Slice type ID.
virtual ::std::vector< ::std::string > ice_ids(const ::Ice::Current ¤t=::Ice::emptyCurrent) const
Obtains a list of the Slice type IDs representing the interfaces supported by this object.
LookupReplyPrx ProxyType
Definition IceLocatorDiscovery.h:703
virtual void foundLocator(const ::Ice::LocatorPrx &prx, const ::Ice::Current ¤t=::Ice::emptyCurrent)=0
This method is called by the implementation of the Lookup interface to reply to a findLocator request...
LookupReplyPtr PointerType
Definition IceLocatorDiscovery.h:704
The Ice lookup interface is implemented by Ice locator implementations and can be used by clients to ...
Definition IceLocatorDiscovery.h:789
LookupPrx ProxyType
Definition IceLocatorDiscovery.h:792
virtual ::std::vector< ::std::string > ice_ids(const ::Ice::Current ¤t=::Ice::emptyCurrent) const
Obtains a list of the Slice type IDs representing the interfaces supported by this object.
virtual const ::std::string & ice_id(const ::Ice::Current ¤t=::Ice::emptyCurrent) const
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.
virtual bool ice_isA(const ::std::string &id, const ::Ice::Current ¤t=::Ice::emptyCurrent) const
Determines whether this object supports an interface with the given Slice type ID.
virtual void findLocator(const ::std::string &instanceName, const LookupReplyPrx &reply, const ::Ice::Current ¤t=::Ice::emptyCurrent)=0
Find a locator proxy with the given instance name.
LookupPtr PointerType
Definition IceLocatorDiscovery.h:793
Definition IceLocatorDiscovery.h:462
static const ::std::string & ice_staticId()
Obtains the Slice type ID corresponding to this interface.
void foundLocator(const ::Ice::LocatorPrx &prx, const ::Ice::Context &context=::Ice::noExplicitContext)
This method is called by the implementation of the Lookup interface to reply to a findLocator request...
Definition IceLocatorDiscovery.h:471
::Ice::AsyncResultPtr begin_foundLocator(const ::Ice::LocatorPrx &prx, const ::Ice::Context &context, const ::Ice::CallbackPtr &cb, const ::Ice::LocalObjectPtr &cookie=0)
This method is called by the implementation of the Lookup interface to reply to a findLocator request...
Definition IceLocatorDiscovery.h:510
::Ice::AsyncResultPtr begin_foundLocator(const ::Ice::LocatorPrx &prx, const ::Ice::CallbackPtr &cb, const ::Ice::LocalObjectPtr &cookie=0)
This method is called by the implementation of the Lookup interface to reply to a findLocator request...
Definition IceLocatorDiscovery.h:496
::Ice::AsyncResultPtr begin_foundLocator(const ::Ice::LocatorPrx &prx, const ::Ice::Context &context=::Ice::noExplicitContext)
This method is called by the implementation of the Lookup interface to reply to a findLocator request...
Definition IceLocatorDiscovery.h:483
void end_foundLocator(const ::Ice::AsyncResultPtr &result)
Completes an invocation of begin_foundLocator.
::Ice::AsyncResultPtr begin_foundLocator(const ::Ice::LocatorPrx &prx, const ::IceLocatorDiscovery::Callback_LookupReply_foundLocatorPtr &cb, const ::Ice::LocalObjectPtr &cookie=0)
This method is called by the implementation of the Lookup interface to reply to a findLocator request...
Definition IceLocatorDiscovery.h:523
::Ice::AsyncResultPtr begin_foundLocator(const ::Ice::LocatorPrx &prx, const ::Ice::Context &context, const ::IceLocatorDiscovery::Callback_LookupReply_foundLocatorPtr &cb, const ::Ice::LocalObjectPtr &cookie=0)
This method is called by the implementation of the Lookup interface to reply to a findLocator request...
Definition IceLocatorDiscovery.h:537
Definition IceLocatorDiscovery.h:568
::Ice::AsyncResultPtr begin_findLocator(const ::std::string &instanceName, const ::IceLocatorDiscovery::LookupReplyPrx &reply, const ::IceLocatorDiscovery::Callback_Lookup_findLocatorPtr &cb, const ::Ice::LocalObjectPtr &cookie=0)
Find a locator proxy with the given instance name.
Definition IceLocatorDiscovery.h:639
::Ice::AsyncResultPtr begin_findLocator(const ::std::string &instanceName, const ::IceLocatorDiscovery::LookupReplyPrx &reply, const ::Ice::Context &context, const ::IceLocatorDiscovery::Callback_Lookup_findLocatorPtr &cb, const ::Ice::LocalObjectPtr &cookie=0)
Find a locator proxy with the given instance name.
Definition IceLocatorDiscovery.h:655
void end_findLocator(const ::Ice::AsyncResultPtr &result)
Completes an invocation of begin_findLocator.
::Ice::AsyncResultPtr begin_findLocator(const ::std::string &instanceName, const ::IceLocatorDiscovery::LookupReplyPrx &reply, const ::Ice::CallbackPtr &cb, const ::Ice::LocalObjectPtr &cookie=0)
Find a locator proxy with the given instance name.
Definition IceLocatorDiscovery.h:608
void findLocator(const ::std::string &instanceName, const ::IceLocatorDiscovery::LookupReplyPrx &reply, const ::Ice::Context &context=::Ice::noExplicitContext)
Find a locator proxy with the given instance name.
Definition IceLocatorDiscovery.h:579
static const ::std::string & ice_staticId()
Obtains the Slice type ID corresponding to this interface.
::Ice::AsyncResultPtr begin_findLocator(const ::std::string &instanceName, const ::IceLocatorDiscovery::LookupReplyPrx &reply, const ::Ice::Context &context, const ::Ice::CallbackPtr &cb, const ::Ice::LocalObjectPtr &cookie=0)
Find a locator proxy with the given instance name.
Definition IceLocatorDiscovery.h:624
::Ice::AsyncResultPtr begin_findLocator(const ::std::string &instanceName, const ::IceLocatorDiscovery::LookupReplyPrx &reply, const ::Ice::Context &context=::Ice::noExplicitContext)
Find a locator proxy with the given instance name.
Definition IceLocatorDiscovery.h:593
Base class of all object proxies.
Definition Proxy.h:1757
Shared & operator=(const Shared &)
Definition Shared.h:94
The base class for servants.
Definition Object.h:193
Interface for output streams used to create a sequence of bytes from Slice types.
Definition OutputStream.h:28
Helper template that supplies proxy factory functions.
Definition Proxy.h:2904
::IceInternal::ProxyHandle< ::IceProxy::IceDiscovery::LookupReply > LookupReplyPrx
Definition IceDiscovery.h:538
::IceInternal::ProxyHandle< ::IceProxy::IceDiscovery::Lookup > LookupPrx
Definition IceDiscovery.h:549
Definition IceLocatorDiscovery.h:401
::IceInternal::ProxyHandle< ::IceProxy::IceLocatorDiscovery::Lookup > LookupPrx
Definition IceLocatorDiscovery.h:419
::IceInternal::Handle< Lookup > LookupPtr
Definition IceLocatorDiscovery.h:418
LookupReplyPrx LookupReplyPrxPtr
Definition IceLocatorDiscovery.h:409
LookupPrx LookupPrxPtr
Definition IceLocatorDiscovery.h:420
::IceInternal::Handle< LookupReply > LookupReplyPtr
Definition IceLocatorDiscovery.h:407
::IceUtil::Handle< Callback_Lookup_findLocator_Base > Callback_Lookup_findLocatorPtr
Definition IceLocatorDiscovery.h:451
::IceInternal::ProxyHandle< ::IceProxy::IceLocatorDiscovery::LookupReply > LookupReplyPrx
Definition IceLocatorDiscovery.h:408
::IceUtil::Handle< Callback_LookupReply_foundLocator_Base > Callback_LookupReply_foundLocatorPtr
Definition IceLocatorDiscovery.h:443
Callback_Lookup_findLocatorPtr newCallback_Lookup_findLocator(const IceUtil::Handle< T > &instance, void(T::*cb)(), void(T::*excb)(const ::Ice::Exception &), void(T::*sentcb)(bool)=0)
Creates a callback wrapper instance that delegates to your object.
Definition IceLocatorDiscovery.h:1067
Callback_LookupReply_foundLocatorPtr newCallback_LookupReply_foundLocator(const IceUtil::Handle< T > &instance, void(T::*cb)(), void(T::*excb)(const ::Ice::Exception &), void(T::*sentcb)(bool)=0)
Creates a callback wrapper instance that delegates to your object.
Definition IceLocatorDiscovery.h:911
Definition BuiltinSequences.h:113
const Context noExplicitContext
Marker value used to indicate that no explicit context was passed to a proxy invocation.
Definition ProxyHandle.h:51
const Current emptyCurrent
A default-initialized Current instance.
IceInternal::Handle< AsyncResult > AsyncResultPtr
Definition AsyncResultF.h:18