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