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