Ice 3.7 C++11 API Reference
Loading...
Searching...
No Matches
IceLocatorDiscovery.h
Go to the documentation of this file.
1//
2// Copyright (c) ZeroC, Inc. All rights reserved.
3//
4//
5// Ice version 3.7.11
6//
7// <auto-generated>
8//
9// Generated from file `IceLocatorDiscovery.ice'
10//
11// Warning: do not edit this file.
12//
13// </auto-generated>
14//
15
16#ifndef __IceLocatorDiscovery_IceLocatorDiscovery_h__
17#define __IceLocatorDiscovery_IceLocatorDiscovery_h__
18
20#include <Ice/ProxyF.h>
21#include <Ice/ObjectF.h>
22#include <Ice/ValueF.h>
23#include <Ice/Exception.h>
24#include <Ice/LocalObject.h>
25#include <Ice/StreamHelpers.h>
26#include <Ice/Comparable.h>
27#include <Ice/Proxy.h>
28#include <Ice/Object.h>
29#include <Ice/GCObject.h>
30#include <Ice/Value.h>
31#include <Ice/Incoming.h>
32#include <Ice/IncomingAsync.h>
34#include <IceUtil/ScopedArray.h>
35#include <Ice/Optional.h>
37#include <Ice/Locator.h>
39
40#ifndef ICE_IGNORE_VERSION
41# if ICE_INT_VERSION / 100 != 307
42# error Ice version mismatch!
43# endif
44# if ICE_INT_VERSION % 100 >= 50
45# error Beta header file detected
46# endif
47# if ICE_INT_VERSION % 100 < 11
48# error Ice patch level mismatch!
49# endif
50#endif
51
52#ifdef ICE_CPP11_MAPPING // C++11 mapping
53
55{
56
57class LookupReply;
58class LookupReplyPrx;
59class Lookup;
60class LookupPrx;
61
62}
63
64namespace IceLocatorDiscovery
65{
66
74class LookupReply : public virtual ::Ice::Object
75{
76public:
77
79
86 virtual bool ice_isA(::std::string id, const ::Ice::Current& current) const override;
87
93 virtual ::std::vector<::std::string> ice_ids(const ::Ice::Current& current) const override;
94
100 virtual ::std::string ice_id(const ::Ice::Current& current) const override;
101
106 static const ::std::string& ice_staticId();
107
114 virtual void foundLocator(::std::shared_ptr<::Ice::LocatorPrx> prx, const ::Ice::Current& current) = 0;
116 bool _iceD_foundLocator(::IceInternal::Incoming&, const ::Ice::Current&);
118
120 virtual bool _iceDispatch(::IceInternal::Incoming&, const ::Ice::Current&) override;
122};
123
135class Lookup : public virtual ::Ice::Object
136{
137public:
138
140
147 virtual bool ice_isA(::std::string id, const ::Ice::Current& current) const override;
148
154 virtual ::std::vector<::std::string> ice_ids(const ::Ice::Current& current) const override;
155
161 virtual ::std::string ice_id(const ::Ice::Current& current) const override;
162
167 static const ::std::string& ice_staticId();
168
177 virtual void findLocator(::std::string instanceName, ::std::shared_ptr<LookupReplyPrx> reply, const ::Ice::Current& current) = 0;
179 bool _iceD_findLocator(::IceInternal::Incoming&, const ::Ice::Current&);
181
183 virtual bool _iceDispatch(::IceInternal::Incoming&, const ::Ice::Current&) override;
185};
186
187}
188
189namespace IceLocatorDiscovery
190{
191
199class LookupReplyPrx : public virtual ::Ice::Proxy<LookupReplyPrx, ::Ice::ObjectPrx>
200{
201public:
202
209 void foundLocator(const ::std::shared_ptr<::Ice::LocatorPrx>& prx, const ::Ice::Context& context = ::Ice::noExplicitContext)
210 {
211 _makePromiseOutgoing<void>(true, this, &LookupReplyPrx::_iceI_foundLocator, prx, context).get();
212 }
213
221 template<template<typename> class P = ::std::promise>
222 auto foundLocatorAsync(const ::std::shared_ptr<::Ice::LocatorPrx>& prx, const ::Ice::Context& context = ::Ice::noExplicitContext)
223 -> decltype(::std::declval<P<void>>().get_future())
224 {
225 return _makePromiseOutgoing<void, P>(false, this, &LookupReplyPrx::_iceI_foundLocator, prx, context);
226 }
227
238 ::std::function<void()>
239 foundLocatorAsync(const ::std::shared_ptr<::Ice::LocatorPrx>& prx,
240 ::std::function<void()> response,
241 ::std::function<void(::std::exception_ptr)> ex = nullptr,
242 ::std::function<void(bool)> sent = nullptr,
243 const ::Ice::Context& context = ::Ice::noExplicitContext)
244 {
245 return _makeLambdaOutgoing<void>(std::move(response), std::move(ex), std::move(sent), this, &IceLocatorDiscovery::LookupReplyPrx::_iceI_foundLocator, prx, context);
246 }
247
249 void _iceI_foundLocator(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<void>>&, const ::std::shared_ptr<::Ice::LocatorPrx>&, const ::Ice::Context&);
251
256 static const ::std::string& ice_staticId();
257
258protected:
259
261 LookupReplyPrx() = default;
262 friend ::std::shared_ptr<LookupReplyPrx> IceInternal::createProxy<LookupReplyPrx>();
263
264 virtual ::std::shared_ptr<::Ice::ObjectPrx> _newInstance() const override;
266};
267
279class LookupPrx : public virtual ::Ice::Proxy<LookupPrx, ::Ice::ObjectPrx>
280{
281public:
282
291 void findLocator(const ::std::string& instanceName, const ::std::shared_ptr<LookupReplyPrx>& reply, const ::Ice::Context& context = ::Ice::noExplicitContext)
292 {
293 _makePromiseOutgoing<void>(true, this, &LookupPrx::_iceI_findLocator, instanceName, reply, context).get();
294 }
295
305 template<template<typename> class P = ::std::promise>
306 auto findLocatorAsync(const ::std::string& instanceName, const ::std::shared_ptr<LookupReplyPrx>& reply, const ::Ice::Context& context = ::Ice::noExplicitContext)
307 -> decltype(::std::declval<P<void>>().get_future())
308 {
309 return _makePromiseOutgoing<void, P>(false, this, &LookupPrx::_iceI_findLocator, instanceName, reply, context);
310 }
311
324 ::std::function<void()>
325 findLocatorAsync(const ::std::string& instanceName, const ::std::shared_ptr<LookupReplyPrx>& reply,
326 ::std::function<void()> response,
327 ::std::function<void(::std::exception_ptr)> ex = nullptr,
328 ::std::function<void(bool)> sent = nullptr,
329 const ::Ice::Context& context = ::Ice::noExplicitContext)
330 {
331 return _makeLambdaOutgoing<void>(std::move(response), std::move(ex), std::move(sent), this, &IceLocatorDiscovery::LookupPrx::_iceI_findLocator, instanceName, reply, context);
332 }
333
335 void _iceI_findLocator(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<void>>&, const ::std::string&, const ::std::shared_ptr<LookupReplyPrx>&, const ::Ice::Context&);
337
342 static const ::std::string& ice_staticId();
343
344protected:
345
347 LookupPrx() = default;
348 friend ::std::shared_ptr<LookupPrx> IceInternal::createProxy<LookupPrx>();
349
350 virtual ::std::shared_ptr<::Ice::ObjectPrx> _newInstance() const override;
352};
353
354}
355
357namespace Ice
358{
359
360}
362
364namespace IceLocatorDiscovery
365{
366
367using LookupReplyPtr = ::std::shared_ptr<LookupReply>;
368using LookupReplyPrxPtr = ::std::shared_ptr<LookupReplyPrx>;
369
370using LookupPtr = ::std::shared_ptr<Lookup>;
371using LookupPrxPtr = ::std::shared_ptr<LookupPrx>;
372
373}
375
376#else // C++98 mapping
377
378namespace IceProxy
379{
380
381namespace IceLocatorDiscovery
382{
383
384class LookupReply;
386void _readProxy(::Ice::InputStream*, ::IceInternal::ProxyHandle< LookupReply>&);
387::IceProxy::Ice::Object* upCast(LookupReply*);
389
390class Lookup;
392void _readProxy(::Ice::InputStream*, ::IceInternal::ProxyHandle< Lookup>&);
393::IceProxy::Ice::Object* upCast(Lookup*);
395
396}
397
398}
399
400namespace IceLocatorDiscovery
401{
402
403class LookupReply;
405::Ice::Object* upCast(LookupReply*);
407typedef ::IceInternal::Handle< LookupReply> LookupReplyPtr;
408typedef ::IceInternal::ProxyHandle< ::IceProxy::IceLocatorDiscovery::LookupReply> LookupReplyPrx;
409typedef LookupReplyPrx LookupReplyPrxPtr;
411void _icePatchObjectPtr(LookupReplyPtr&, const ::Ice::ObjectPtr&);
413
414class Lookup;
416::Ice::Object* upCast(Lookup*);
418typedef ::IceInternal::Handle< Lookup> LookupPtr;
419typedef ::IceInternal::ProxyHandle< ::IceProxy::IceLocatorDiscovery::Lookup> LookupPrx;
420typedef LookupPrx LookupPrxPtr;
422void _icePatchObjectPtr(LookupPtr&, const ::Ice::ObjectPtr&);
424
425}
426
428namespace IceAsync
429{
430
431}
433
434namespace IceLocatorDiscovery
435{
436
442class Callback_LookupReply_foundLocator_Base : public virtual ::IceInternal::CallbackBase { };
443typedef ::IceUtil::Handle< Callback_LookupReply_foundLocator_Base> Callback_LookupReply_foundLocatorPtr;
444
450class Callback_Lookup_findLocator_Base : public virtual ::IceInternal::CallbackBase { };
451typedef ::IceUtil::Handle< Callback_Lookup_findLocator_Base> Callback_Lookup_findLocatorPtr;
452
453}
454
455namespace IceProxy
456{
457
458namespace IceLocatorDiscovery
459{
460
461class LookupReply : public virtual ::Ice::Proxy<LookupReply, ::IceProxy::Ice::Object>
462{
463public:
464
471 void foundLocator(const ::Ice::LocatorPrx& prx, const ::Ice::Context& context = ::Ice::noExplicitContext)
472 {
473 end_foundLocator(_iceI_begin_foundLocator(prx, context, ::IceInternal::dummyCallback, 0, true));
474 }
475
483 ::Ice::AsyncResultPtr begin_foundLocator(const ::Ice::LocatorPrx& prx, const ::Ice::Context& context = ::Ice::noExplicitContext)
484 {
485 return _iceI_begin_foundLocator(prx, context, ::IceInternal::dummyCallback, 0);
486 }
487
496 ::Ice::AsyncResultPtr begin_foundLocator(const ::Ice::LocatorPrx& prx, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
497 {
498 return _iceI_begin_foundLocator(prx, ::Ice::noExplicitContext, cb, cookie);
499 }
500
510 ::Ice::AsyncResultPtr begin_foundLocator(const ::Ice::LocatorPrx& prx, const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
511 {
512 return _iceI_begin_foundLocator(prx, context, cb, cookie);
513 }
514
523 ::Ice::AsyncResultPtr begin_foundLocator(const ::Ice::LocatorPrx& prx, const ::IceLocatorDiscovery::Callback_LookupReply_foundLocatorPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
524 {
525 return _iceI_begin_foundLocator(prx, ::Ice::noExplicitContext, cb, cookie);
526 }
527
537 ::Ice::AsyncResultPtr begin_foundLocator(const ::Ice::LocatorPrx& prx, const ::Ice::Context& context, const ::IceLocatorDiscovery::Callback_LookupReply_foundLocatorPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
538 {
539 return _iceI_begin_foundLocator(prx, context, cb, cookie);
540 }
541
546 void end_foundLocator(const ::Ice::AsyncResultPtr& result);
547
548private:
549
550 ::Ice::AsyncResultPtr _iceI_begin_foundLocator(const ::Ice::LocatorPrx&, const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0, bool sync = false);
551
552public:
553
558 static const ::std::string& ice_staticId();
559
560protected:
562
563 virtual ::IceProxy::Ice::Object* _newInstance() const;
565};
566
567class Lookup : public virtual ::Ice::Proxy<Lookup, ::IceProxy::Ice::Object>
568{
569public:
570
579 void findLocator(const ::std::string& instanceName, const ::IceLocatorDiscovery::LookupReplyPrx& reply, const ::Ice::Context& context = ::Ice::noExplicitContext)
580 {
581 end_findLocator(_iceI_begin_findLocator(instanceName, reply, context, ::IceInternal::dummyCallback, 0, true));
582 }
583
593 ::Ice::AsyncResultPtr begin_findLocator(const ::std::string& instanceName, const ::IceLocatorDiscovery::LookupReplyPrx& reply, const ::Ice::Context& context = ::Ice::noExplicitContext)
594 {
595 return _iceI_begin_findLocator(instanceName, reply, context, ::IceInternal::dummyCallback, 0);
596 }
597
608 ::Ice::AsyncResultPtr begin_findLocator(const ::std::string& instanceName, const ::IceLocatorDiscovery::LookupReplyPrx& reply, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
609 {
610 return _iceI_begin_findLocator(instanceName, reply, ::Ice::noExplicitContext, cb, cookie);
611 }
612
624 ::Ice::AsyncResultPtr begin_findLocator(const ::std::string& instanceName, const ::IceLocatorDiscovery::LookupReplyPrx& reply, const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
625 {
626 return _iceI_begin_findLocator(instanceName, reply, context, cb, cookie);
627 }
628
639 ::Ice::AsyncResultPtr begin_findLocator(const ::std::string& instanceName, const ::IceLocatorDiscovery::LookupReplyPrx& reply, const ::IceLocatorDiscovery::Callback_Lookup_findLocatorPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
640 {
641 return _iceI_begin_findLocator(instanceName, reply, ::Ice::noExplicitContext, cb, cookie);
642 }
643
655 ::Ice::AsyncResultPtr begin_findLocator(const ::std::string& instanceName, const ::IceLocatorDiscovery::LookupReplyPrx& reply, const ::Ice::Context& context, const ::IceLocatorDiscovery::Callback_Lookup_findLocatorPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
656 {
657 return _iceI_begin_findLocator(instanceName, reply, context, cb, cookie);
658 }
659
664 void end_findLocator(const ::Ice::AsyncResultPtr& result);
665
666private:
667
668 ::Ice::AsyncResultPtr _iceI_begin_findLocator(const ::std::string&, const ::IceLocatorDiscovery::LookupReplyPrx&, const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0, bool sync = false);
669
670public:
671
676 static const ::std::string& ice_staticId();
677
678protected:
680
681 virtual ::IceProxy::Ice::Object* _newInstance() const;
683};
684
685}
686
687}
688
689namespace IceLocatorDiscovery
690{
691
699class LookupReply : public virtual ::Ice::Object
700{
701public:
702
703 typedef LookupReplyPrx ProxyType;
704 typedef LookupReplyPtr PointerType;
705
706 virtual ~LookupReply();
707
708#ifdef ICE_CPP11_COMPILER
709 LookupReply() = default;
710 LookupReply(const LookupReply&) = default;
711 LookupReply& operator=(const LookupReply&) = default;
712#endif
713
720 virtual bool ice_isA(const ::std::string& id, const ::Ice::Current& current = ::Ice::emptyCurrent) const;
721
727 virtual ::std::vector< ::std::string> ice_ids(const ::Ice::Current& current = ::Ice::emptyCurrent) const;
728
734 virtual const ::std::string& ice_id(const ::Ice::Current& current = ::Ice::emptyCurrent) const;
735
740 static const ::std::string& ice_staticId();
741
748 virtual void foundLocator(const ::Ice::LocatorPrx& prx, const ::Ice::Current& current = ::Ice::emptyCurrent) = 0;
750 bool _iceD_foundLocator(::IceInternal::Incoming&, const ::Ice::Current&);
752
754 virtual bool _iceDispatch(::IceInternal::Incoming&, const ::Ice::Current&);
756
757protected:
758
760 virtual void _iceWriteImpl(::Ice::OutputStream*) const;
761 virtual void _iceReadImpl(::Ice::InputStream*);
763};
764
766inline bool operator==(const LookupReply& lhs, const LookupReply& rhs)
767{
768 return static_cast<const ::Ice::Object&>(lhs) == static_cast<const ::Ice::Object&>(rhs);
769}
770
771inline bool operator<(const LookupReply& lhs, const LookupReply& rhs)
772{
773 return static_cast<const ::Ice::Object&>(lhs) < static_cast<const ::Ice::Object&>(rhs);
774}
776
788class Lookup : public virtual ::Ice::Object
789{
790public:
791
792 typedef LookupPrx ProxyType;
793 typedef LookupPtr PointerType;
794
795 virtual ~Lookup();
796
797#ifdef ICE_CPP11_COMPILER
798 Lookup() = default;
799 Lookup(const Lookup&) = default;
800 Lookup& operator=(const Lookup&) = default;
801#endif
802
809 virtual bool ice_isA(const ::std::string& id, const ::Ice::Current& current = ::Ice::emptyCurrent) const;
810
816 virtual ::std::vector< ::std::string> ice_ids(const ::Ice::Current& current = ::Ice::emptyCurrent) const;
817
823 virtual const ::std::string& ice_id(const ::Ice::Current& current = ::Ice::emptyCurrent) const;
824
829 static const ::std::string& ice_staticId();
830
839 virtual void findLocator(const ::std::string& instanceName, const LookupReplyPrx& reply, const ::Ice::Current& current = ::Ice::emptyCurrent) = 0;
841 bool _iceD_findLocator(::IceInternal::Incoming&, const ::Ice::Current&);
843
845 virtual bool _iceDispatch(::IceInternal::Incoming&, const ::Ice::Current&);
847
848protected:
849
851 virtual void _iceWriteImpl(::Ice::OutputStream*) const;
852 virtual void _iceReadImpl(::Ice::InputStream*);
854};
855
857inline bool operator==(const Lookup& lhs, const Lookup& rhs)
858{
859 return static_cast<const ::Ice::Object&>(lhs) == static_cast<const ::Ice::Object&>(rhs);
860}
861
862inline bool operator<(const Lookup& lhs, const Lookup& rhs)
863{
864 return static_cast<const ::Ice::Object&>(lhs) < static_cast<const ::Ice::Object&>(rhs);
865}
867
868}
869
871namespace Ice
872{
873
874}
876
877namespace IceLocatorDiscovery
878{
879
885template<class T>
886class CallbackNC_LookupReply_foundLocator : public Callback_LookupReply_foundLocator_Base, public ::IceInternal::OnewayCallbackNC<T>
887{
888public:
889
890 typedef IceUtil::Handle<T> TPtr;
891
892 typedef void (T::*Exception)(const ::Ice::Exception&);
893 typedef void (T::*Sent)(bool);
894 typedef void (T::*Response)();
895
896 CallbackNC_LookupReply_foundLocator(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
897 : ::IceInternal::OnewayCallbackNC<T>(obj, cb, excb, sentcb)
898 {
899 }
900};
901
910template<class T> Callback_LookupReply_foundLocatorPtr
911newCallback_LookupReply_foundLocator(const IceUtil::Handle<T>& instance, void (T::*cb)(), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
912{
913 return new CallbackNC_LookupReply_foundLocator<T>(instance, cb, excb, sentcb);
914}
915
923template<class T> Callback_LookupReply_foundLocatorPtr
924newCallback_LookupReply_foundLocator(const IceUtil::Handle<T>& instance, void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
925{
926 return new CallbackNC_LookupReply_foundLocator<T>(instance, 0, excb, sentcb);
927}
928
937template<class T> Callback_LookupReply_foundLocatorPtr
938newCallback_LookupReply_foundLocator(T* instance, void (T::*cb)(), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
939{
940 return new CallbackNC_LookupReply_foundLocator<T>(instance, cb, excb, sentcb);
941}
942
950template<class T> Callback_LookupReply_foundLocatorPtr
951newCallback_LookupReply_foundLocator(T* instance, void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
952{
953 return new CallbackNC_LookupReply_foundLocator<T>(instance, 0, excb, sentcb);
954}
955
961template<class T, typename CT>
962class Callback_LookupReply_foundLocator : public Callback_LookupReply_foundLocator_Base, public ::IceInternal::OnewayCallback<T, CT>
963{
964public:
965
966 typedef IceUtil::Handle<T> TPtr;
967
968 typedef void (T::*Exception)(const ::Ice::Exception& , const CT&);
969 typedef void (T::*Sent)(bool , const CT&);
970 typedef void (T::*Response)(const CT&);
971
972 Callback_LookupReply_foundLocator(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
973 : ::IceInternal::OnewayCallback<T, CT>(obj, cb, excb, sentcb)
974 {
975 }
976};
977
987template<class T, typename CT> Callback_LookupReply_foundLocatorPtr
988newCallback_LookupReply_foundLocator(const IceUtil::Handle<T>& instance, void (T::*cb)(const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
989{
990 return new Callback_LookupReply_foundLocator<T, CT>(instance, cb, excb, sentcb);
991}
992
1001template<class T, typename CT> Callback_LookupReply_foundLocatorPtr
1002newCallback_LookupReply_foundLocator(const IceUtil::Handle<T>& instance, void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
1003{
1004 return new Callback_LookupReply_foundLocator<T, CT>(instance, 0, excb, sentcb);
1005}
1006
1016template<class T, typename CT> Callback_LookupReply_foundLocatorPtr
1017newCallback_LookupReply_foundLocator(T* instance, void (T::*cb)(const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
1018{
1019 return new Callback_LookupReply_foundLocator<T, CT>(instance, cb, excb, sentcb);
1020}
1021
1030template<class T, typename CT> Callback_LookupReply_foundLocatorPtr
1031newCallback_LookupReply_foundLocator(T* instance, void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
1032{
1033 return new Callback_LookupReply_foundLocator<T, CT>(instance, 0, excb, sentcb);
1034}
1035
1041template<class T>
1042class CallbackNC_Lookup_findLocator : public Callback_Lookup_findLocator_Base, public ::IceInternal::OnewayCallbackNC<T>
1043{
1044public:
1045
1046 typedef IceUtil::Handle<T> TPtr;
1047
1048 typedef void (T::*Exception)(const ::Ice::Exception&);
1049 typedef void (T::*Sent)(bool);
1050 typedef void (T::*Response)();
1051
1052 CallbackNC_Lookup_findLocator(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
1053 : ::IceInternal::OnewayCallbackNC<T>(obj, cb, excb, sentcb)
1054 {
1055 }
1056};
1057
1066template<class T> Callback_Lookup_findLocatorPtr
1067newCallback_Lookup_findLocator(const IceUtil::Handle<T>& instance, void (T::*cb)(), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
1068{
1069 return new CallbackNC_Lookup_findLocator<T>(instance, cb, excb, sentcb);
1070}
1071
1079template<class T> Callback_Lookup_findLocatorPtr
1080newCallback_Lookup_findLocator(const IceUtil::Handle<T>& instance, void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
1081{
1082 return new CallbackNC_Lookup_findLocator<T>(instance, 0, excb, sentcb);
1083}
1084
1093template<class T> Callback_Lookup_findLocatorPtr
1094newCallback_Lookup_findLocator(T* instance, void (T::*cb)(), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
1095{
1096 return new CallbackNC_Lookup_findLocator<T>(instance, cb, excb, sentcb);
1097}
1098
1106template<class T> Callback_Lookup_findLocatorPtr
1107newCallback_Lookup_findLocator(T* instance, void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
1108{
1109 return new CallbackNC_Lookup_findLocator<T>(instance, 0, excb, sentcb);
1110}
1111
1117template<class T, typename CT>
1118class Callback_Lookup_findLocator : public Callback_Lookup_findLocator_Base, public ::IceInternal::OnewayCallback<T, CT>
1119{
1120public:
1121
1122 typedef IceUtil::Handle<T> TPtr;
1123
1124 typedef void (T::*Exception)(const ::Ice::Exception& , const CT&);
1125 typedef void (T::*Sent)(bool , const CT&);
1126 typedef void (T::*Response)(const CT&);
1127
1128 Callback_Lookup_findLocator(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
1129 : ::IceInternal::OnewayCallback<T, CT>(obj, cb, excb, sentcb)
1130 {
1131 }
1132};
1133
1143template<class T, typename CT> Callback_Lookup_findLocatorPtr
1144newCallback_Lookup_findLocator(const IceUtil::Handle<T>& instance, void (T::*cb)(const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
1145{
1146 return new Callback_Lookup_findLocator<T, CT>(instance, cb, excb, sentcb);
1147}
1148
1157template<class T, typename CT> Callback_Lookup_findLocatorPtr
1158newCallback_Lookup_findLocator(const IceUtil::Handle<T>& instance, void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
1159{
1160 return new Callback_Lookup_findLocator<T, CT>(instance, 0, excb, sentcb);
1161}
1162
1172template<class T, typename CT> Callback_Lookup_findLocatorPtr
1173newCallback_Lookup_findLocator(T* instance, void (T::*cb)(const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
1174{
1175 return new Callback_Lookup_findLocator<T, CT>(instance, cb, excb, sentcb);
1176}
1177
1186template<class T, typename CT> Callback_Lookup_findLocatorPtr
1187newCallback_Lookup_findLocator(T* instance, void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
1188{
1189 return new Callback_Lookup_findLocator<T, CT>(instance, 0, excb, sentcb);
1190}
1191
1192}
1193
1194#endif
1195
1197#endif
The Ice lookup interface is implemented by Ice locator implementations and can be used by clients to ...
Definition IceLocatorDiscovery.h:280
auto findLocatorAsync(const ::std::string &instanceName, const ::std::shared_ptr< LookupReplyPrx > &reply, const ::Ice::Context &context=::Ice::noExplicitContext) -> decltype(::std::declval< P< void > >().get_future())
Find a locator proxy with the given instance name.
Definition IceLocatorDiscovery.h:306
static const ::std::string & ice_staticId()
Obtains the Slice type ID of this interface.
::std::function< void()> findLocatorAsync(const ::std::string &instanceName, const ::std::shared_ptr< LookupReplyPrx > &reply, ::std::function< void()> response, ::std::function< void(::std::exception_ptr)> ex=nullptr, ::std::function< void(bool)> sent=nullptr, const ::Ice::Context &context=::Ice::noExplicitContext)
Find a locator proxy with the given instance name.
Definition IceLocatorDiscovery.h:325
void findLocator(const ::std::string &instanceName, const ::std::shared_ptr< LookupReplyPrx > &reply, const ::Ice::Context &context=::Ice::noExplicitContext)
Find a locator proxy with the given instance name.
Definition IceLocatorDiscovery.h:291
The Ice lookup reply interface must be implemented by clients which are searching for Ice locators.
Definition IceLocatorDiscovery.h:200
void foundLocator(const ::std::shared_ptr<::Ice::LocatorPrx > &prx, const ::Ice::Context &context=::Ice::noExplicitContext)
This method is called by the implementation of the Lookup interface to reply to a findLocator request...
Definition IceLocatorDiscovery.h:209
::std::function< void()> foundLocatorAsync(const ::std::shared_ptr<::Ice::LocatorPrx > &prx, ::std::function< void()> response, ::std::function< void(::std::exception_ptr)> ex=nullptr, ::std::function< void(bool)> sent=nullptr, const ::Ice::Context &context=::Ice::noExplicitContext)
This method is called by the implementation of the Lookup interface to reply to a findLocator request...
Definition IceLocatorDiscovery.h:239
auto foundLocatorAsync(const ::std::shared_ptr<::Ice::LocatorPrx > &prx, const ::Ice::Context &context=::Ice::noExplicitContext) -> decltype(::std::declval< P< void > >().get_future())
This method is called by the implementation of the Lookup interface to reply to a findLocator request...
Definition IceLocatorDiscovery.h:222
static const ::std::string & ice_staticId()
Obtains the Slice type ID of this interface.
The Ice lookup reply interface must be implemented by clients which are searching for Ice locators.
Definition IceLocatorDiscovery.h:75
virtual::std::string ice_id(const ::Ice::Current &current) const override
Obtains a Slice type ID representing the most-derived interface supported by this object.
LookupReplyPrx ProxyType
Definition IceLocatorDiscovery.h:78
static const ::std::string & ice_staticId()
Obtains the Slice type ID corresponding to this class.
virtual ::std::vector<::std::string > ice_ids(const ::Ice::Current &current) const override
Obtains a list of the Slice type IDs representing the interfaces supported by this object.
virtual void foundLocator(::std::shared_ptr<::Ice::LocatorPrx > prx, const ::Ice::Current &current)=0
This method is called by the implementation of the Lookup interface to reply to a findLocator request...
virtual bool ice_isA(::std::string id, const ::Ice::Current &current) const override
Determines whether this object supports an interface with the given Slice type ID.
The Ice lookup interface is implemented by Ice locator implementations and can be used by clients to ...
Definition IceLocatorDiscovery.h:136
static const ::std::string & ice_staticId()
Obtains the Slice type ID corresponding to this class.
virtual::std::string ice_id(const ::Ice::Current &current) const override
Obtains a Slice type ID representing the most-derived interface supported by this object.
virtual bool ice_isA(::std::string id, const ::Ice::Current &current) const override
Determines whether this object supports an interface with the given Slice type ID.
virtual void findLocator(::std::string instanceName, ::std::shared_ptr< LookupReplyPrx > reply, const ::Ice::Current &current)=0
Find a locator proxy with the given instance name.
LookupPrx ProxyType
Definition IceLocatorDiscovery.h:139
virtual ::std::vector<::std::string > ice_ids(const ::Ice::Current &current) const override
Obtains a list of the Slice type IDs representing the interfaces supported by this object.
The base class for servants.
Definition Object.h:91
Helper template that supplies proxy factory functions.
Definition Proxy.h:1204
Definition IceLocatorDiscovery.h:55
Definition BuiltinSequences.h:56
const Context noExplicitContext
Marker value used to indicate that no explicit context was passed to a proxy invocation.
const Current emptyCurrent
A default-initialized Current instance.
bool operator<(const C &lhs, const C &rhs)
Relational operator for generated structs and classes.
Definition Comparable.h:136
bool operator==(const C &lhs, const C &rhs)
Relational operator for generated structs and classes.
Definition Comparable.h:184