Ice 3.7 C++98 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
54namespace IceLocatorDiscovery
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
139 using ProxyType = LookupPrx;
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
382{
383
384class LookupReply;
386void _readProxy(::Ice::InputStream*, ::IceInternal::ProxyHandle< LookupReply>&);
389
390class Lookup;
392void _readProxy(::Ice::InputStream*, ::IceInternal::ProxyHandle< Lookup>&);
395
396}
397
398}
399
401{
402
403class LookupReply;
405::Ice::Object* upCast(LookupReply*);
407typedef ::IceInternal::Handle< LookupReply> LookupReplyPtr;
408typedef ::IceInternal::ProxyHandle< ::IceProxy::IceLocatorDiscovery::LookupReply> LookupReplyPrx;
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;
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
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
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
891
892 typedef void (T::*Exception)(const ::Ice::Exception&);
893 typedef void (T::*Sent)(bool);
894 typedef void (T::*Response)();
895
897 : ::IceInternal::OnewayCallbackNC<T>(obj, cb, excb, sentcb)
898 {
899 }
900};
901
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
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
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
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
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
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
1047
1048 typedef void (T::*Exception)(const ::Ice::Exception&);
1049 typedef void (T::*Sent)(bool);
1050 typedef void (T::*Response)();
1051
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
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
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
Type-safe asynchronous callback wrapper class used for calls to IceProxy::IceLocatorDiscovery::Lookup...
Definition IceLocatorDiscovery.h:887
void(T::* Sent)(bool)
Definition IceLocatorDiscovery.h:893
void(T::* Response)()
Definition IceLocatorDiscovery.h:894
void(T::* Exception)(const ::Ice::Exception &)
Definition IceLocatorDiscovery.h:892
CallbackNC_LookupReply_foundLocator(const TPtr &obj, Response cb, Exception excb, Sent sentcb)
Definition IceLocatorDiscovery.h:896
IceUtil::Handle< T > TPtr
Definition IceLocatorDiscovery.h:890
Type-safe asynchronous callback wrapper class used for calls to IceProxy::IceLocatorDiscovery::Lookup...
Definition IceLocatorDiscovery.h:1043
CallbackNC_Lookup_findLocator(const TPtr &obj, Response cb, Exception excb, Sent sentcb)
Definition IceLocatorDiscovery.h:1052
void(T::* Sent)(bool)
Definition IceLocatorDiscovery.h:1049
void(T::* Response)()
Definition IceLocatorDiscovery.h:1050
IceUtil::Handle< T > TPtr
Definition IceLocatorDiscovery.h:1046
void(T::* Exception)(const ::Ice::Exception &)
Definition IceLocatorDiscovery.h:1048
Base class for asynchronous callback wrapper classes used for calls to IceProxy::IceLocatorDiscovery:...
Definition IceLocatorDiscovery.h:442
Type-safe asynchronous callback wrapper class with cookie support used for calls to IceProxy::IceLoca...
Definition IceLocatorDiscovery.h:963
Callback_LookupReply_foundLocator(const TPtr &obj, Response cb, Exception excb, Sent sentcb)
Definition IceLocatorDiscovery.h:972
void(T::* Response)(const CT &)
Definition IceLocatorDiscovery.h:970
void(T::* Sent)(bool, const CT &)
Definition IceLocatorDiscovery.h:969
IceUtil::Handle< T > TPtr
Definition IceLocatorDiscovery.h:966
void(T::* Exception)(const ::Ice::Exception &, const CT &)
Definition IceLocatorDiscovery.h:968
Base class for asynchronous callback wrapper classes used for calls to IceProxy::IceLocatorDiscovery:...
Definition IceLocatorDiscovery.h:450
Type-safe asynchronous callback wrapper class with cookie support used for calls to IceProxy::IceLoca...
Definition IceLocatorDiscovery.h:1119
void(T::* Response)(const CT &)
Definition IceLocatorDiscovery.h:1126
Callback_Lookup_findLocator(const TPtr &obj, Response cb, Exception excb, Sent sentcb)
Definition IceLocatorDiscovery.h:1128
void(T::* Sent)(bool, const CT &)
Definition IceLocatorDiscovery.h:1125
IceUtil::Handle< T > TPtr
Definition IceLocatorDiscovery.h:1122
void(T::* Exception)(const ::Ice::Exception &, const CT &)
Definition IceLocatorDiscovery.h:1124
The Ice lookup reply interface must be implemented by clients which are searching for Ice locators.
Definition IceLocatorDiscovery.h:700
virtual const ::std::string & ice_id(const ::Ice::Current &current=::Ice::emptyCurrent) const
Obtains a Slice type ID representing the most-derived interface supported by this object.
static const ::std::string & ice_staticId()
Obtains the Slice type ID corresponding to this class.
virtual bool ice_isA(const ::std::string &id, const ::Ice::Current &current=::Ice::emptyCurrent) const
Determines whether this object supports an interface with the given Slice type ID.
virtual ::std::vector< ::std::string > ice_ids(const ::Ice::Current &current=::Ice::emptyCurrent) const
Obtains a list of the Slice type IDs representing the interfaces supported by this object.
LookupReplyPrx ProxyType
Definition IceLocatorDiscovery.h:703
virtual void foundLocator(const ::Ice::LocatorPrx &prx, const ::Ice::Current &current=::Ice::emptyCurrent)=0
This method is called by the implementation of the Lookup interface to reply to a findLocator request...
LookupReplyPtr PointerType
Definition IceLocatorDiscovery.h:704
The Ice lookup interface is implemented by Ice locator implementations and can be used by clients to ...
Definition IceLocatorDiscovery.h:789
LookupPrx ProxyType
Definition IceLocatorDiscovery.h:792
virtual ::std::vector< ::std::string > ice_ids(const ::Ice::Current &current=::Ice::emptyCurrent) const
Obtains a list of the Slice type IDs representing the interfaces supported by this object.
virtual const ::std::string & ice_id(const ::Ice::Current &current=::Ice::emptyCurrent) const
Obtains a Slice type ID representing the most-derived interface supported by this object.
static const ::std::string & ice_staticId()
Obtains the Slice type ID corresponding to this class.
virtual bool ice_isA(const ::std::string &id, const ::Ice::Current &current=::Ice::emptyCurrent) const
Determines whether this object supports an interface with the given Slice type ID.
virtual void findLocator(const ::std::string &instanceName, const LookupReplyPrx &reply, const ::Ice::Current &current=::Ice::emptyCurrent)=0
Find a locator proxy with the given instance name.
LookupPtr PointerType
Definition IceLocatorDiscovery.h:793
Definition IceLocatorDiscovery.h:462
static const ::std::string & ice_staticId()
Obtains the Slice type ID corresponding to this interface.
void foundLocator(const ::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:471
::Ice::AsyncResultPtr begin_foundLocator(const ::Ice::LocatorPrx &prx, const ::Ice::Context &context, const ::Ice::CallbackPtr &cb, const ::Ice::LocalObjectPtr &cookie=0)
This method is called by the implementation of the Lookup interface to reply to a findLocator request...
Definition IceLocatorDiscovery.h:510
::Ice::AsyncResultPtr begin_foundLocator(const ::Ice::LocatorPrx &prx, const ::Ice::CallbackPtr &cb, const ::Ice::LocalObjectPtr &cookie=0)
This method is called by the implementation of the Lookup interface to reply to a findLocator request...
Definition IceLocatorDiscovery.h:496
::Ice::AsyncResultPtr begin_foundLocator(const ::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:483
void end_foundLocator(const ::Ice::AsyncResultPtr &result)
Completes an invocation of begin_foundLocator.
::Ice::AsyncResultPtr begin_foundLocator(const ::Ice::LocatorPrx &prx, const ::IceLocatorDiscovery::Callback_LookupReply_foundLocatorPtr &cb, const ::Ice::LocalObjectPtr &cookie=0)
This method is called by the implementation of the Lookup interface to reply to a findLocator request...
Definition IceLocatorDiscovery.h:523
::Ice::AsyncResultPtr begin_foundLocator(const ::Ice::LocatorPrx &prx, const ::Ice::Context &context, const ::IceLocatorDiscovery::Callback_LookupReply_foundLocatorPtr &cb, const ::Ice::LocalObjectPtr &cookie=0)
This method is called by the implementation of the Lookup interface to reply to a findLocator request...
Definition IceLocatorDiscovery.h:537
Definition IceLocatorDiscovery.h:568
::Ice::AsyncResultPtr begin_findLocator(const ::std::string &instanceName, const ::IceLocatorDiscovery::LookupReplyPrx &reply, const ::IceLocatorDiscovery::Callback_Lookup_findLocatorPtr &cb, const ::Ice::LocalObjectPtr &cookie=0)
Find a locator proxy with the given instance name.
Definition IceLocatorDiscovery.h:639
::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)
Find a locator proxy with the given instance name.
Definition IceLocatorDiscovery.h:655
void end_findLocator(const ::Ice::AsyncResultPtr &result)
Completes an invocation of begin_findLocator.
::Ice::AsyncResultPtr begin_findLocator(const ::std::string &instanceName, const ::IceLocatorDiscovery::LookupReplyPrx &reply, const ::Ice::CallbackPtr &cb, const ::Ice::LocalObjectPtr &cookie=0)
Find a locator proxy with the given instance name.
Definition IceLocatorDiscovery.h:608
void findLocator(const ::std::string &instanceName, const ::IceLocatorDiscovery::LookupReplyPrx &reply, const ::Ice::Context &context=::Ice::noExplicitContext)
Find a locator proxy with the given instance name.
Definition IceLocatorDiscovery.h:579
static const ::std::string & ice_staticId()
Obtains the Slice type ID corresponding to this interface.
::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)
Find a locator proxy with the given instance name.
Definition IceLocatorDiscovery.h:624
::Ice::AsyncResultPtr begin_findLocator(const ::std::string &instanceName, const ::IceLocatorDiscovery::LookupReplyPrx &reply, const ::Ice::Context &context=::Ice::noExplicitContext)
Find a locator proxy with the given instance name.
Definition IceLocatorDiscovery.h:593
Base class of all object proxies.
Definition Proxy.h:1757
Definition Handle.h:143
Shared & operator=(const Shared &)
Definition Shared.h:94
Interface for input streams used to extract Slice types from a sequence of bytes.
Definition InputStream.h:50
The base class for servants.
Definition Object.h:193
Interface for output streams used to create a sequence of bytes from Slice types.
Definition OutputStream.h:28
Helper template that supplies proxy factory functions.
Definition Proxy.h:2904
::IceInternal::ProxyHandle< ::IceProxy::IceDiscovery::LookupReply > LookupReplyPrx
Definition IceDiscovery.h:538
::IceInternal::ProxyHandle< ::IceProxy::IceDiscovery::Lookup > LookupPrx
Definition IceDiscovery.h:549
Definition IceLocatorDiscovery.h:401
::IceInternal::ProxyHandle< ::IceProxy::IceLocatorDiscovery::Lookup > LookupPrx
Definition IceLocatorDiscovery.h:419
::IceInternal::Handle< Lookup > LookupPtr
Definition IceLocatorDiscovery.h:418
LookupReplyPrx LookupReplyPrxPtr
Definition IceLocatorDiscovery.h:409
LookupPrx LookupPrxPtr
Definition IceLocatorDiscovery.h:420
::IceInternal::Handle< LookupReply > LookupReplyPtr
Definition IceLocatorDiscovery.h:407
::IceUtil::Handle< Callback_Lookup_findLocator_Base > Callback_Lookup_findLocatorPtr
Definition IceLocatorDiscovery.h:451
::IceInternal::ProxyHandle< ::IceProxy::IceLocatorDiscovery::LookupReply > LookupReplyPrx
Definition IceLocatorDiscovery.h:408
::IceUtil::Handle< Callback_LookupReply_foundLocator_Base > Callback_LookupReply_foundLocatorPtr
Definition IceLocatorDiscovery.h:443
Callback_Lookup_findLocatorPtr newCallback_Lookup_findLocator(const IceUtil::Handle< T > &instance, void(T::*cb)(), void(T::*excb)(const ::Ice::Exception &), void(T::*sentcb)(bool)=0)
Creates a callback wrapper instance that delegates to your object.
Definition IceLocatorDiscovery.h:1067
Callback_LookupReply_foundLocatorPtr newCallback_LookupReply_foundLocator(const IceUtil::Handle< T > &instance, void(T::*cb)(), void(T::*excb)(const ::Ice::Exception &), void(T::*sentcb)(bool)=0)
Creates a callback wrapper instance that delegates to your object.
Definition IceLocatorDiscovery.h:911
Definition Metrics.h:211
Definition BuiltinSequences.h:113
const Context noExplicitContext
Marker value used to indicate that no explicit context was passed to a proxy invocation.
Definition ProxyHandle.h:51
const Current emptyCurrent
A default-initialized Current instance.
IceInternal::Handle< AsyncResult > AsyncResultPtr
Definition AsyncResultF.h:18