Ice 3.7 C++11 API Reference
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.10
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>
33 #include <Ice/FactoryTableInit.h>
34 #include <IceUtil/ScopedArray.h>
35 #include <Ice/Optional.h>
36 #include <Ice/ExceptionHelpers.h>
37 #include <Ice/Locator.h>
38 #include <IceUtil/UndefSysMacros.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 < 10
48 # error Ice patch level mismatch!
49 # endif
50 #endif
51 
52 #ifdef ICE_CPP11_MAPPING // C++11 mapping
53 
55 {
56 
57 class LookupReply;
58 class LookupReplyPrx;
59 class Lookup;
60 class LookupPrx;
61 
62 }
63 
64 namespace IceLocatorDiscovery
65 {
66 
74 class LookupReply : public virtual ::Ice::Object
75 {
76 public:
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 
135 class Lookup : public virtual ::Ice::Object
136 {
137 public:
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 
189 namespace IceLocatorDiscovery
190 {
191 
199 class LookupReplyPrx : public virtual ::Ice::Proxy<LookupReplyPrx, ::Ice::ObjectPrx>
200 {
201 public:
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,
244  {
245  return _makeLamdaOutgoing<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 
258 protected:
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 
279 class LookupPrx : public virtual ::Ice::Proxy<LookupPrx, ::Ice::ObjectPrx>
280 {
281 public:
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,
330  {
331  return _makeLamdaOutgoing<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 
344 protected:
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 
357 namespace Ice
358 {
359 
360 }
362 
364 namespace IceLocatorDiscovery
365 {
366 
367 using LookupReplyPtr = ::std::shared_ptr<LookupReply>;
368 using LookupReplyPrxPtr = ::std::shared_ptr<LookupReplyPrx>;
369 
370 using LookupPtr = ::std::shared_ptr<Lookup>;
371 using LookupPrxPtr = ::std::shared_ptr<LookupPrx>;
372 
373 }
375 
376 #else // C++98 mapping
377 
378 namespace IceProxy
379 {
380 
381 namespace IceLocatorDiscovery
382 {
383 
384 class LookupReply;
386 void _readProxy(::Ice::InputStream*, ::IceInternal::ProxyHandle< LookupReply>&);
387 ::IceProxy::Ice::Object* upCast(LookupReply*);
389 
390 class Lookup;
392 void _readProxy(::Ice::InputStream*, ::IceInternal::ProxyHandle< Lookup>&);
393 ::IceProxy::Ice::Object* upCast(Lookup*);
395 
396 }
397 
398 }
399 
400 namespace IceLocatorDiscovery
401 {
402 
403 class LookupReply;
405 ::Ice::Object* upCast(LookupReply*);
407 typedef ::IceInternal::Handle< LookupReply> LookupReplyPtr;
408 typedef ::IceInternal::ProxyHandle< ::IceProxy::IceLocatorDiscovery::LookupReply> LookupReplyPrx;
409 typedef LookupReplyPrx LookupReplyPrxPtr;
411 void _icePatchObjectPtr(LookupReplyPtr&, const ::Ice::ObjectPtr&);
413 
414 class Lookup;
416 ::Ice::Object* upCast(Lookup*);
418 typedef ::IceInternal::Handle< Lookup> LookupPtr;
419 typedef ::IceInternal::ProxyHandle< ::IceProxy::IceLocatorDiscovery::Lookup> LookupPrx;
420 typedef LookupPrx LookupPrxPtr;
422 void _icePatchObjectPtr(LookupPtr&, const ::Ice::ObjectPtr&);
424 
425 }
426 
428 namespace IceAsync
429 {
430 
431 }
433 
434 namespace IceLocatorDiscovery
435 {
436 
442 class Callback_LookupReply_foundLocator_Base : public virtual ::IceInternal::CallbackBase { };
443 typedef ::IceUtil::Handle< Callback_LookupReply_foundLocator_Base> Callback_LookupReply_foundLocatorPtr;
444 
450 class Callback_Lookup_findLocator_Base : public virtual ::IceInternal::CallbackBase { };
451 typedef ::IceUtil::Handle< Callback_Lookup_findLocator_Base> Callback_Lookup_findLocatorPtr;
452 
453 }
454 
455 namespace IceProxy
456 {
457 
458 namespace IceLocatorDiscovery
459 {
460 
461 class LookupReply : public virtual ::Ice::Proxy<LookupReply, ::IceProxy::Ice::Object>
462 {
463 public:
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 
548 private:
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 
552 public:
553 
558  static const ::std::string& ice_staticId();
559 
560 protected:
562 
563  virtual ::IceProxy::Ice::Object* _newInstance() const;
565 };
566 
567 class Lookup : public virtual ::Ice::Proxy<Lookup, ::IceProxy::Ice::Object>
568 {
569 public:
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 
666 private:
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 
670 public:
671 
676  static const ::std::string& ice_staticId();
677 
678 protected:
680 
681  virtual ::IceProxy::Ice::Object* _newInstance() const;
683 };
684 
685 }
686 
687 }
688 
689 namespace IceLocatorDiscovery
690 {
691 
699 class LookupReply : public virtual ::Ice::Object
700 {
701 public:
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 
757 protected:
758 
760  virtual void _iceWriteImpl(::Ice::OutputStream*) const;
761  virtual void _iceReadImpl(::Ice::InputStream*);
763 };
764 
766 inline 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 
771 inline 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 
788 class Lookup : public virtual ::Ice::Object
789 {
790 public:
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 
848 protected:
849 
851  virtual void _iceWriteImpl(::Ice::OutputStream*) const;
852  virtual void _iceReadImpl(::Ice::InputStream*);
854 };
855 
857 inline 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 
862 inline 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 
871 namespace Ice
872 {
873 
874 }
876 
877 namespace IceLocatorDiscovery
878 {
879 
885 template<class T>
886 class CallbackNC_LookupReply_foundLocator : public Callback_LookupReply_foundLocator_Base, public ::IceInternal::OnewayCallbackNC<T>
887 {
888 public:
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 
910 template<class T> Callback_LookupReply_foundLocatorPtr
911 newCallback_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 
923 template<class T> Callback_LookupReply_foundLocatorPtr
924 newCallback_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 
937 template<class T> Callback_LookupReply_foundLocatorPtr
938 newCallback_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 
950 template<class T> Callback_LookupReply_foundLocatorPtr
951 newCallback_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 
961 template<class T, typename CT>
962 class Callback_LookupReply_foundLocator : public Callback_LookupReply_foundLocator_Base, public ::IceInternal::OnewayCallback<T, CT>
963 {
964 public:
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 
987 template<class T, typename CT> Callback_LookupReply_foundLocatorPtr
988 newCallback_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 
1001 template<class T, typename CT> Callback_LookupReply_foundLocatorPtr
1002 newCallback_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 
1016 template<class T, typename CT> Callback_LookupReply_foundLocatorPtr
1017 newCallback_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 
1030 template<class T, typename CT> Callback_LookupReply_foundLocatorPtr
1031 newCallback_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 
1041 template<class T>
1042 class CallbackNC_Lookup_findLocator : public Callback_Lookup_findLocator_Base, public ::IceInternal::OnewayCallbackNC<T>
1043 {
1044 public:
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 
1066 template<class T> Callback_Lookup_findLocatorPtr
1067 newCallback_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 
1079 template<class T> Callback_Lookup_findLocatorPtr
1080 newCallback_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 
1093 template<class T> Callback_Lookup_findLocatorPtr
1094 newCallback_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 
1106 template<class T> Callback_Lookup_findLocatorPtr
1107 newCallback_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 
1117 template<class T, typename CT>
1118 class Callback_Lookup_findLocator : public Callback_Lookup_findLocator_Base, public ::IceInternal::OnewayCallback<T, CT>
1119 {
1120 public:
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 
1143 template<class T, typename CT> Callback_Lookup_findLocatorPtr
1144 newCallback_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 
1157 template<class T, typename CT> Callback_Lookup_findLocatorPtr
1158 newCallback_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 
1172 template<class T, typename CT> Callback_Lookup_findLocatorPtr
1173 newCallback_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 
1186 template<class T, typename CT> Callback_Lookup_findLocatorPtr
1187 newCallback_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
IceLocatorDiscovery::LookupReplyPrx::foundLocator
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
Ice::LocalObjectPtr
IceInternal::Handle< LocalObject > LocalObjectPtr
Definition: LocalObjectF.h:17
Optional.h
IceLocatorDiscovery::LookupReply::ice_id
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.
IceLocatorDiscovery::LookupPrx::findLocatorAsync
::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
Ice::Context
::std::map<::std::string, ::std::string > Context
A request context.
Definition: Current.h:68
Ice::InputStream
Interface for input streams used to extract Slice types from a sequence of bytes.
Definition: InputStream.h:50
IceLocatorDiscovery
Definition: IceLocatorDiscovery.h:55
Ice::emptyCurrent
const Current emptyCurrent
A default-initialized Current instance.
IceLocatorDiscovery::Lookup::ice_isA
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.
StreamHelpers.h
IceLocatorDiscovery::Lookup::findLocator
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.
IceLocatorDiscovery::LookupReplyPrx::ice_staticId
static const ::std::string & ice_staticId()
Obtains the Slice type ID of this interface.
Ice::Object
The base class for servants.
Definition: Object.h:91
Ice::operator==
bool operator==(const C &lhs, const C &rhs)
Relational operator for generated structs and classes.
Definition: Comparable.h:184
Ice::Exception
IceUtil::Exception Exception
Definition: Exception.h:20
GCObject.h
Incoming.h
IceLocatorDiscovery::LookupReplyPrx::foundLocatorAsync
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
FactoryTableInit.h
IceLocatorDiscovery::LookupReply::ProxyType
LookupReplyPrx ProxyType
Definition: IceLocatorDiscovery.h:78
IceLocatorDiscovery::LookupPrx::findLocator
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
IceLocatorDiscovery::LookupReply
The Ice lookup reply interface must be implemented by clients which are searching for Ice locators.
Definition: IceLocatorDiscovery.h:75
IceLocatorDiscovery::Lookup
The Ice lookup interface is implemented by Ice locator implementations and can be used by clients to ...
Definition: IceLocatorDiscovery.h:136
IncomingAsync.h
IceLocatorDiscovery::Lookup::ice_id
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.
LocalObject.h
PushDisableWarnings.h
IceLocatorDiscovery::Lookup::ice_ids
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.
Locator.h
ProxyF.h
Ice::operator<
bool operator<(const C &lhs, const C &rhs)
Relational operator for generated structs and classes.
Definition: Comparable.h:136
IceLocatorDiscovery::LookupPrx
The Ice lookup interface is implemented by Ice locator implementations and can be used by clients to ...
Definition: IceLocatorDiscovery.h:280
IceLocatorDiscovery::Lookup::ProxyType
LookupPrx ProxyType
Definition: IceLocatorDiscovery.h:139
Object.h
Proxy.h
UndefSysMacros.h
IceLocatorDiscovery::LookupPrx::findLocatorAsync
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
Ice::OutputStream
Interface for output streams used to create a sequence of bytes from Slice types.
Definition: OutputStream.h:28
ObjectF.h
IceLocatorDiscovery::LookupReply::ice_staticId
static const ::std::string & ice_staticId()
Obtains the Slice type ID corresponding to this class.
IceLocatorDiscovery::LookupReply::foundLocator
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...
Ice
Definition: BuiltinSequences.h:56
IceLocatorDiscovery::LookupReply::ice_isA
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.
IceLocatorDiscovery::LookupReplyPrx::foundLocatorAsync
::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
IceUtil::Handle
Definition: Handle.h:143
IceLocatorDiscovery::LookupPrx::ice_staticId
static const ::std::string & ice_staticId()
Obtains the Slice type ID of this interface.
ExceptionHelpers.h
IceLocatorDiscovery::Lookup::ice_staticId
static const ::std::string & ice_staticId()
Obtains the Slice type ID corresponding to this class.
IceLocatorDiscovery::LookupReply::ice_ids
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.
Comparable.h
ScopedArray.h
Ice::Proxy
Helper template that supplies proxy factory functions.
Definition: Proxy.h:1204
Exception.h
ValueF.h
Ice::noExplicitContext
const Context noExplicitContext
Marker value used to indicate that no explicit context was passed to a proxy invocation.
Value.h
IceLocatorDiscovery::LookupReplyPrx
The Ice lookup reply interface must be implemented by clients which are searching for Ice locators.
Definition: IceLocatorDiscovery.h:200
PopDisableWarnings.h