7#ifndef IceLocatorDiscovery_Lookup_h_
8#define IceLocatorDiscovery_Lookup_h_
12#include <Ice/Locator.h>
14#ifndef ICE_DISABLE_VERSION
15# if ICE_INT_VERSION != 30850
16# error Ice version mismatch: an exact match is required for beta generated code
52 ~LookupReplyPrx()
override;
96 std::function<void()>
foundLocatorAsync(
const std::optional<::Ice::LocatorPrx>& prx, std::function<
void()> response, std::function<
void(std::exception_ptr)> exception =
nullptr, std::function<
void(
bool)> sent =
nullptr,
const Ice::Context& context =
Ice::noExplicitContext)
const;
99 void _iceI_foundLocator(
const std::shared_ptr<IceInternal::OutgoingAsyncT<void>>&,
const std::optional<::Ice::LocatorPrx>&,
const Ice::Context&)
const;
113 explicit LookupReplyPrx(IceInternal::ReferencePtr&& ref) :
Ice::ObjectPrx{std::move(ref)}
140 ~LookupPrx()
override;
190 std::function<void()>
findLocatorAsync(std::string_view instanceName,
const std::optional<LookupReplyPrx>& reply, std::function<
void()> response, std::function<
void(std::exception_ptr)> exception =
nullptr, std::function<
void(
bool)> sent =
nullptr,
const Ice::Context& context =
Ice::noExplicitContext)
const;
193 void _iceI_findLocator(
const std::shared_ptr<IceInternal::OutgoingAsyncT<void>>&, std::string_view,
const std::optional<LookupReplyPrx>&,
const Ice::Context&)
const;
200 static
LookupPrx _fromReference(IceInternal::ReferencePtr ref) {
return LookupPrx{std::move(ref)}; }
207 explicit LookupPrx(IceInternal::ReferencePtr&& ref) :
Ice::ObjectPrx{std::move(ref)}
291#include <Ice/PopDisableWarnings.h>
LookupPrx & operator=(LookupPrx &&rhs) noexcept
Move assignment operator.
std::function< void()> findLocatorAsync(std::string_view instanceName, const std::optional< LookupReplyPrx > &reply, std::function< void()> response, std::function< void(std::exception_ptr)> exception=nullptr, std::function< void(bool)> sent=nullptr, const Ice::Context &context=Ice::noExplicitContext) const
Finds a locator proxy with the given instanceName.
LookupPrx(const LookupPrx &other) noexcept
Copy constructor.
void findLocator(std::string_view instanceName, const std::optional< LookupReplyPrx > &reply, const Ice::Context &context=Ice::noExplicitContext) const
Finds a locator proxy with the given instanceName.
LookupPrx(LookupPrx &&other) noexcept
Move constructor.
std::future< void > findLocatorAsync(std::string_view instanceName, const std::optional< LookupReplyPrx > &reply, const Ice::Context &context=Ice::noExplicitContext) const
Finds a locator proxy with the given instanceName.
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice interface.
LookupPrx(const Ice::CommunicatorPtr &communicator, std::string_view proxyString)
Constructs a proxy from a Communicator and a proxy string.
LookupPrx & operator=(const LookupPrx &rhs) noexcept
Copy assignment operator.
Looks for a locator using UDP multicast.
LookupReplyPrx(const LookupReplyPrx &other) noexcept
Copy constructor.
LookupReplyPrx(LookupReplyPrx &&other) noexcept
Move constructor.
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice interface.
LookupReplyPrx & operator=(const LookupReplyPrx &rhs) noexcept
Copy assignment operator.
void foundLocator(const std::optional<::Ice::LocatorPrx > &prx, const Ice::Context &context=Ice::noExplicitContext) const
Provides a reply to a IceLocatorDiscovery::LookupPrx::findLocator request.
std::future< void > foundLocatorAsync(const std::optional<::Ice::LocatorPrx > &prx, const Ice::Context &context=Ice::noExplicitContext) const
Provides a reply to a IceLocatorDiscovery::LookupPrx::findLocator request.
LookupReplyPrx(const Ice::CommunicatorPtr &communicator, std::string_view proxyString)
Constructs a proxy from a Communicator and a proxy string.
LookupReplyPrx & operator=(LookupReplyPrx &&rhs) noexcept
Move assignment operator.
std::function< void()> foundLocatorAsync(const std::optional<::Ice::LocatorPrx > &prx, std::function< void()> response, std::function< void(std::exception_ptr)> exception=nullptr, std::function< void(bool)> sent=nullptr, const Ice::Context &context=Ice::noExplicitContext) const
Provides a reply to a IceLocatorDiscovery::LookupPrx::findLocator request.
Represents a callback object implemented by IceLocatorDiscovery clients.
LookupReplyPrx ProxyType
The associated proxy type.
std::vector< std::string > ice_ids(const Ice::Current ¤t) const override
Gets the Slice interfaces supported by this object as a list of type IDs.
virtual void foundLocator(std::optional<::Ice::LocatorPrx > prx, const Ice::Current ¤t)=0
Provides a reply to a IceLocatorDiscovery::LookupPrx::findLocator request.
std::string ice_id(const Ice::Current ¤t) const override
Gets the type ID of the most-derived Slice interface supported by this object.
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice interface.
void dispatch(Ice::IncomingRequest &request, std::function< void(Ice::OutgoingResponse)> sendResponse) override
Dispatches an incoming request to one of the member functions of this generated class,...
Represents a callback object implemented by IceLocatorDiscovery clients.
std::string ice_id(const Ice::Current ¤t) const override
Gets the type ID of the most-derived Slice interface supported by this object.
virtual void findLocator(std::string instanceName, std::optional< LookupReplyPrx > reply, const Ice::Current ¤t)=0
Finds a locator proxy with the given instanceName.
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice interface.
std::vector< std::string > ice_ids(const Ice::Current ¤t) const override
Gets the Slice interfaces supported by this object as a list of type IDs.
LookupPrx ProxyType
The associated proxy type.
void dispatch(Ice::IncomingRequest &request, std::function< void(Ice::OutgoingResponse)> sendResponse) override
Dispatches an incoming request to one of the member functions of this generated class,...
Looks for a locator using UDP multicast.
Represents a request received by a connection.
ObjectPrx & operator=(const ObjectPrx &rhs) noexcept=default
Copy assignment operator.
The base class for all Ice proxies.
Object() noexcept=default
Default constructor.
The base class for servants.
Represents the response to an incoming request.
Provides typed proxy functions.
std::shared_ptr< LookupReply > LookupReplyPtr
A shared pointer to a LookupReply.
std::shared_ptr< Lookup > LookupPtr
A shared pointer to a Lookup.
IceLocatorDiscovery is an Ice plug-in that enables the discovery of Ice locators (such as IceGrid) vi...
std::shared_ptr< Communicator > CommunicatorPtr
A shared pointer to a Communicator.
const Context noExplicitContext
Marker value used to indicate that no explicit request context was passed to a proxy invocation.
std::map< std::string, std::string, std::less<> > Context
Represents additional information carried by an Ice request.
Provides information about an incoming request being dispatched.