Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches
Lookup.h
1// Copyright (c) ZeroC, Inc.
2
3// slice2cpp version 3.8.3
4// <auto-generated>Generated from Slice file 'Lookup.ice'.</auto-generated>
5// clang-format off
6
7#ifndef IceLocatorDiscovery_Lookup_h_
8#define IceLocatorDiscovery_Lookup_h_
9
11#include <Ice/Ice.h>
12#include <Ice/Locator.h>
13
14#ifndef ICE_DISABLE_VERSION
15# if ICE_INT_VERSION / 100 != 308
16# error Ice version mismatch!
17# endif
18# if ICE_INT_VERSION % 100 >= 50
19# error Beta header file detected
20# endif
21# if ICE_INT_VERSION % 100 < 3
22# error Ice patch level mismatch!
23# endif
24#endif
25
26// NOLINTBEGIN(modernize-concat-nested-namespaces)
27
28/// IceLocatorDiscovery is an Ice plug-in that enables the discovery of Ice locators (such as IceGrid) via UDP
29/// multicast.
31{
32 class LookupReplyPrx;
33
34 class LookupPrx;
35}
36
37namespace IceLocatorDiscovery
38{
39 /// Represents a callback object implemented by IceLocatorDiscovery clients. It allows IceLocatorDiscovery clients
40 /// to receive replies to LookupPrx requests.
41 /// @remarks The Slice compiler generated this proxy class from Slice interface `::IceLocatorDiscovery::LookupReply`.
42 /// @see LookupPrx
43 class LookupReplyPrx : public Ice::Proxy<LookupReplyPrx, Ice::ObjectPrx>
44 {
45 public:
46 /// Constructs a proxy from a Communicator and a proxy string.
47 /// @param communicator The communicator of the new proxy.
48 /// @param proxyString The proxy string to parse.
49 LookupReplyPrx(const Ice::CommunicatorPtr& communicator, std::string_view proxyString) : Ice::ObjectPrx{communicator, proxyString} {} // NOLINT(modernize-use-equals-default)
50
51 /// Copy constructor. Constructs with a copy of the contents of @p other.
52 /// @param other The proxy to copy from.
53 LookupReplyPrx(const LookupReplyPrx& other) noexcept : Ice::ObjectPrx{other} {} // NOLINT(modernize-use-equals-default)
54
55 /// Move constructor. Constructs a proxy with the contents of @p other using move semantics.
56 /// @param other The proxy to move from.
57 LookupReplyPrx(LookupReplyPrx&& other) noexcept : Ice::ObjectPrx{std::move(other)} {} // NOLINT(modernize-use-equals-default)
58
59 ~LookupReplyPrx() override;
60
61 /// Copy assignment operator. Replaces the contents of this proxy with a copy of the contents of @p rhs.
62 /// @param rhs The proxy to copy from.
63 /// @return A reference to this proxy.
65 {
66 if (this != &rhs)
67 {
69 }
70 return *this;
71 }
72
73 /// Move assignment operator. Replaces the contents of this proxy with the contents of @p rhs using move semantics.
74 /// @param rhs The proxy to move from.
76 {
77 if (this != &rhs)
78 {
79 Ice::ObjectPrx::operator=(std::move(rhs));
80 }
81 return *this;
82 }
83
84 /// Provides a reply to a ::IceLocatorDiscovery::LookupPrx::findLocator request.
85 /// @param prx The proxy of the locator.
86 /// @param context The request context.
87 void foundLocator(const std::optional<::Ice::LocatorPrx>& prx, const Ice::Context& context = Ice::noExplicitContext) const;
88
89 /// Provides a reply to a ::IceLocatorDiscovery::LookupPrx::findLocator request.
90 /// @param prx The proxy of the locator.
91 /// @param context The request context.
92 /// @return A future that becomes available when the invocation completes.
93 [[nodiscard]] std::future<void> foundLocatorAsync(const std::optional<::Ice::LocatorPrx>& prx, const Ice::Context& context = Ice::noExplicitContext) const;
94
95 /// Provides a reply to a ::IceLocatorDiscovery::LookupPrx::findLocator request.
96 /// @param prx The proxy of the locator.
97 /// @param response The response callback. The Ice runtime calls this function from an Ice thread pool
98 /// thread. If you set Ice::InitializationData::executor, the executor determines the thread that executes this
99 /// function.
100 /// @param exception The exception callback. The Ice runtime calls this function from an Ice thread pool
101 /// thread. If you set Ice::InitializationData::executor, the executor determines the thread that executes this
102 /// function.
103 /// @param sent The sent callback. The Ice runtime calls this function when the request is accepted by the
104 /// transport. When the request is accepted synchronously, the Ice runtime calls this function from the current
105 /// thread and passes `true` as argument. When the request is accepted asynchronously, the Ice runtime calls
106 /// this function from an Ice thread pool thread and passes `false` as argument. If you set
107 /// Ice::InitializationData::executor, the executor determines the thread that executes this function in the
108 /// asynchronous case.
109 /// @param context The request context.
110 /// @return A function that can be called to cancel the invocation locally.
111 /// @remark When this proxy is a oneway or datagram proxy, the Ice runtime does not call the response
112 /// callback: a successful invocation completes with the sent callback. When this proxy is a batch
113 /// proxy, this function only adds the request to the batch: the Ice runtime calls none of the
114 /// callbacks, and the request is sent later, by a flush.
115 // NOLINTNEXTLINE(modernize-use-nodiscard)
116 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;
117
118 /// @private
119 void _iceI_foundLocator(const std::shared_ptr<IceInternal::OutgoingAsyncT<void>>&, const std::optional<::Ice::LocatorPrx>&, const Ice::Context&) const;
120
121 /// Gets the type ID of the associated Slice interface.
122 /// @return The string `"::IceLocatorDiscovery::LookupReply"`.
123 static const char* ice_staticId() noexcept;
124
125 /// @private
126 static LookupReplyPrx _fromReference(IceInternal::ReferencePtr ref) { return LookupReplyPrx{std::move(ref)}; }
127
128 protected:
129 /// @private
130 LookupReplyPrx() = default;
131
132 /// @private
133 explicit LookupReplyPrx(IceInternal::ReferencePtr&& ref) : Ice::ObjectPrx{std::move(ref)}
134 {
135 }
136 };
137
138 /// Looks for a locator using UDP multicast.
139 /// @remarks This interface is implemented by Ice locator implementations and can be used by clients to find
140 /// available Ice locators on the network.
141 /// Ice locator implementations provide a well-known `Ice/LocatorLookup` object accessible through UDP multicast.
142 /// Clients typically make a multicast `findLocator` request to find the locator proxy.
143 ///
144 /// The Slice compiler generated this proxy class from Slice interface `::IceLocatorDiscovery::Lookup`.
145 /// @see LookupReplyPrx
146 class LookupPrx : public Ice::Proxy<LookupPrx, Ice::ObjectPrx>
147 {
148 public:
149 /// Constructs a proxy from a Communicator and a proxy string.
150 /// @param communicator The communicator of the new proxy.
151 /// @param proxyString The proxy string to parse.
152 LookupPrx(const Ice::CommunicatorPtr& communicator, std::string_view proxyString) : Ice::ObjectPrx{communicator, proxyString} {} // NOLINT(modernize-use-equals-default)
153
154 /// Copy constructor. Constructs with a copy of the contents of @p other.
155 /// @param other The proxy to copy from.
156 LookupPrx(const LookupPrx& other) noexcept : Ice::ObjectPrx{other} {} // NOLINT(modernize-use-equals-default)
157
158 /// Move constructor. Constructs a proxy with the contents of @p other using move semantics.
159 /// @param other The proxy to move from.
160 LookupPrx(LookupPrx&& other) noexcept : Ice::ObjectPrx{std::move(other)} {} // NOLINT(modernize-use-equals-default)
161
162 ~LookupPrx() override;
163
164 /// Copy assignment operator. Replaces the contents of this proxy with a copy of the contents of @p rhs.
165 /// @param rhs The proxy to copy from.
166 /// @return A reference to this proxy.
167 LookupPrx& operator=(const LookupPrx& rhs) noexcept
168 {
169 if (this != &rhs)
170 {
172 }
173 return *this;
174 }
175
176 /// Move assignment operator. Replaces the contents of this proxy with the contents of @p rhs using move semantics.
177 /// @param rhs The proxy to move from.
179 {
180 if (this != &rhs)
181 {
182 Ice::ObjectPrx::operator=(std::move(rhs));
183 }
184 return *this;
185 }
186
187 /// Finds a locator proxy with the given @p instanceName.
188 /// @param instanceName Restrict the search to Ice registries configured with the given instance name. If
189 /// empty, all the available registries will reply.
190 /// @param reply The reply object to use to send the reply.
191 /// @param context The request context.
192 void findLocator(std::string_view instanceName, const std::optional<LookupReplyPrx>& reply, const Ice::Context& context = Ice::noExplicitContext) const;
193
194 /// Finds a locator proxy with the given @p instanceName.
195 /// @param instanceName Restrict the search to Ice registries configured with the given instance name. If
196 /// empty, all the available registries will reply.
197 /// @param reply The reply object to use to send the reply.
198 /// @param context The request context.
199 /// @return A future that becomes available when the invocation completes.
200 [[nodiscard]] std::future<void> findLocatorAsync(std::string_view instanceName, const std::optional<LookupReplyPrx>& reply, const Ice::Context& context = Ice::noExplicitContext) const;
201
202 /// Finds a locator proxy with the given @p instanceName.
203 /// @param instanceName Restrict the search to Ice registries configured with the given instance name. If
204 /// empty, all the available registries will reply.
205 /// @param reply The reply object to use to send the reply.
206 /// @param response The response callback. The Ice runtime calls this function from an Ice thread pool
207 /// thread. If you set Ice::InitializationData::executor, the executor determines the thread that executes this
208 /// function.
209 /// @param exception The exception callback. The Ice runtime calls this function from an Ice thread pool
210 /// thread. If you set Ice::InitializationData::executor, the executor determines the thread that executes this
211 /// function.
212 /// @param sent The sent callback. The Ice runtime calls this function when the request is accepted by the
213 /// transport. When the request is accepted synchronously, the Ice runtime calls this function from the current
214 /// thread and passes `true` as argument. When the request is accepted asynchronously, the Ice runtime calls
215 /// this function from an Ice thread pool thread and passes `false` as argument. If you set
216 /// Ice::InitializationData::executor, the executor determines the thread that executes this function in the
217 /// asynchronous case.
218 /// @param context The request context.
219 /// @return A function that can be called to cancel the invocation locally.
220 /// @remark When this proxy is a oneway or datagram proxy, the Ice runtime does not call the response
221 /// callback: a successful invocation completes with the sent callback. When this proxy is a batch
222 /// proxy, this function only adds the request to the batch: the Ice runtime calls none of the
223 /// callbacks, and the request is sent later, by a flush.
224 // NOLINTNEXTLINE(modernize-use-nodiscard)
225 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;
226
227 /// @private
228 void _iceI_findLocator(const std::shared_ptr<IceInternal::OutgoingAsyncT<void>>&, std::string_view, const std::optional<LookupReplyPrx>&, const Ice::Context&) const;
229
230 /// Gets the type ID of the associated Slice interface.
231 /// @return The string `"::IceLocatorDiscovery::Lookup"`.
232 static const char* ice_staticId() noexcept;
233
234 /// @private
235 static LookupPrx _fromReference(IceInternal::ReferencePtr ref) { return LookupPrx{std::move(ref)}; }
236
237 protected:
238 /// @private
239 LookupPrx() = default;
240
241 /// @private
242 explicit LookupPrx(IceInternal::ReferencePtr&& ref) : Ice::ObjectPrx{std::move(ref)}
243 {
244 }
245 };
246}
247
248namespace IceLocatorDiscovery
249{
250 /// Represents a callback object implemented by IceLocatorDiscovery clients. It allows IceLocatorDiscovery clients
251 /// to receive replies to LookupPrx requests.
252 /// @remarks The Slice compiler generated this skeleton class from Slice interface `::IceLocatorDiscovery::LookupReply`.
253 /// @see LookupPrx
254 class LookupReply : public virtual Ice::Object
255 {
256 public:
257 /// The associated proxy type.
259
260 /// Dispatches an incoming request to one of the member functions of this generated class, based on the operation name carried by the request.
261 /// @param request The incoming request.
262 /// @param sendResponse The callback to send the response.
263 void dispatch(Ice::IncomingRequest& request, std::function<void(Ice::OutgoingResponse)> sendResponse) override;
264
265 [[nodiscard]] std::vector<std::string> ice_ids(const Ice::Current& current) const override;
266
267 [[nodiscard]] std::string ice_id(const Ice::Current& current) const override;
268
269 /// Provides a reply to a ::IceLocatorDiscovery::LookupPrx::findLocator request.
270 /// @param prx The proxy of the locator.
271 /// @param current The Current object of the incoming request.
272 virtual void foundLocator(std::optional<::Ice::LocatorPrx> prx, const Ice::Current& current) = 0;
273
274 /// @private
275 void _iceD_foundLocator(Ice::IncomingRequest&, std::function<void(Ice::OutgoingResponse)>);
276
277 /// Gets the type ID of the associated Slice interface.
278 /// @return The string `"::IceLocatorDiscovery::LookupReply"`.
279 static const char* ice_staticId() noexcept;
280 };
281
282 /// A shared pointer to a LookupReply.
283 using LookupReplyPtr = std::shared_ptr<LookupReply>;
284
285 /// Looks for a locator using UDP multicast.
286 /// @remarks This interface is implemented by Ice locator implementations and can be used by clients to find
287 /// available Ice locators on the network.
288 /// Ice locator implementations provide a well-known `Ice/LocatorLookup` object accessible through UDP multicast.
289 /// Clients typically make a multicast `findLocator` request to find the locator proxy.
290 ///
291 /// The Slice compiler generated this skeleton class from Slice interface `::IceLocatorDiscovery::Lookup`.
292 /// @see LookupReplyPrx
293 class Lookup : public virtual Ice::Object
294 {
295 public:
296 /// The associated proxy type.
298
299 /// Dispatches an incoming request to one of the member functions of this generated class, based on the operation name carried by the request.
300 /// @param request The incoming request.
301 /// @param sendResponse The callback to send the response.
302 void dispatch(Ice::IncomingRequest& request, std::function<void(Ice::OutgoingResponse)> sendResponse) override;
303
304 [[nodiscard]] std::vector<std::string> ice_ids(const Ice::Current& current) const override;
305
306 [[nodiscard]] std::string ice_id(const Ice::Current& current) const override;
307
308 /// Finds a locator proxy with the given @p instanceName.
309 /// @param instanceName Restrict the search to Ice registries configured with the given instance name. If
310 /// empty, all the available registries will reply.
311 /// @param reply The reply object to use to send the reply.
312 /// @param current The Current object of the incoming request.
313 virtual void findLocator(std::string instanceName, std::optional<LookupReplyPrx> reply, const Ice::Current& current) = 0;
314
315 /// @private
316 void _iceD_findLocator(Ice::IncomingRequest&, std::function<void(Ice::OutgoingResponse)>);
317
318 /// Gets the type ID of the associated Slice interface.
319 /// @return The string `"::IceLocatorDiscovery::Lookup"`.
320 static const char* ice_staticId() noexcept;
321 };
322
323 /// A shared pointer to a Lookup.
324 using LookupPtr = std::shared_ptr<Lookup>;
325}
326
327namespace IceLocatorDiscovery
328{
329 /// Represents a callback object implemented by IceLocatorDiscovery clients. It allows IceLocatorDiscovery clients
330 /// to receive replies to LookupPrx requests.
331 /// @remarks The Slice compiler generated this skeleton class from Slice interface `::IceLocatorDiscovery::LookupReply`.
332 /// @see LookupPrx
333 class AsyncLookupReply : public virtual Ice::Object
334 {
335 public:
336 /// The associated proxy type.
338
339 /// Dispatches an incoming request to one of the member functions of this generated class, based on the operation name carried by the request.
340 /// @param request The incoming request.
341 /// @param sendResponse The callback to send the response.
342 void dispatch(Ice::IncomingRequest& request, std::function<void(Ice::OutgoingResponse)> sendResponse) override;
343
344 [[nodiscard]] std::vector<std::string> ice_ids(const Ice::Current& current) const override;
345
346 [[nodiscard]] std::string ice_id(const Ice::Current& current) const override;
347
348 /// Provides a reply to a ::IceLocatorDiscovery::LookupPrx::findLocator request.
349 /// @param prx The proxy of the locator.
350 /// @param response The response callback.
351 /// @param exception The exception callback.
352 /// @param current The Current object of the incoming request.
353 virtual void foundLocatorAsync(std::optional<::Ice::LocatorPrx> prx, std::function<void()> response, std::function<void(std::exception_ptr)> exception, const Ice::Current& current) = 0;
354
355 /// @private
356 void _iceD_foundLocator(Ice::IncomingRequest&, std::function<void(Ice::OutgoingResponse)>);
357
358 /// Gets the type ID of the associated Slice interface.
359 /// @return The string `"::IceLocatorDiscovery::LookupReply"`.
360 static const char* ice_staticId() noexcept;
361 };
362
363 /// A shared pointer to an AsyncLookupReply.
364 using AsyncLookupReplyPtr = std::shared_ptr<AsyncLookupReply>;
365
366 /// Looks for a locator using UDP multicast.
367 /// @remarks This interface is implemented by Ice locator implementations and can be used by clients to find
368 /// available Ice locators on the network.
369 /// Ice locator implementations provide a well-known `Ice/LocatorLookup` object accessible through UDP multicast.
370 /// Clients typically make a multicast `findLocator` request to find the locator proxy.
371 ///
372 /// The Slice compiler generated this skeleton class from Slice interface `::IceLocatorDiscovery::Lookup`.
373 /// @see LookupReplyPrx
374 class AsyncLookup : public virtual Ice::Object
375 {
376 public:
377 /// The associated proxy type.
379
380 /// Dispatches an incoming request to one of the member functions of this generated class, based on the operation name carried by the request.
381 /// @param request The incoming request.
382 /// @param sendResponse The callback to send the response.
383 void dispatch(Ice::IncomingRequest& request, std::function<void(Ice::OutgoingResponse)> sendResponse) override;
384
385 [[nodiscard]] std::vector<std::string> ice_ids(const Ice::Current& current) const override;
386
387 [[nodiscard]] std::string ice_id(const Ice::Current& current) const override;
388
389 /// Finds a locator proxy with the given @p instanceName.
390 /// @param instanceName Restrict the search to Ice registries configured with the given instance name. If
391 /// empty, all the available registries will reply.
392 /// @param reply The reply object to use to send the reply.
393 /// @param response The response callback.
394 /// @param exception The exception callback.
395 /// @param current The Current object of the incoming request.
396 virtual void findLocatorAsync(std::string instanceName, std::optional<LookupReplyPrx> reply, std::function<void()> response, std::function<void(std::exception_ptr)> exception, const Ice::Current& current) = 0;
397
398 /// @private
399 void _iceD_findLocator(Ice::IncomingRequest&, std::function<void(Ice::OutgoingResponse)>);
400
401 /// Gets the type ID of the associated Slice interface.
402 /// @return The string `"::IceLocatorDiscovery::Lookup"`.
403 static const char* ice_staticId() noexcept;
404 };
405
406 /// A shared pointer to an AsyncLookup.
407 using AsyncLookupPtr = std::shared_ptr<AsyncLookup>;
408}
409
410// NOLINTEND(modernize-concat-nested-namespaces)
411
412#include <Ice/PopDisableWarnings.h>
413#endif
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice interface.
std::string ice_id(const Ice::Current &current) const override
Gets the type ID of the most-derived Slice interface supported by this object.
LookupReplyPrx ProxyType
The associated proxy type.
Definition Lookup.h:337
std::vector< std::string > ice_ids(const Ice::Current &current) const override
Gets the Slice interfaces supported by this object as a list of Slice type IDs.
virtual void foundLocatorAsync(std::optional<::Ice::LocatorPrx > prx, std::function< void()> response, std::function< void(std::exception_ptr)> exception, const Ice::Current &current)=0
Provides a reply to a IceLocatorDiscovery::LookupPrx::findLocator request.
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.
Definition Lookup.h:334
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,...
std::string ice_id(const Ice::Current &current) const override
Gets the type ID of the most-derived Slice interface supported by this object.
LookupPrx ProxyType
The associated proxy type.
Definition Lookup.h:378
virtual void findLocatorAsync(std::string instanceName, std::optional< LookupReplyPrx > reply, std::function< void()> response, std::function< void(std::exception_ptr)> exception, const Ice::Current &current)=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 &current) const override
Gets the Slice interfaces supported by this object as a list of Slice type IDs.
Looks for a locator using UDP multicast.
Definition Lookup.h:375
LookupPrx & operator=(LookupPrx &&rhs) noexcept
Move assignment operator.
Definition Lookup.h:178
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.
Definition Lookup.h:156
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.
Definition Lookup.h:160
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.
Definition Lookup.h:152
LookupPrx & operator=(const LookupPrx &rhs) noexcept
Copy assignment operator.
Definition Lookup.h:167
Looks for a locator using UDP multicast.
Definition Lookup.h:147
LookupReplyPrx(const LookupReplyPrx &other) noexcept
Copy constructor.
Definition Lookup.h:53
LookupReplyPrx(LookupReplyPrx &&other) noexcept
Move constructor.
Definition Lookup.h:57
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice interface.
LookupReplyPrx & operator=(const LookupReplyPrx &rhs) noexcept
Copy assignment operator.
Definition Lookup.h:64
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.
Definition Lookup.h:49
LookupReplyPrx & operator=(LookupReplyPrx &&rhs) noexcept
Move assignment operator.
Definition Lookup.h:75
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.
Definition Lookup.h:44
LookupReplyPrx ProxyType
The associated proxy type.
Definition Lookup.h:258
std::vector< std::string > ice_ids(const Ice::Current &current) const override
Gets the Slice interfaces supported by this object as a list of Slice type IDs.
virtual void foundLocator(std::optional<::Ice::LocatorPrx > prx, const Ice::Current &current)=0
Provides a reply to a IceLocatorDiscovery::LookupPrx::findLocator request.
std::string ice_id(const Ice::Current &current) 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.
Definition Lookup.h:255
std::string ice_id(const Ice::Current &current) 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 &current)=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 &current) const override
Gets the Slice interfaces supported by this object as a list of Slice type IDs.
LookupPrx ProxyType
The associated proxy type.
Definition Lookup.h:297
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.
Definition Lookup.h:294
Represents a request received by a connection.
ObjectPrx & operator=(const ObjectPrx &rhs) noexcept=default
Copy assignment operator.
The base class for all Ice proxies.
Definition Proxy.h:265
Object() noexcept=default
Default constructor.
The base class for servants.
Definition Object.h:21
Represents the response to an incoming request.
Provides typed proxy functions.
Definition Proxy.h:48
std::shared_ptr< LookupReply > LookupReplyPtr
A shared pointer to a LookupReply.
Definition Lookup.h:283
std::shared_ptr< AsyncLookup > AsyncLookupPtr
A shared pointer to an AsyncLookup.
Definition Lookup.h:407
std::shared_ptr< AsyncLookupReply > AsyncLookupReplyPtr
A shared pointer to an AsyncLookupReply.
Definition Lookup.h:364
std::shared_ptr< Lookup > LookupPtr
A shared pointer to a Lookup.
Definition Lookup.h:324
IceLocatorDiscovery is an Ice plug-in that enables the discovery of Ice locators (such as IceGrid) vi...
Definition Lookup.h:31
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.
Definition Context.h:34
The Ice RPC framework.
Definition SampleEvent.h:66
Provides information about an incoming request being dispatched.
Definition Current.h:18