Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches
Lookup.h
1// Copyright (c) ZeroC, Inc.
2
3// slice2cpp version 3.8.0
4// <auto-generated>Generated from Slice file 'Lookup.ice'.</auto-generated>
5// clang-format off
6
7#ifndef IceDiscovery_Lookup_h_
8#define IceDiscovery_Lookup_h_
9
11#include <Ice/Ice.h>
12#include <Ice/Identity.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 < 0
22# error Ice patch level mismatch!
23# endif
24#endif
25
26// NOLINTBEGIN(modernize-concat-nested-namespaces)
27
28namespace IceDiscovery
29{
30 class LookupReplyPrx;
31
32 class LookupPrx;
33}
34
35namespace IceDiscovery
36{
37 /// Represents a callback object implemented by IceDiscovery clients. It allows IceDiscovery clients to receive
38 /// replies to LookupPrx requests.
39 /// @remarks The Slice compiler generated this proxy class from Slice interface `::IceDiscovery::LookupReply`.
40 class LookupReplyPrx : public Ice::Proxy<LookupReplyPrx, Ice::ObjectPrx>
41 {
42 public:
43 /// Constructs a proxy from a Communicator and a proxy string.
44 /// @param communicator The communicator of the new proxy.
45 /// @param proxyString The proxy string to parse.
46 LookupReplyPrx(const Ice::CommunicatorPtr& communicator, std::string_view proxyString) : Ice::ObjectPrx{communicator, proxyString} {} // NOLINT(modernize-use-equals-default)
47
48 /// Copy constructor. Constructs with a copy of the contents of @p other.
49 /// @param other The proxy to copy from.
50 LookupReplyPrx(const LookupReplyPrx& other) noexcept : Ice::ObjectPrx{other} {} // NOLINT(modernize-use-equals-default)
51
52 /// Move constructor. Constructs a proxy with the contents of @p other using move semantics.
53 /// @param other The proxy to move from.
54 LookupReplyPrx(LookupReplyPrx&& other) noexcept : Ice::ObjectPrx{std::move(other)} {} // NOLINT(modernize-use-equals-default)
55
56 ~LookupReplyPrx() override;
57
58 /// Copy assignment operator. Replaces the contents of this proxy with a copy of the contents of @p rhs.
59 /// @param rhs The proxy to copy from.
60 /// @return A reference to this proxy.
62 {
63 if (this != &rhs)
64 {
66 }
67 return *this;
68 }
69
70 /// Move assignment operator. Replaces the contents of this proxy with the contents of @p rhs using move semantics.
71 /// @param rhs The proxy to move from.
73 {
74 if (this != &rhs)
75 {
76 Ice::ObjectPrx::operator=(std::move(rhs));
77 }
78 return *this;
79 }
80
81 /// Provides a reply to a ::IceDiscovery::LookupPrx::findObjectById request.
82 /// @param id The identity of the object.
83 /// @param prx The proxy of the object. This proxy is never null.
84 /// @param context The request context.
85 void foundObjectById(const ::Ice::Identity& id, const std::optional<Ice::ObjectPrx>& prx, const Ice::Context& context = Ice::noExplicitContext) const;
86
87 /// Provides a reply to a ::IceDiscovery::LookupPrx::findObjectById request.
88 /// @param id The identity of the object.
89 /// @param prx The proxy of the object. This proxy is never null.
90 /// @param context The request context.
91 /// @return A future that becomes available when the invocation completes.
92 [[nodiscard]] std::future<void> foundObjectByIdAsync(const ::Ice::Identity& id, const std::optional<Ice::ObjectPrx>& prx, const Ice::Context& context = Ice::noExplicitContext) const;
93
94 /// Provides a reply to a ::IceDiscovery::LookupPrx::findObjectById request.
95 /// @param id The identity of the object.
96 /// @param prx The proxy of the object. This proxy is never null.
97 /// @param response The response callback.
98 /// @param exception The exception callback.
99 /// @param sent The sent callback.
100 /// @param context The request context.
101 /// @return A function that can be called to cancel the invocation locally.
102 // NOLINTNEXTLINE(modernize-use-nodiscard)
103 std::function<void()> foundObjectByIdAsync(const ::Ice::Identity& id, const std::optional<Ice::ObjectPrx>& 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;
104
105 /// @private
106 void _iceI_foundObjectById(const std::shared_ptr<IceInternal::OutgoingAsyncT<void>>&, const ::Ice::Identity&, const std::optional<Ice::ObjectPrx>&, const Ice::Context&) const;
107
108 /// Provides a reply to a ::IceDiscovery::LookupPrx::findAdapterById request.
109 /// @param id The adapter ID.
110 /// @param prx The adapter proxy (a dummy proxy created by the adapter). The proxy provides the adapter
111 /// endpoints. This proxy is never null.
112 /// @param isReplicaGroup Indicates whether the adapter is a member of a replica group.
113 /// @param context The request context.
114 void foundAdapterById(std::string_view id, const std::optional<Ice::ObjectPrx>& prx, bool isReplicaGroup, const Ice::Context& context = Ice::noExplicitContext) const;
115
116 /// Provides a reply to a ::IceDiscovery::LookupPrx::findAdapterById request.
117 /// @param id The adapter ID.
118 /// @param prx The adapter proxy (a dummy proxy created by the adapter). The proxy provides the adapter
119 /// endpoints. This proxy is never null.
120 /// @param isReplicaGroup Indicates whether the adapter is a member of a replica group.
121 /// @param context The request context.
122 /// @return A future that becomes available when the invocation completes.
123 [[nodiscard]] std::future<void> foundAdapterByIdAsync(std::string_view id, const std::optional<Ice::ObjectPrx>& prx, bool isReplicaGroup, const Ice::Context& context = Ice::noExplicitContext) const;
124
125 /// Provides a reply to a ::IceDiscovery::LookupPrx::findAdapterById request.
126 /// @param id The adapter ID.
127 /// @param prx The adapter proxy (a dummy proxy created by the adapter). The proxy provides the adapter
128 /// endpoints. This proxy is never null.
129 /// @param isReplicaGroup Indicates whether the adapter is a member of a replica group.
130 /// @param response The response callback.
131 /// @param exception The exception callback.
132 /// @param sent The sent callback.
133 /// @param context The request context.
134 /// @return A function that can be called to cancel the invocation locally.
135 // NOLINTNEXTLINE(modernize-use-nodiscard)
136 std::function<void()> foundAdapterByIdAsync(std::string_view id, const std::optional<Ice::ObjectPrx>& prx, bool isReplicaGroup, 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;
137
138 /// @private
139 void _iceI_foundAdapterById(const std::shared_ptr<IceInternal::OutgoingAsyncT<void>>&, std::string_view, const std::optional<Ice::ObjectPrx>&, bool, const Ice::Context&) const;
140
141 /// Gets the type ID of the associated Slice interface.
142 /// @return The string `"::IceDiscovery::LookupReply"`.
143 static const char* ice_staticId() noexcept;
144
145 /// @private
146 static LookupReplyPrx _fromReference(IceInternal::ReferencePtr ref) { return LookupReplyPrx{std::move(ref)}; }
147
148 protected:
149 /// @private
150 LookupReplyPrx() = default;
151
152 /// @private
153 explicit LookupReplyPrx(IceInternal::ReferencePtr&& ref) : Ice::ObjectPrx{std::move(ref)}
154 {
155 }
156 };
157
158 /// Looks up objects and object adapters using UDP multicast.
159 /// @remarks The Slice compiler generated this proxy class from Slice interface `::IceDiscovery::Lookup`.
160 class LookupPrx : public Ice::Proxy<LookupPrx, Ice::ObjectPrx>
161 {
162 public:
163 /// Constructs a proxy from a Communicator and a proxy string.
164 /// @param communicator The communicator of the new proxy.
165 /// @param proxyString The proxy string to parse.
166 LookupPrx(const Ice::CommunicatorPtr& communicator, std::string_view proxyString) : Ice::ObjectPrx{communicator, proxyString} {} // NOLINT(modernize-use-equals-default)
167
168 /// Copy constructor. Constructs with a copy of the contents of @p other.
169 /// @param other The proxy to copy from.
170 LookupPrx(const LookupPrx& other) noexcept : Ice::ObjectPrx{other} {} // NOLINT(modernize-use-equals-default)
171
172 /// Move constructor. Constructs a proxy with the contents of @p other using move semantics.
173 /// @param other The proxy to move from.
174 LookupPrx(LookupPrx&& other) noexcept : Ice::ObjectPrx{std::move(other)} {} // NOLINT(modernize-use-equals-default)
175
176 ~LookupPrx() override;
177
178 /// Copy assignment operator. Replaces the contents of this proxy with a copy of the contents of @p rhs.
179 /// @param rhs The proxy to copy from.
180 /// @return A reference to this proxy.
181 LookupPrx& operator=(const LookupPrx& rhs) noexcept
182 {
183 if (this != &rhs)
184 {
186 }
187 return *this;
188 }
189
190 /// Move assignment operator. Replaces the contents of this proxy with the contents of @p rhs using move semantics.
191 /// @param rhs The proxy to move from.
193 {
194 if (this != &rhs)
195 {
196 Ice::ObjectPrx::operator=(std::move(rhs));
197 }
198 return *this;
199 }
200
201 /// Finds a well-known Ice object.
202 /// @param domainId The IceDiscovery domain identifier. An IceDiscovery client only replies to requests with a
203 /// matching domain identifier.
204 /// @param id The well-known object identity.
205 /// @param reply The proxy of the ::IceDiscovery::LookupReplyPrx interface that should be used to send the reply if a
206 /// matching object is found. The reply proxy is never null.
207 /// @param context The request context.
208 void findObjectById(std::string_view domainId, const ::Ice::Identity& id, const std::optional<LookupReplyPrx>& reply, const Ice::Context& context = Ice::noExplicitContext) const;
209
210 /// Finds a well-known Ice object.
211 /// @param domainId The IceDiscovery domain identifier. An IceDiscovery client only replies to requests with a
212 /// matching domain identifier.
213 /// @param id The well-known object identity.
214 /// @param reply The proxy of the ::IceDiscovery::LookupReplyPrx interface that should be used to send the reply if a
215 /// matching object is found. The reply proxy is never null.
216 /// @param context The request context.
217 /// @return A future that becomes available when the invocation completes.
218 [[nodiscard]] std::future<void> findObjectByIdAsync(std::string_view domainId, const ::Ice::Identity& id, const std::optional<LookupReplyPrx>& reply, const Ice::Context& context = Ice::noExplicitContext) const;
219
220 /// Finds a well-known Ice object.
221 /// @param domainId The IceDiscovery domain identifier. An IceDiscovery client only replies to requests with a
222 /// matching domain identifier.
223 /// @param id The well-known object identity.
224 /// @param reply The proxy of the ::IceDiscovery::LookupReplyPrx interface that should be used to send the reply if a
225 /// matching object is found. The reply proxy is never null.
226 /// @param response The response callback.
227 /// @param exception The exception callback.
228 /// @param sent The sent callback.
229 /// @param context The request context.
230 /// @return A function that can be called to cancel the invocation locally.
231 // NOLINTNEXTLINE(modernize-use-nodiscard)
232 std::function<void()> findObjectByIdAsync(std::string_view domainId, const ::Ice::Identity& id, 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;
233
234 /// @private
235 void _iceI_findObjectById(const std::shared_ptr<IceInternal::OutgoingAsyncT<void>>&, std::string_view, const ::Ice::Identity&, const std::optional<LookupReplyPrx>&, const Ice::Context&) const;
236
237 /// Finds an object adapter.
238 /// @param domainId The IceDiscovery domain identifier. An IceDiscovery client only replies to requests with a
239 /// matching domain identifier.
240 /// @param id The adapter ID.
241 /// @param reply The proxy of the ::IceDiscovery::LookupReplyPrx interface that should be used to send the reply if a
242 /// matching adapter is found. The reply proxy is never null.
243 /// @param context The request context.
244 void findAdapterById(std::string_view domainId, std::string_view id, const std::optional<LookupReplyPrx>& reply, const Ice::Context& context = Ice::noExplicitContext) const;
245
246 /// Finds an object adapter.
247 /// @param domainId The IceDiscovery domain identifier. An IceDiscovery client only replies to requests with a
248 /// matching domain identifier.
249 /// @param id The adapter ID.
250 /// @param reply The proxy of the ::IceDiscovery::LookupReplyPrx interface that should be used to send the reply if a
251 /// matching adapter is found. The reply proxy is never null.
252 /// @param context The request context.
253 /// @return A future that becomes available when the invocation completes.
254 [[nodiscard]] std::future<void> findAdapterByIdAsync(std::string_view domainId, std::string_view id, const std::optional<LookupReplyPrx>& reply, const Ice::Context& context = Ice::noExplicitContext) const;
255
256 /// Finds an object adapter.
257 /// @param domainId The IceDiscovery domain identifier. An IceDiscovery client only replies to requests with a
258 /// matching domain identifier.
259 /// @param id The adapter ID.
260 /// @param reply The proxy of the ::IceDiscovery::LookupReplyPrx interface that should be used to send the reply if a
261 /// matching adapter is found. The reply proxy is never null.
262 /// @param response The response callback.
263 /// @param exception The exception callback.
264 /// @param sent The sent callback.
265 /// @param context The request context.
266 /// @return A function that can be called to cancel the invocation locally.
267 // NOLINTNEXTLINE(modernize-use-nodiscard)
268 std::function<void()> findAdapterByIdAsync(std::string_view domainId, std::string_view id, 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;
269
270 /// @private
271 void _iceI_findAdapterById(const std::shared_ptr<IceInternal::OutgoingAsyncT<void>>&, std::string_view, std::string_view, const std::optional<LookupReplyPrx>&, const Ice::Context&) const;
272
273 /// Gets the type ID of the associated Slice interface.
274 /// @return The string `"::IceDiscovery::Lookup"`.
275 static const char* ice_staticId() noexcept;
276
277 /// @private
278 static LookupPrx _fromReference(IceInternal::ReferencePtr ref) { return LookupPrx{std::move(ref)}; }
279
280 protected:
281 /// @private
282 LookupPrx() = default;
283
284 /// @private
285 explicit LookupPrx(IceInternal::ReferencePtr&& ref) : Ice::ObjectPrx{std::move(ref)}
286 {
287 }
288 };
289}
290
291namespace IceDiscovery
292{
293 /// Represents a callback object implemented by IceDiscovery clients. It allows IceDiscovery clients to receive
294 /// replies to LookupPrx requests.
295 /// @remarks The Slice compiler generated this skeleton class from Slice interface `::IceDiscovery::LookupReply`.
296 class LookupReply : public virtual Ice::Object
297 {
298 public:
299 /// The associated proxy type.
301
302 /// Dispatches an incoming request to one of the member functions of this generated class, based on the operation name carried by the request.
303 /// @param request The incoming request.
304 /// @param sendResponse The callback to send the response.
305 void dispatch(Ice::IncomingRequest& request, std::function<void(Ice::OutgoingResponse)> sendResponse) override;
306
307 [[nodiscard]] std::vector<std::string> ice_ids(const Ice::Current& current) const override;
308
309 [[nodiscard]] std::string ice_id(const Ice::Current& current) const override;
310
311 /// Provides a reply to a ::IceDiscovery::LookupPrx::findObjectById request.
312 /// @param id The identity of the object.
313 /// @param prx The proxy of the object. This proxy is never null.
314 /// @param current The Current object of the incoming request.
315 virtual void foundObjectById(::Ice::Identity id, std::optional<Ice::ObjectPrx> prx, const Ice::Current& current) = 0;
316
317 /// @private
318 void _iceD_foundObjectById(Ice::IncomingRequest&, std::function<void(Ice::OutgoingResponse)>);
319
320 /// Provides a reply to a ::IceDiscovery::LookupPrx::findAdapterById request.
321 /// @param id The adapter ID.
322 /// @param prx The adapter proxy (a dummy proxy created by the adapter). The proxy provides the adapter
323 /// endpoints. This proxy is never null.
324 /// @param isReplicaGroup Indicates whether the adapter is a member of a replica group.
325 /// @param current The Current object of the incoming request.
326 virtual void foundAdapterById(std::string id, std::optional<Ice::ObjectPrx> prx, bool isReplicaGroup, const Ice::Current& current) = 0;
327
328 /// @private
329 void _iceD_foundAdapterById(Ice::IncomingRequest&, std::function<void(Ice::OutgoingResponse)>);
330
331 /// Gets the type ID of the associated Slice interface.
332 /// @return The string `"::IceDiscovery::LookupReply"`.
333 static const char* ice_staticId() noexcept;
334 };
335
336 /// A shared pointer to a LookupReply.
337 using LookupReplyPtr = std::shared_ptr<LookupReply>;
338
339 /// Looks up objects and object adapters using UDP multicast.
340 /// @remarks The Slice compiler generated this skeleton class from Slice interface `::IceDiscovery::Lookup`.
341 class Lookup : public virtual Ice::Object
342 {
343 public:
344 /// The associated proxy type.
346
347 /// Dispatches an incoming request to one of the member functions of this generated class, based on the operation name carried by the request.
348 /// @param request The incoming request.
349 /// @param sendResponse The callback to send the response.
350 void dispatch(Ice::IncomingRequest& request, std::function<void(Ice::OutgoingResponse)> sendResponse) override;
351
352 [[nodiscard]] std::vector<std::string> ice_ids(const Ice::Current& current) const override;
353
354 [[nodiscard]] std::string ice_id(const Ice::Current& current) const override;
355
356 /// Finds a well-known Ice object.
357 /// @param domainId The IceDiscovery domain identifier. An IceDiscovery client only replies to requests with a
358 /// matching domain identifier.
359 /// @param id The well-known object identity.
360 /// @param reply The proxy of the ::IceDiscovery::LookupReplyPrx interface that should be used to send the reply if a
361 /// matching object is found. The reply proxy is never null.
362 /// @param current The Current object of the incoming request.
363 virtual void findObjectById(std::string domainId, ::Ice::Identity id, std::optional<LookupReplyPrx> reply, const Ice::Current& current) = 0;
364
365 /// @private
366 void _iceD_findObjectById(Ice::IncomingRequest&, std::function<void(Ice::OutgoingResponse)>);
367
368 /// Finds an object adapter.
369 /// @param domainId The IceDiscovery domain identifier. An IceDiscovery client only replies to requests with a
370 /// matching domain identifier.
371 /// @param id The adapter ID.
372 /// @param reply The proxy of the ::IceDiscovery::LookupReplyPrx interface that should be used to send the reply if a
373 /// matching adapter is found. The reply proxy is never null.
374 /// @param current The Current object of the incoming request.
375 virtual void findAdapterById(std::string domainId, std::string id, std::optional<LookupReplyPrx> reply, const Ice::Current& current) = 0;
376
377 /// @private
378 void _iceD_findAdapterById(Ice::IncomingRequest&, std::function<void(Ice::OutgoingResponse)>);
379
380 /// Gets the type ID of the associated Slice interface.
381 /// @return The string `"::IceDiscovery::Lookup"`.
382 static const char* ice_staticId() noexcept;
383 };
384
385 /// A shared pointer to a Lookup.
386 using LookupPtr = std::shared_ptr<Lookup>;
387}
388
389namespace IceDiscovery
390{
391 /// Represents a callback object implemented by IceDiscovery clients. It allows IceDiscovery clients to receive
392 /// replies to LookupPrx requests.
393 /// @remarks The Slice compiler generated this skeleton class from Slice interface `::IceDiscovery::LookupReply`.
394 class AsyncLookupReply : public virtual Ice::Object
395 {
396 public:
397 /// The associated proxy type.
399
400 /// Dispatches an incoming request to one of the member functions of this generated class, based on the operation name carried by the request.
401 /// @param request The incoming request.
402 /// @param sendResponse The callback to send the response.
403 void dispatch(Ice::IncomingRequest& request, std::function<void(Ice::OutgoingResponse)> sendResponse) override;
404
405 [[nodiscard]] std::vector<std::string> ice_ids(const Ice::Current& current) const override;
406
407 [[nodiscard]] std::string ice_id(const Ice::Current& current) const override;
408
409 /// Provides a reply to a ::IceDiscovery::LookupPrx::findObjectById request.
410 /// @param id The identity of the object.
411 /// @param prx The proxy of the object. This proxy is never null.
412 /// @param response The response callback.
413 /// @param exception The exception callback.
414 /// @param current The Current object of the incoming request.
415 virtual void foundObjectByIdAsync(::Ice::Identity id, std::optional<Ice::ObjectPrx> prx, std::function<void()> response, std::function<void(std::exception_ptr)> exception, const Ice::Current& current) = 0;
416
417 /// @private
418 void _iceD_foundObjectById(Ice::IncomingRequest&, std::function<void(Ice::OutgoingResponse)>);
419
420 /// Provides a reply to a ::IceDiscovery::LookupPrx::findAdapterById request.
421 /// @param id The adapter ID.
422 /// @param prx The adapter proxy (a dummy proxy created by the adapter). The proxy provides the adapter
423 /// endpoints. This proxy is never null.
424 /// @param isReplicaGroup Indicates whether the adapter is a member of a replica group.
425 /// @param response The response callback.
426 /// @param exception The exception callback.
427 /// @param current The Current object of the incoming request.
428 virtual void foundAdapterByIdAsync(std::string id, std::optional<Ice::ObjectPrx> prx, bool isReplicaGroup, std::function<void()> response, std::function<void(std::exception_ptr)> exception, const Ice::Current& current) = 0;
429
430 /// @private
431 void _iceD_foundAdapterById(Ice::IncomingRequest&, std::function<void(Ice::OutgoingResponse)>);
432
433 /// Gets the type ID of the associated Slice interface.
434 /// @return The string `"::IceDiscovery::LookupReply"`.
435 static const char* ice_staticId() noexcept;
436 };
437
438 /// A shared pointer to an AsyncLookupReply.
439 using AsyncLookupReplyPtr = std::shared_ptr<AsyncLookupReply>;
440
441 /// Looks up objects and object adapters using UDP multicast.
442 /// @remarks The Slice compiler generated this skeleton class from Slice interface `::IceDiscovery::Lookup`.
443 class AsyncLookup : public virtual Ice::Object
444 {
445 public:
446 /// The associated proxy type.
448
449 /// Dispatches an incoming request to one of the member functions of this generated class, based on the operation name carried by the request.
450 /// @param request The incoming request.
451 /// @param sendResponse The callback to send the response.
452 void dispatch(Ice::IncomingRequest& request, std::function<void(Ice::OutgoingResponse)> sendResponse) override;
453
454 [[nodiscard]] std::vector<std::string> ice_ids(const Ice::Current& current) const override;
455
456 [[nodiscard]] std::string ice_id(const Ice::Current& current) const override;
457
458 /// Finds a well-known Ice object.
459 /// @param domainId The IceDiscovery domain identifier. An IceDiscovery client only replies to requests with a
460 /// matching domain identifier.
461 /// @param id The well-known object identity.
462 /// @param reply The proxy of the ::IceDiscovery::LookupReplyPrx interface that should be used to send the reply if a
463 /// matching object is found. The reply proxy is never null.
464 /// @param response The response callback.
465 /// @param exception The exception callback.
466 /// @param current The Current object of the incoming request.
467 virtual void findObjectByIdAsync(std::string domainId, ::Ice::Identity id, std::optional<LookupReplyPrx> reply, std::function<void()> response, std::function<void(std::exception_ptr)> exception, const Ice::Current& current) = 0;
468
469 /// @private
470 void _iceD_findObjectById(Ice::IncomingRequest&, std::function<void(Ice::OutgoingResponse)>);
471
472 /// Finds an object adapter.
473 /// @param domainId The IceDiscovery domain identifier. An IceDiscovery client only replies to requests with a
474 /// matching domain identifier.
475 /// @param id The adapter ID.
476 /// @param reply The proxy of the ::IceDiscovery::LookupReplyPrx interface that should be used to send the reply if a
477 /// matching adapter is found. The reply proxy is never null.
478 /// @param response The response callback.
479 /// @param exception The exception callback.
480 /// @param current The Current object of the incoming request.
481 virtual void findAdapterByIdAsync(std::string domainId, std::string id, std::optional<LookupReplyPrx> reply, std::function<void()> response, std::function<void(std::exception_ptr)> exception, const Ice::Current& current) = 0;
482
483 /// @private
484 void _iceD_findAdapterById(Ice::IncomingRequest&, std::function<void(Ice::OutgoingResponse)>);
485
486 /// Gets the type ID of the associated Slice interface.
487 /// @return The string `"::IceDiscovery::Lookup"`.
488 static const char* ice_staticId() noexcept;
489 };
490
491 /// A shared pointer to an AsyncLookup.
492 using AsyncLookupPtr = std::shared_ptr<AsyncLookup>;
493}
494
495// NOLINTEND(modernize-concat-nested-namespaces)
496
497#include <Ice/PopDisableWarnings.h>
498#endif
virtual void foundAdapterByIdAsync(std::string id, std::optional< Ice::ObjectPrx > prx, bool isReplicaGroup, std::function< void()> response, std::function< void(std::exception_ptr)> exception, const Ice::Current &current)=0
Provides a reply to a IceDiscovery::LookupPrx::findAdapterById request.
virtual void foundObjectByIdAsync(::Ice::Identity id, std::optional< Ice::ObjectPrx > prx, std::function< void()> response, std::function< void(std::exception_ptr)> exception, const Ice::Current &current)=0
Provides a reply to a IceDiscovery::LookupPrx::findObjectById request.
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice interface.
LookupReplyPrx ProxyType
The associated proxy type.
Definition Lookup.h:398
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.
std::string ice_id(const Ice::Current &current) const override
Gets the type ID of the most-derived Slice interface supported by this object.
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 IceDiscovery clients.
Definition Lookup.h:395
std::string ice_id(const Ice::Current &current) const override
Gets the type ID of the most-derived Slice interface supported by this object.
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.
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice interface.
virtual void findObjectByIdAsync(std::string domainId, ::Ice::Identity id, std::optional< LookupReplyPrx > reply, std::function< void()> response, std::function< void(std::exception_ptr)> exception, const Ice::Current &current)=0
Finds a well-known Ice object.
LookupPrx ProxyType
The associated proxy type.
Definition Lookup.h:447
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,...
virtual void findAdapterByIdAsync(std::string domainId, std::string id, std::optional< LookupReplyPrx > reply, std::function< void()> response, std::function< void(std::exception_ptr)> exception, const Ice::Current &current)=0
Finds an object adapter.
Looks up objects and object adapters using UDP multicast.
Definition Lookup.h:444
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice interface.
std::function< void()> findAdapterByIdAsync(std::string_view domainId, std::string_view id, 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 an object adapter.
std::future< void > findObjectByIdAsync(std::string_view domainId, const ::Ice::Identity &id, const std::optional< LookupReplyPrx > &reply, const Ice::Context &context=Ice::noExplicitContext) const
Finds a well-known Ice object.
LookupPrx(LookupPrx &&other) noexcept
Move constructor.
Definition Lookup.h:174
LookupPrx(const Ice::CommunicatorPtr &communicator, std::string_view proxyString)
Constructs a proxy from a Communicator and a proxy string.
Definition Lookup.h:166
void findObjectById(std::string_view domainId, const ::Ice::Identity &id, const std::optional< LookupReplyPrx > &reply, const Ice::Context &context=Ice::noExplicitContext) const
Finds a well-known Ice object.
std::function< void()> findObjectByIdAsync(std::string_view domainId, const ::Ice::Identity &id, 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 well-known Ice object.
LookupPrx & operator=(const LookupPrx &rhs) noexcept
Copy assignment operator.
Definition Lookup.h:181
void findAdapterById(std::string_view domainId, std::string_view id, const std::optional< LookupReplyPrx > &reply, const Ice::Context &context=Ice::noExplicitContext) const
Finds an object adapter.
LookupPrx(const LookupPrx &other) noexcept
Copy constructor.
Definition Lookup.h:170
std::future< void > findAdapterByIdAsync(std::string_view domainId, std::string_view id, const std::optional< LookupReplyPrx > &reply, const Ice::Context &context=Ice::noExplicitContext) const
Finds an object adapter.
LookupPrx & operator=(LookupPrx &&rhs) noexcept
Move assignment operator.
Definition Lookup.h:192
Looks up objects and object adapters using UDP multicast.
Definition Lookup.h:161
std::function< void()> foundObjectByIdAsync(const ::Ice::Identity &id, const std::optional< Ice::ObjectPrx > &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 IceDiscovery::LookupPrx::findObjectById request.
LookupReplyPrx(const LookupReplyPrx &other) noexcept
Copy constructor.
Definition Lookup.h:50
std::function< void()> foundAdapterByIdAsync(std::string_view id, const std::optional< Ice::ObjectPrx > &prx, bool isReplicaGroup, 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 IceDiscovery::LookupPrx::findAdapterById request.
void foundObjectById(const ::Ice::Identity &id, const std::optional< Ice::ObjectPrx > &prx, const Ice::Context &context=Ice::noExplicitContext) const
Provides a reply to a IceDiscovery::LookupPrx::findObjectById request.
LookupReplyPrx(LookupReplyPrx &&other) noexcept
Move constructor.
Definition Lookup.h:54
void foundAdapterById(std::string_view id, const std::optional< Ice::ObjectPrx > &prx, bool isReplicaGroup, const Ice::Context &context=Ice::noExplicitContext) const
Provides a reply to a IceDiscovery::LookupPrx::findAdapterById request.
LookupReplyPrx & operator=(LookupReplyPrx &&rhs) noexcept
Move assignment operator.
Definition Lookup.h:72
std::future< void > foundAdapterByIdAsync(std::string_view id, const std::optional< Ice::ObjectPrx > &prx, bool isReplicaGroup, const Ice::Context &context=Ice::noExplicitContext) const
Provides a reply to a IceDiscovery::LookupPrx::findAdapterById request.
LookupReplyPrx & operator=(const LookupReplyPrx &rhs) noexcept
Copy assignment operator.
Definition Lookup.h:61
std::future< void > foundObjectByIdAsync(const ::Ice::Identity &id, const std::optional< Ice::ObjectPrx > &prx, const Ice::Context &context=Ice::noExplicitContext) const
Provides a reply to a IceDiscovery::LookupPrx::findObjectById request.
LookupReplyPrx(const Ice::CommunicatorPtr &communicator, std::string_view proxyString)
Constructs a proxy from a Communicator and a proxy string.
Definition Lookup.h:46
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice interface.
Represents a callback object implemented by IceDiscovery clients.
Definition Lookup.h:41
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,...
virtual void foundAdapterById(std::string id, std::optional< Ice::ObjectPrx > prx, bool isReplicaGroup, const Ice::Current &current)=0
Provides a reply to a IceDiscovery::LookupPrx::findAdapterById request.
virtual void foundObjectById(::Ice::Identity id, std::optional< Ice::ObjectPrx > prx, const Ice::Current &current)=0
Provides a reply to a IceDiscovery::LookupPrx::findObjectById request.
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.
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.
LookupReplyPrx ProxyType
The associated proxy type.
Definition Lookup.h:300
Represents a callback object implemented by IceDiscovery clients.
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,...
LookupPrx ProxyType
The associated proxy type.
Definition Lookup.h:345
virtual void findObjectById(std::string domainId, ::Ice::Identity id, std::optional< LookupReplyPrx > reply, const Ice::Current &current)=0
Finds a well-known Ice object.
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice interface.
virtual void findAdapterById(std::string domainId, std::string id, std::optional< LookupReplyPrx > reply, const Ice::Current &current)=0
Finds an object adapter.
std::string ice_id(const Ice::Current &current) const override
Gets the type ID of the most-derived Slice interface supported by this object.
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 up objects and object adapters using UDP multicast.
Definition Lookup.h:342
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:232
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:45
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
Represents the identity of an Ice object.
Definition Identity.h:47