Ice 3.7 C++11 API Reference
Locator.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 `Locator.ice'
10 //
11 // Warning: do not edit this file.
12 //
13 // </auto-generated>
14 //
15 
16 #ifndef __Ice_Locator_h__
17 #define __Ice_Locator_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/Identity.h>
38 #include <Ice/Process.h>
39 #include <IceUtil/UndefSysMacros.h>
40 
41 #ifndef ICE_IGNORE_VERSION
42 # if ICE_INT_VERSION / 100 != 307
43 # error Ice version mismatch!
44 # endif
45 # if ICE_INT_VERSION % 100 >= 50
46 # error Beta header file detected
47 # endif
48 # if ICE_INT_VERSION % 100 < 10
49 # error Ice patch level mismatch!
50 # endif
51 #endif
52 
53 #ifndef ICE_API
54 # if defined(ICE_STATIC_LIBS)
55 # define ICE_API
56 # elif defined(ICE_API_EXPORTS)
57 # define ICE_API ICE_DECLSPEC_EXPORT
58 # else
59 # define ICE_API ICE_DECLSPEC_IMPORT
60 # endif
61 #endif
62 
63 #ifdef ICE_CPP11_MAPPING // C++11 mapping
64 
65 namespace Ice
66 {
67 
68 class LocatorRegistry;
69 class LocatorRegistryPrx;
70 class Locator;
71 class LocatorPrx;
72 class LocatorFinder;
73 class LocatorFinderPrx;
74 
75 }
76 
77 namespace Ice
78 {
79 
84 class ICE_CLASS(ICE_API) AdapterNotFoundException : public UserExceptionHelper<AdapterNotFoundException, UserException>
85 {
86 public:
87 
89 
91 
93 
98  std::tuple<> ice_tuple() const
99  {
100  return std::tie();
101  }
102 
107  ICE_MEMBER(ICE_API) static const ::std::string& ice_staticId();
108 };
109 
111 static AdapterNotFoundException _iceS_AdapterNotFoundException_init;
113 
119 class ICE_CLASS(ICE_API) InvalidReplicaGroupIdException : public UserExceptionHelper<InvalidReplicaGroupIdException, UserException>
120 {
121 public:
122 
124 
126 
128 
133  std::tuple<> ice_tuple() const
134  {
135  return std::tie();
136  }
137 
142  ICE_MEMBER(ICE_API) static const ::std::string& ice_staticId();
143 };
144 
150 class ICE_CLASS(ICE_API) AdapterAlreadyActiveException : public UserExceptionHelper<AdapterAlreadyActiveException, UserException>
151 {
152 public:
153 
155 
157 
159 
164  std::tuple<> ice_tuple() const
165  {
166  return std::tie();
167  }
168 
173  ICE_MEMBER(ICE_API) static const ::std::string& ice_staticId();
174 };
175 
180 class ICE_CLASS(ICE_API) ObjectNotFoundException : public UserExceptionHelper<ObjectNotFoundException, UserException>
181 {
182 public:
183 
185 
187 
189 
194  std::tuple<> ice_tuple() const
195  {
196  return std::tie();
197  }
198 
203  ICE_MEMBER(ICE_API) static const ::std::string& ice_staticId();
204 };
205 
210 class ICE_CLASS(ICE_API) ServerNotFoundException : public UserExceptionHelper<ServerNotFoundException, UserException>
211 {
212 public:
213 
215 
217 
219 
224  std::tuple<> ice_tuple() const
225  {
226  return std::tie();
227  }
228 
233  ICE_MEMBER(ICE_API) static const ::std::string& ice_staticId();
234 };
235 
236 }
237 
238 namespace Ice
239 {
240 
252 class ICE_API Locator : public virtual Object
253 {
254 public:
255 
257 
264  virtual bool ice_isA(::std::string id, const Current& current) const override;
265 
271  virtual ::std::vector<::std::string> ice_ids(const Current& current) const override;
272 
278  virtual ::std::string ice_id(const Current& current) const override;
279 
284  static const ::std::string& ice_staticId();
285 
297  virtual void findObjectByIdAsync(Identity id, ::std::function<void(const ::std::shared_ptr<ObjectPrx>& returnValue)> response, ::std::function<void(::std::exception_ptr)> exception, const Current& current) const = 0;
299  bool _iceD_findObjectById(::IceInternal::Incoming&, const Current&) const;
301 
312  virtual void findAdapterByIdAsync(::std::string id, ::std::function<void(const ::std::shared_ptr<ObjectPrx>& returnValue)> response, ::std::function<void(::std::exception_ptr)> exception, const Current& current) const = 0;
314  bool _iceD_findAdapterById(::IceInternal::Incoming&, const Current&) const;
316 
322  virtual ::std::shared_ptr<LocatorRegistryPrx> getRegistry(const Current& current) const = 0;
324  bool _iceD_getRegistry(::IceInternal::Incoming&, const Current&) const;
326 
328  virtual bool _iceDispatch(::IceInternal::Incoming&, const Current&) override;
330 };
331 
342 class ICE_API LocatorRegistry : public virtual Object
343 {
344 public:
345 
347 
354  virtual bool ice_isA(::std::string id, const Current& current) const override;
355 
361  virtual ::std::vector<::std::string> ice_ids(const Current& current) const override;
362 
368  virtual ::std::string ice_id(const Current& current) const override;
369 
374  static const ::std::string& ice_staticId();
375 
392  virtual void setAdapterDirectProxyAsync(::std::string id, ::std::shared_ptr<ObjectPrx> proxy, ::std::function<void()> response, ::std::function<void(::std::exception_ptr)> exception, const Current& current) = 0;
394  bool _iceD_setAdapterDirectProxy(::IceInternal::Incoming&, const Current&);
396 
417  virtual void setReplicatedAdapterDirectProxyAsync(::std::string adapterId, ::std::string replicaGroupId, ::std::shared_ptr<ObjectPrx> p, ::std::function<void()> response, ::std::function<void(::std::exception_ptr)> exception, const Current& current) = 0;
419  bool _iceD_setReplicatedAdapterDirectProxy(::IceInternal::Incoming&, const Current&);
421 
432  virtual void setServerProcessProxyAsync(::std::string id, ::std::shared_ptr<ProcessPrx> proxy, ::std::function<void()> response, ::std::function<void(::std::exception_ptr)> exception, const Current& current) = 0;
434  bool _iceD_setServerProcessProxy(::IceInternal::Incoming&, const Current&);
436 
438  virtual bool _iceDispatch(::IceInternal::Incoming&, const Current&) override;
440 };
441 
450 class ICE_API LocatorFinder : public virtual Object
451 {
452 public:
453 
455 
462  virtual bool ice_isA(::std::string id, const Current& current) const override;
463 
469  virtual ::std::vector<::std::string> ice_ids(const Current& current) const override;
470 
476  virtual ::std::string ice_id(const Current& current) const override;
477 
482  static const ::std::string& ice_staticId();
483 
490  virtual ::std::shared_ptr<LocatorPrx> getLocator(const Current& current) = 0;
492  bool _iceD_getLocator(::IceInternal::Incoming&, const Current&);
494 
496  virtual bool _iceDispatch(::IceInternal::Incoming&, const Current&) override;
498 };
499 
500 }
501 
502 namespace Ice
503 {
504 
516 class ICE_CLASS(ICE_API) LocatorPrx : public virtual Proxy<LocatorPrx, ObjectPrx>
517 {
518 public:
519 
530  ::std::shared_ptr<ObjectPrx> findObjectById(const Identity& id, const Context& context = noExplicitContext)
531  {
532  return _makePromiseOutgoing<::std::shared_ptr<::Ice::ObjectPrx>>(true, this, &LocatorPrx::_iceI_findObjectById, id, context).get();
533  }
534 
543  template<template<typename> class P = ::std::promise>
544  auto findObjectByIdAsync(const Identity& id, const Context& context = noExplicitContext)
545  -> decltype(::std::declval<P<::std::shared_ptr<::Ice::ObjectPrx>>>().get_future())
546  {
547  return _makePromiseOutgoing<::std::shared_ptr<::Ice::ObjectPrx>, P>(false, this, &LocatorPrx::_iceI_findObjectById, id, context);
548  }
549 
561  ::std::function<void()>
563  ::std::function<void(::std::shared_ptr<::Ice::ObjectPrx>)> response,
564  ::std::function<void(::std::exception_ptr)> ex = nullptr,
565  ::std::function<void(bool)> sent = nullptr,
566  const Context& context = noExplicitContext)
567  {
568  return _makeLamdaOutgoing<::std::shared_ptr<::Ice::ObjectPrx>>(std::move(response), std::move(ex), std::move(sent), this, &Ice::LocatorPrx::_iceI_findObjectById, id, context);
569  }
570 
572  ICE_MEMBER(ICE_API) void _iceI_findObjectById(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::std::shared_ptr<::Ice::ObjectPrx>>>&, const Identity&, const Context&);
574 
584  ::std::shared_ptr<ObjectPrx> findAdapterById(const ::std::string& id, const Context& context = noExplicitContext)
585  {
586  return _makePromiseOutgoing<::std::shared_ptr<::Ice::ObjectPrx>>(true, this, &LocatorPrx::_iceI_findAdapterById, id, context).get();
587  }
588 
596  template<template<typename> class P = ::std::promise>
597  auto findAdapterByIdAsync(const ::std::string& id, const Context& context = noExplicitContext)
598  -> decltype(::std::declval<P<::std::shared_ptr<::Ice::ObjectPrx>>>().get_future())
599  {
600  return _makePromiseOutgoing<::std::shared_ptr<::Ice::ObjectPrx>, P>(false, this, &LocatorPrx::_iceI_findAdapterById, id, context);
601  }
602 
613  ::std::function<void()>
614  findAdapterByIdAsync(const ::std::string& id,
615  ::std::function<void(::std::shared_ptr<::Ice::ObjectPrx>)> response,
616  ::std::function<void(::std::exception_ptr)> ex = nullptr,
617  ::std::function<void(bool)> sent = nullptr,
618  const Context& context = noExplicitContext)
619  {
620  return _makeLamdaOutgoing<::std::shared_ptr<::Ice::ObjectPrx>>(std::move(response), std::move(ex), std::move(sent), this, &Ice::LocatorPrx::_iceI_findAdapterById, id, context);
621  }
622 
624  ICE_MEMBER(ICE_API) void _iceI_findAdapterById(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::std::shared_ptr<::Ice::ObjectPrx>>>&, const ::std::string&, const Context&);
626 
632  ::std::shared_ptr<LocatorRegistryPrx> getRegistry(const Context& context = noExplicitContext)
633  {
634  return _makePromiseOutgoing<::std::shared_ptr<::Ice::LocatorRegistryPrx>>(true, this, &LocatorPrx::_iceI_getRegistry, context).get();
635  }
636 
642  template<template<typename> class P = ::std::promise>
644  -> decltype(::std::declval<P<::std::shared_ptr<::Ice::LocatorRegistryPrx>>>().get_future())
645  {
646  return _makePromiseOutgoing<::std::shared_ptr<::Ice::LocatorRegistryPrx>, P>(false, this, &LocatorPrx::_iceI_getRegistry, context);
647  }
648 
657  ::std::function<void()>
658  getRegistryAsync(::std::function<void(::std::shared_ptr<::Ice::LocatorRegistryPrx>)> response,
659  ::std::function<void(::std::exception_ptr)> ex = nullptr,
660  ::std::function<void(bool)> sent = nullptr,
661  const Context& context = noExplicitContext)
662  {
663  return _makeLamdaOutgoing<::std::shared_ptr<::Ice::LocatorRegistryPrx>>(std::move(response), std::move(ex), std::move(sent), this, &Ice::LocatorPrx::_iceI_getRegistry, context);
664  }
665 
667  ICE_MEMBER(ICE_API) void _iceI_getRegistry(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::std::shared_ptr<::Ice::LocatorRegistryPrx>>>&, const Context&);
669 
674  ICE_MEMBER(ICE_API) static const ::std::string& ice_staticId();
675 
676 protected:
677 
679  LocatorPrx() = default;
680  friend ::std::shared_ptr<LocatorPrx> IceInternal::createProxy<LocatorPrx>();
681 
682  ICE_MEMBER(ICE_API) virtual ::std::shared_ptr<ObjectPrx> _newInstance() const override;
684 };
685 
696 class ICE_CLASS(ICE_API) LocatorRegistryPrx : public virtual Proxy<LocatorRegistryPrx, ObjectPrx>
697 {
698 public:
699 
714  void setAdapterDirectProxy(const ::std::string& id, const ::std::shared_ptr<ObjectPrx>& proxy, const Context& context = noExplicitContext)
715  {
716  _makePromiseOutgoing<void>(true, this, &LocatorRegistryPrx::_iceI_setAdapterDirectProxy, id, proxy, context).get();
717  }
718 
728  template<template<typename> class P = ::std::promise>
729  auto setAdapterDirectProxyAsync(const ::std::string& id, const ::std::shared_ptr<ObjectPrx>& proxy, const Context& context = noExplicitContext)
730  -> decltype(::std::declval<P<void>>().get_future())
731  {
732  return _makePromiseOutgoing<void, P>(false, this, &LocatorRegistryPrx::_iceI_setAdapterDirectProxy, id, proxy, context);
733  }
734 
747  ::std::function<void()>
748  setAdapterDirectProxyAsync(const ::std::string& id, const ::std::shared_ptr<ObjectPrx>& proxy,
749  ::std::function<void()> response,
750  ::std::function<void(::std::exception_ptr)> ex = nullptr,
751  ::std::function<void(bool)> sent = nullptr,
752  const Context& context = noExplicitContext)
753  {
754  return _makeLamdaOutgoing<void>(std::move(response), std::move(ex), std::move(sent), this, &Ice::LocatorRegistryPrx::_iceI_setAdapterDirectProxy, id, proxy, context);
755  }
756 
758  ICE_MEMBER(ICE_API) void _iceI_setAdapterDirectProxy(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<void>>&, const ::std::string&, const ::std::shared_ptr<ObjectPrx>&, const Context&);
760 
779  void setReplicatedAdapterDirectProxy(const ::std::string& adapterId, const ::std::string& replicaGroupId, const ::std::shared_ptr<ObjectPrx>& p, const Context& context = noExplicitContext)
780  {
781  _makePromiseOutgoing<void>(true, this, &LocatorRegistryPrx::_iceI_setReplicatedAdapterDirectProxy, adapterId, replicaGroupId, p, context).get();
782  }
783 
794  template<template<typename> class P = ::std::promise>
795  auto setReplicatedAdapterDirectProxyAsync(const ::std::string& adapterId, const ::std::string& replicaGroupId, const ::std::shared_ptr<ObjectPrx>& p, const Context& context = noExplicitContext)
796  -> decltype(::std::declval<P<void>>().get_future())
797  {
798  return _makePromiseOutgoing<void, P>(false, this, &LocatorRegistryPrx::_iceI_setReplicatedAdapterDirectProxy, adapterId, replicaGroupId, p, context);
799  }
800 
814  ::std::function<void()>
815  setReplicatedAdapterDirectProxyAsync(const ::std::string& adapterId, const ::std::string& replicaGroupId, const ::std::shared_ptr<ObjectPrx>& p,
816  ::std::function<void()> response,
817  ::std::function<void(::std::exception_ptr)> ex = nullptr,
818  ::std::function<void(bool)> sent = nullptr,
819  const Context& context = noExplicitContext)
820  {
821  return _makeLamdaOutgoing<void>(std::move(response), std::move(ex), std::move(sent), this, &Ice::LocatorRegistryPrx::_iceI_setReplicatedAdapterDirectProxy, adapterId, replicaGroupId, p, context);
822  }
823 
825  ICE_MEMBER(ICE_API) void _iceI_setReplicatedAdapterDirectProxy(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<void>>&, const ::std::string&, const ::std::string&, const ::std::shared_ptr<ObjectPrx>&, const Context&);
827 
836  void setServerProcessProxy(const ::std::string& id, const ::std::shared_ptr<ProcessPrx>& proxy, const Context& context = noExplicitContext)
837  {
838  _makePromiseOutgoing<void>(true, this, &LocatorRegistryPrx::_iceI_setServerProcessProxy, id, proxy, context).get();
839  }
840 
848  template<template<typename> class P = ::std::promise>
849  auto setServerProcessProxyAsync(const ::std::string& id, const ::std::shared_ptr<ProcessPrx>& proxy, const Context& context = noExplicitContext)
850  -> decltype(::std::declval<P<void>>().get_future())
851  {
852  return _makePromiseOutgoing<void, P>(false, this, &LocatorRegistryPrx::_iceI_setServerProcessProxy, id, proxy, context);
853  }
854 
865  ::std::function<void()>
866  setServerProcessProxyAsync(const ::std::string& id, const ::std::shared_ptr<ProcessPrx>& proxy,
867  ::std::function<void()> response,
868  ::std::function<void(::std::exception_ptr)> ex = nullptr,
869  ::std::function<void(bool)> sent = nullptr,
870  const Context& context = noExplicitContext)
871  {
872  return _makeLamdaOutgoing<void>(std::move(response), std::move(ex), std::move(sent), this, &Ice::LocatorRegistryPrx::_iceI_setServerProcessProxy, id, proxy, context);
873  }
874 
876  ICE_MEMBER(ICE_API) void _iceI_setServerProcessProxy(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<void>>&, const ::std::string&, const ::std::shared_ptr<ProcessPrx>&, const Context&);
878 
883  ICE_MEMBER(ICE_API) static const ::std::string& ice_staticId();
884 
885 protected:
886 
888  LocatorRegistryPrx() = default;
889  friend ::std::shared_ptr<LocatorRegistryPrx> IceInternal::createProxy<LocatorRegistryPrx>();
890 
891  ICE_MEMBER(ICE_API) virtual ::std::shared_ptr<ObjectPrx> _newInstance() const override;
893 };
894 
903 class ICE_CLASS(ICE_API) LocatorFinderPrx : public virtual Proxy<LocatorFinderPrx, ObjectPrx>
904 {
905 public:
906 
913  ::std::shared_ptr<LocatorPrx> getLocator(const Context& context = noExplicitContext)
914  {
915  return _makePromiseOutgoing<::std::shared_ptr<::Ice::LocatorPrx>>(true, this, &LocatorFinderPrx::_iceI_getLocator, context).get();
916  }
917 
924  template<template<typename> class P = ::std::promise>
926  -> decltype(::std::declval<P<::std::shared_ptr<::Ice::LocatorPrx>>>().get_future())
927  {
928  return _makePromiseOutgoing<::std::shared_ptr<::Ice::LocatorPrx>, P>(false, this, &LocatorFinderPrx::_iceI_getLocator, context);
929  }
930 
940  ::std::function<void()>
941  getLocatorAsync(::std::function<void(::std::shared_ptr<::Ice::LocatorPrx>)> response,
942  ::std::function<void(::std::exception_ptr)> ex = nullptr,
943  ::std::function<void(bool)> sent = nullptr,
944  const Context& context = noExplicitContext)
945  {
946  return _makeLamdaOutgoing<::std::shared_ptr<::Ice::LocatorPrx>>(std::move(response), std::move(ex), std::move(sent), this, &Ice::LocatorFinderPrx::_iceI_getLocator, context);
947  }
948 
950  ICE_MEMBER(ICE_API) void _iceI_getLocator(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::std::shared_ptr<::Ice::LocatorPrx>>>&, const Context&);
952 
957  ICE_MEMBER(ICE_API) static const ::std::string& ice_staticId();
958 
959 protected:
960 
962  LocatorFinderPrx() = default;
963  friend ::std::shared_ptr<LocatorFinderPrx> IceInternal::createProxy<LocatorFinderPrx>();
964 
965  ICE_MEMBER(ICE_API) virtual ::std::shared_ptr<ObjectPrx> _newInstance() const override;
967 };
968 
969 }
970 
972 namespace Ice
973 {
974 
975 }
977 
979 namespace Ice
980 {
981 
982 using LocatorRegistryPtr = ::std::shared_ptr<LocatorRegistry>;
983 using LocatorRegistryPrxPtr = ::std::shared_ptr<LocatorRegistryPrx>;
984 
985 using LocatorPtr = ::std::shared_ptr<Locator>;
986 using LocatorPrxPtr = ::std::shared_ptr<LocatorPrx>;
987 
988 using LocatorFinderPtr = ::std::shared_ptr<LocatorFinder>;
989 using LocatorFinderPrxPtr = ::std::shared_ptr<LocatorFinderPrx>;
990 
991 }
993 
994 #else // C++98 mapping
995 
996 namespace IceProxy
997 {
998 
999 namespace Ice
1000 {
1001 
1002 class LocatorRegistry;
1004 ICE_API void _readProxy(::Ice::InputStream*, ::IceInternal::ProxyHandle< LocatorRegistry>&);
1005 ICE_API ::IceProxy::Ice::Object* upCast(LocatorRegistry*);
1007 
1008 class Locator;
1010 ICE_API void _readProxy(::Ice::InputStream*, ::IceInternal::ProxyHandle< Locator>&);
1011 ICE_API ::IceProxy::Ice::Object* upCast(Locator*);
1013 
1014 class LocatorFinder;
1016 ICE_API void _readProxy(::Ice::InputStream*, ::IceInternal::ProxyHandle< LocatorFinder>&);
1017 ICE_API ::IceProxy::Ice::Object* upCast(LocatorFinder*);
1019 
1020 }
1021 
1022 }
1023 
1024 namespace Ice
1025 {
1026 
1027 class LocatorRegistry;
1029 ICE_API Object* upCast(LocatorRegistry*);
1031 typedef ::IceInternal::Handle< LocatorRegistry> LocatorRegistryPtr;
1032 typedef ::IceInternal::ProxyHandle< ::IceProxy::Ice::LocatorRegistry> LocatorRegistryPrx;
1033 typedef LocatorRegistryPrx LocatorRegistryPrxPtr;
1035 ICE_API void _icePatchObjectPtr(LocatorRegistryPtr&, const ObjectPtr&);
1037 
1038 class Locator;
1040 ICE_API Object* upCast(Locator*);
1042 typedef ::IceInternal::Handle< Locator> LocatorPtr;
1043 typedef ::IceInternal::ProxyHandle< ::IceProxy::Ice::Locator> LocatorPrx;
1044 typedef LocatorPrx LocatorPrxPtr;
1046 ICE_API void _icePatchObjectPtr(LocatorPtr&, const ObjectPtr&);
1048 
1049 class LocatorFinder;
1051 ICE_API Object* upCast(LocatorFinder*);
1053 typedef ::IceInternal::Handle< LocatorFinder> LocatorFinderPtr;
1054 typedef ::IceInternal::ProxyHandle< ::IceProxy::Ice::LocatorFinder> LocatorFinderPrx;
1055 typedef LocatorFinderPrx LocatorFinderPrxPtr;
1057 ICE_API void _icePatchObjectPtr(LocatorFinderPtr&, const ObjectPtr&);
1059 
1060 }
1061 
1062 namespace Ice
1063 {
1064 
1069 class ICE_API AdapterNotFoundException : public UserException
1070 {
1071 public:
1072 
1073  AdapterNotFoundException() {}
1074 
1075 #ifdef ICE_CPP11_COMPILER
1076  AdapterNotFoundException(const AdapterNotFoundException&) = default;
1077  virtual ~AdapterNotFoundException();
1078 #else
1079  virtual ~AdapterNotFoundException() throw();
1080 #endif
1081 
1086  virtual ::std::string ice_id() const;
1091  virtual AdapterNotFoundException* ice_clone() const;
1095  virtual void ice_throw() const;
1096 
1097 protected:
1098 
1100  virtual void _writeImpl(OutputStream*) const;
1101  virtual void _readImpl(InputStream*);
1103 };
1104 
1106 static AdapterNotFoundException _iceS_AdapterNotFoundException_init;
1108 
1114 class ICE_API InvalidReplicaGroupIdException : public UserException
1115 {
1116 public:
1117 
1118  InvalidReplicaGroupIdException() {}
1119 
1120 #ifdef ICE_CPP11_COMPILER
1121  InvalidReplicaGroupIdException(const InvalidReplicaGroupIdException&) = default;
1122  virtual ~InvalidReplicaGroupIdException();
1123 #else
1124  virtual ~InvalidReplicaGroupIdException() throw();
1125 #endif
1126 
1131  virtual ::std::string ice_id() const;
1136  virtual InvalidReplicaGroupIdException* ice_clone() const;
1140  virtual void ice_throw() const;
1141 
1142 protected:
1143 
1145  virtual void _writeImpl(OutputStream*) const;
1146  virtual void _readImpl(InputStream*);
1148 };
1149 
1155 class ICE_API AdapterAlreadyActiveException : public UserException
1156 {
1157 public:
1158 
1159  AdapterAlreadyActiveException() {}
1160 
1161 #ifdef ICE_CPP11_COMPILER
1162  AdapterAlreadyActiveException(const AdapterAlreadyActiveException&) = default;
1163  virtual ~AdapterAlreadyActiveException();
1164 #else
1165  virtual ~AdapterAlreadyActiveException() throw();
1166 #endif
1167 
1172  virtual ::std::string ice_id() const;
1177  virtual AdapterAlreadyActiveException* ice_clone() const;
1181  virtual void ice_throw() const;
1182 
1183 protected:
1184 
1186  virtual void _writeImpl(OutputStream*) const;
1187  virtual void _readImpl(InputStream*);
1189 };
1190 
1195 class ICE_API ObjectNotFoundException : public UserException
1196 {
1197 public:
1198 
1199  ObjectNotFoundException() {}
1200 
1201 #ifdef ICE_CPP11_COMPILER
1202  ObjectNotFoundException(const ObjectNotFoundException&) = default;
1203  virtual ~ObjectNotFoundException();
1204 #else
1205  virtual ~ObjectNotFoundException() throw();
1206 #endif
1207 
1212  virtual ::std::string ice_id() const;
1217  virtual ObjectNotFoundException* ice_clone() const;
1221  virtual void ice_throw() const;
1222 
1223 protected:
1224 
1226  virtual void _writeImpl(OutputStream*) const;
1227  virtual void _readImpl(InputStream*);
1229 };
1230 
1235 class ICE_API ServerNotFoundException : public UserException
1236 {
1237 public:
1238 
1239  ServerNotFoundException() {}
1240 
1241 #ifdef ICE_CPP11_COMPILER
1242  ServerNotFoundException(const ServerNotFoundException&) = default;
1243  virtual ~ServerNotFoundException();
1244 #else
1245  virtual ~ServerNotFoundException() throw();
1246 #endif
1247 
1252  virtual ::std::string ice_id() const;
1257  virtual ServerNotFoundException* ice_clone() const;
1261  virtual void ice_throw() const;
1262 
1263 protected:
1264 
1266  virtual void _writeImpl(OutputStream*) const;
1267  virtual void _readImpl(InputStream*);
1269 };
1270 
1271 }
1272 
1273 namespace Ice
1274 {
1275 
1281 class ICE_API AMD_Locator_findObjectById : public virtual AMDCallback
1282 {
1283 public:
1284 
1285  virtual ~AMD_Locator_findObjectById();
1286 
1291  virtual void ice_response(const ObjectPrx& result) = 0;
1292 };
1293 
1294 typedef ::IceUtil::Handle< ::Ice::AMD_Locator_findObjectById> AMD_Locator_findObjectByIdPtr;
1295 
1301 class ICE_API AMD_Locator_findAdapterById : public virtual AMDCallback
1302 {
1303 public:
1304 
1305  virtual ~AMD_Locator_findAdapterById();
1306 
1311  virtual void ice_response(const ObjectPrx& result) = 0;
1312 };
1313 
1314 typedef ::IceUtil::Handle< ::Ice::AMD_Locator_findAdapterById> AMD_Locator_findAdapterByIdPtr;
1315 
1321 class ICE_API AMD_LocatorRegistry_setAdapterDirectProxy : public virtual AMDCallback
1322 {
1323 public:
1324 
1325  virtual ~AMD_LocatorRegistry_setAdapterDirectProxy();
1326 
1330  virtual void ice_response() = 0;
1331 };
1332 
1333 typedef ::IceUtil::Handle< ::Ice::AMD_LocatorRegistry_setAdapterDirectProxy> AMD_LocatorRegistry_setAdapterDirectProxyPtr;
1334 
1340 class ICE_API AMD_LocatorRegistry_setReplicatedAdapterDirectProxy : public virtual AMDCallback
1341 {
1342 public:
1343 
1344  virtual ~AMD_LocatorRegistry_setReplicatedAdapterDirectProxy();
1345 
1349  virtual void ice_response() = 0;
1350 };
1351 
1352 typedef ::IceUtil::Handle< ::Ice::AMD_LocatorRegistry_setReplicatedAdapterDirectProxy> AMD_LocatorRegistry_setReplicatedAdapterDirectProxyPtr;
1353 
1359 class ICE_API AMD_LocatorRegistry_setServerProcessProxy : public virtual AMDCallback
1360 {
1361 public:
1362 
1363  virtual ~AMD_LocatorRegistry_setServerProcessProxy();
1364 
1368  virtual void ice_response() = 0;
1369 };
1370 
1371 typedef ::IceUtil::Handle< ::Ice::AMD_LocatorRegistry_setServerProcessProxy> AMD_LocatorRegistry_setServerProcessProxyPtr;
1372 
1373 }
1374 
1376 namespace IceAsync
1377 {
1378 
1379 namespace Ice
1380 {
1381 
1382 #if defined(_MSC_VER) && (_MSC_VER >= 1900)
1383 # pragma warning(push)
1384 # pragma warning(disable:4239)
1385 #endif
1386 
1387 class ICE_API AMD_Locator_findObjectById : public ::Ice::AMD_Locator_findObjectById, public ::IceInternal::IncomingAsync
1388 {
1389 public:
1390 
1391  AMD_Locator_findObjectById(::IceInternal::Incoming&);
1392 
1393  virtual void ice_response(const ::Ice::ObjectPrx&);
1394 };
1395 
1396 #if defined(_MSC_VER) && (_MSC_VER >= 1900)
1397 # pragma warning(pop)
1398 #endif
1399 
1400 #if defined(_MSC_VER) && (_MSC_VER >= 1900)
1401 # pragma warning(push)
1402 # pragma warning(disable:4239)
1403 #endif
1404 
1405 class ICE_API AMD_Locator_findAdapterById : public ::Ice::AMD_Locator_findAdapterById, public ::IceInternal::IncomingAsync
1406 {
1407 public:
1408 
1409  AMD_Locator_findAdapterById(::IceInternal::Incoming&);
1410 
1411  virtual void ice_response(const ::Ice::ObjectPrx&);
1412 };
1413 
1414 #if defined(_MSC_VER) && (_MSC_VER >= 1900)
1415 # pragma warning(pop)
1416 #endif
1417 
1418 #if defined(_MSC_VER) && (_MSC_VER >= 1900)
1419 # pragma warning(push)
1420 # pragma warning(disable:4239)
1421 #endif
1422 
1423 class ICE_API AMD_LocatorRegistry_setAdapterDirectProxy : public ::Ice::AMD_LocatorRegistry_setAdapterDirectProxy, public ::IceInternal::IncomingAsync
1424 {
1425 public:
1426 
1427  AMD_LocatorRegistry_setAdapterDirectProxy(::IceInternal::Incoming&);
1428 
1429  virtual void ice_response();
1430 };
1431 
1432 #if defined(_MSC_VER) && (_MSC_VER >= 1900)
1433 # pragma warning(pop)
1434 #endif
1435 
1436 #if defined(_MSC_VER) && (_MSC_VER >= 1900)
1437 # pragma warning(push)
1438 # pragma warning(disable:4239)
1439 #endif
1440 
1441 class ICE_API AMD_LocatorRegistry_setReplicatedAdapterDirectProxy : public ::Ice::AMD_LocatorRegistry_setReplicatedAdapterDirectProxy, public ::IceInternal::IncomingAsync
1442 {
1443 public:
1444 
1445  AMD_LocatorRegistry_setReplicatedAdapterDirectProxy(::IceInternal::Incoming&);
1446 
1447  virtual void ice_response();
1448 };
1449 
1450 #if defined(_MSC_VER) && (_MSC_VER >= 1900)
1451 # pragma warning(pop)
1452 #endif
1453 
1454 #if defined(_MSC_VER) && (_MSC_VER >= 1900)
1455 # pragma warning(push)
1456 # pragma warning(disable:4239)
1457 #endif
1458 
1459 class ICE_API AMD_LocatorRegistry_setServerProcessProxy : public ::Ice::AMD_LocatorRegistry_setServerProcessProxy, public ::IceInternal::IncomingAsync
1460 {
1461 public:
1462 
1463  AMD_LocatorRegistry_setServerProcessProxy(::IceInternal::Incoming&);
1464 
1465  virtual void ice_response();
1466 };
1467 
1468 #if defined(_MSC_VER) && (_MSC_VER >= 1900)
1469 # pragma warning(pop)
1470 #endif
1471 
1472 }
1473 
1474 }
1476 
1477 namespace Ice
1478 {
1479 
1485 class Callback_Locator_findObjectById_Base : public virtual ::IceInternal::CallbackBase { };
1486 typedef ::IceUtil::Handle< Callback_Locator_findObjectById_Base> Callback_Locator_findObjectByIdPtr;
1487 
1493 class Callback_Locator_findAdapterById_Base : public virtual ::IceInternal::CallbackBase { };
1494 typedef ::IceUtil::Handle< Callback_Locator_findAdapterById_Base> Callback_Locator_findAdapterByIdPtr;
1495 
1501 class Callback_Locator_getRegistry_Base : public virtual ::IceInternal::CallbackBase { };
1502 typedef ::IceUtil::Handle< Callback_Locator_getRegistry_Base> Callback_Locator_getRegistryPtr;
1503 
1509 class Callback_LocatorRegistry_setAdapterDirectProxy_Base : public virtual ::IceInternal::CallbackBase { };
1510 typedef ::IceUtil::Handle< Callback_LocatorRegistry_setAdapterDirectProxy_Base> Callback_LocatorRegistry_setAdapterDirectProxyPtr;
1511 
1517 class Callback_LocatorRegistry_setReplicatedAdapterDirectProxy_Base : public virtual ::IceInternal::CallbackBase { };
1518 typedef ::IceUtil::Handle< Callback_LocatorRegistry_setReplicatedAdapterDirectProxy_Base> Callback_LocatorRegistry_setReplicatedAdapterDirectProxyPtr;
1519 
1525 class Callback_LocatorRegistry_setServerProcessProxy_Base : public virtual ::IceInternal::CallbackBase { };
1526 typedef ::IceUtil::Handle< Callback_LocatorRegistry_setServerProcessProxy_Base> Callback_LocatorRegistry_setServerProcessProxyPtr;
1527 
1533 class Callback_LocatorFinder_getLocator_Base : public virtual ::IceInternal::CallbackBase { };
1534 typedef ::IceUtil::Handle< Callback_LocatorFinder_getLocator_Base> Callback_LocatorFinder_getLocatorPtr;
1535 
1536 }
1537 
1538 namespace IceProxy
1539 {
1540 
1541 namespace Ice
1542 {
1543 
1544 class ICE_CLASS(ICE_API) Locator : public virtual ::Ice::Proxy<Locator, ::IceProxy::Ice::Object>
1545 {
1546 public:
1547 
1558  ICE_MEMBER(ICE_API) ::Ice::ObjectPrx findObjectById(const ::Ice::Identity& id, const ::Ice::Context& context = ::Ice::noExplicitContext)
1559  {
1560  return end_findObjectById(_iceI_begin_findObjectById(id, context, ::IceInternal::dummyCallback, 0, true));
1561  }
1562 
1571  ::Ice::AsyncResultPtr begin_findObjectById(const ::Ice::Identity& id, const ::Ice::Context& context = ::Ice::noExplicitContext)
1572  {
1573  return _iceI_begin_findObjectById(id, context, ::IceInternal::dummyCallback, 0);
1574  }
1575 
1585  ::Ice::AsyncResultPtr begin_findObjectById(const ::Ice::Identity& id, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1586  {
1587  return _iceI_begin_findObjectById(id, ::Ice::noExplicitContext, cb, cookie);
1588  }
1589 
1600  ::Ice::AsyncResultPtr begin_findObjectById(const ::Ice::Identity& id, const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1601  {
1602  return _iceI_begin_findObjectById(id, context, cb, cookie);
1603  }
1604 
1614  ::Ice::AsyncResultPtr begin_findObjectById(const ::Ice::Identity& id, const ::Ice::Callback_Locator_findObjectByIdPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1615  {
1616  return _iceI_begin_findObjectById(id, ::Ice::noExplicitContext, cb, cookie);
1617  }
1618 
1629  ::Ice::AsyncResultPtr begin_findObjectById(const ::Ice::Identity& id, const ::Ice::Context& context, const ::Ice::Callback_Locator_findObjectByIdPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1630  {
1631  return _iceI_begin_findObjectById(id, context, cb, cookie);
1632  }
1633 
1641  ICE_MEMBER(ICE_API) ::Ice::ObjectPrx end_findObjectById(const ::Ice::AsyncResultPtr& result);
1642 
1643 private:
1644 
1645  ICE_MEMBER(ICE_API) ::Ice::AsyncResultPtr _iceI_begin_findObjectById(const ::Ice::Identity&, const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0, bool sync = false);
1646 
1647 public:
1648 
1658  ICE_MEMBER(ICE_API) ::Ice::ObjectPrx findAdapterById(const ::std::string& id, const ::Ice::Context& context = ::Ice::noExplicitContext)
1659  {
1660  return end_findAdapterById(_iceI_begin_findAdapterById(id, context, ::IceInternal::dummyCallback, 0, true));
1661  }
1662 
1670  ::Ice::AsyncResultPtr begin_findAdapterById(const ::std::string& id, const ::Ice::Context& context = ::Ice::noExplicitContext)
1671  {
1672  return _iceI_begin_findAdapterById(id, context, ::IceInternal::dummyCallback, 0);
1673  }
1674 
1683  ::Ice::AsyncResultPtr begin_findAdapterById(const ::std::string& id, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1684  {
1685  return _iceI_begin_findAdapterById(id, ::Ice::noExplicitContext, cb, cookie);
1686  }
1687 
1697  ::Ice::AsyncResultPtr begin_findAdapterById(const ::std::string& id, const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1698  {
1699  return _iceI_begin_findAdapterById(id, context, cb, cookie);
1700  }
1701 
1710  ::Ice::AsyncResultPtr begin_findAdapterById(const ::std::string& id, const ::Ice::Callback_Locator_findAdapterByIdPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1711  {
1712  return _iceI_begin_findAdapterById(id, ::Ice::noExplicitContext, cb, cookie);
1713  }
1714 
1724  ::Ice::AsyncResultPtr begin_findAdapterById(const ::std::string& id, const ::Ice::Context& context, const ::Ice::Callback_Locator_findAdapterByIdPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1725  {
1726  return _iceI_begin_findAdapterById(id, context, cb, cookie);
1727  }
1728 
1736  ICE_MEMBER(ICE_API) ::Ice::ObjectPrx end_findAdapterById(const ::Ice::AsyncResultPtr& result);
1737 
1738 private:
1739 
1740  ICE_MEMBER(ICE_API) ::Ice::AsyncResultPtr _iceI_begin_findAdapterById(const ::std::string&, const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0, bool sync = false);
1741 
1742 public:
1743 
1749  ICE_MEMBER(ICE_API) ::Ice::LocatorRegistryPrx getRegistry(const ::Ice::Context& context = ::Ice::noExplicitContext)
1750  {
1751  return end_getRegistry(_iceI_begin_getRegistry(context, ::IceInternal::dummyCallback, 0, true));
1752  }
1753 
1759  ::Ice::AsyncResultPtr begin_getRegistry(const ::Ice::Context& context = ::Ice::noExplicitContext)
1760  {
1761  return _iceI_begin_getRegistry(context, ::IceInternal::dummyCallback, 0);
1762  }
1763 
1770  ::Ice::AsyncResultPtr begin_getRegistry(const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1771  {
1772  return _iceI_begin_getRegistry(::Ice::noExplicitContext, cb, cookie);
1773  }
1774 
1782  ::Ice::AsyncResultPtr begin_getRegistry(const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1783  {
1784  return _iceI_begin_getRegistry(context, cb, cookie);
1785  }
1786 
1793  ::Ice::AsyncResultPtr begin_getRegistry(const ::Ice::Callback_Locator_getRegistryPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1794  {
1795  return _iceI_begin_getRegistry(::Ice::noExplicitContext, cb, cookie);
1796  }
1797 
1805  ::Ice::AsyncResultPtr begin_getRegistry(const ::Ice::Context& context, const ::Ice::Callback_Locator_getRegistryPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1806  {
1807  return _iceI_begin_getRegistry(context, cb, cookie);
1808  }
1809 
1815  ICE_MEMBER(ICE_API) ::Ice::LocatorRegistryPrx end_getRegistry(const ::Ice::AsyncResultPtr& result);
1816 
1817 private:
1818 
1819  ICE_MEMBER(ICE_API) ::Ice::AsyncResultPtr _iceI_begin_getRegistry(const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0, bool sync = false);
1820 
1821 public:
1822 
1827  ICE_MEMBER(ICE_API) static const ::std::string& ice_staticId();
1828 
1829 protected:
1831 
1832  ICE_MEMBER(ICE_API) virtual ::IceProxy::Ice::Object* _newInstance() const;
1834 };
1835 
1836 class ICE_CLASS(ICE_API) LocatorRegistry : public virtual ::Ice::Proxy<LocatorRegistry, ::IceProxy::Ice::Object>
1837 {
1838 public:
1839 
1854  ICE_MEMBER(ICE_API) void setAdapterDirectProxy(const ::std::string& id, const ::Ice::ObjectPrx& proxy, const ::Ice::Context& context = ::Ice::noExplicitContext)
1855  {
1856  end_setAdapterDirectProxy(_iceI_begin_setAdapterDirectProxy(id, proxy, context, ::IceInternal::dummyCallback, 0, true));
1857  }
1858 
1868  ::Ice::AsyncResultPtr begin_setAdapterDirectProxy(const ::std::string& id, const ::Ice::ObjectPrx& proxy, const ::Ice::Context& context = ::Ice::noExplicitContext)
1869  {
1870  return _iceI_begin_setAdapterDirectProxy(id, proxy, context, ::IceInternal::dummyCallback, 0);
1871  }
1872 
1883  ::Ice::AsyncResultPtr begin_setAdapterDirectProxy(const ::std::string& id, const ::Ice::ObjectPrx& proxy, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1884  {
1885  return _iceI_begin_setAdapterDirectProxy(id, proxy, ::Ice::noExplicitContext, cb, cookie);
1886  }
1887 
1899  ::Ice::AsyncResultPtr begin_setAdapterDirectProxy(const ::std::string& id, const ::Ice::ObjectPrx& proxy, const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1900  {
1901  return _iceI_begin_setAdapterDirectProxy(id, proxy, context, cb, cookie);
1902  }
1903 
1914  ::Ice::AsyncResultPtr begin_setAdapterDirectProxy(const ::std::string& id, const ::Ice::ObjectPrx& proxy, const ::Ice::Callback_LocatorRegistry_setAdapterDirectProxyPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1915  {
1916  return _iceI_begin_setAdapterDirectProxy(id, proxy, ::Ice::noExplicitContext, cb, cookie);
1917  }
1918 
1930  ::Ice::AsyncResultPtr begin_setAdapterDirectProxy(const ::std::string& id, const ::Ice::ObjectPrx& proxy, const ::Ice::Context& context, const ::Ice::Callback_LocatorRegistry_setAdapterDirectProxyPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1931  {
1932  return _iceI_begin_setAdapterDirectProxy(id, proxy, context, cb, cookie);
1933  }
1934 
1945  ICE_MEMBER(ICE_API) void end_setAdapterDirectProxy(const ::Ice::AsyncResultPtr& result);
1946 
1947 private:
1948 
1949  ICE_MEMBER(ICE_API) ::Ice::AsyncResultPtr _iceI_begin_setAdapterDirectProxy(const ::std::string&, const ::Ice::ObjectPrx&, const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0, bool sync = false);
1950 
1951 public:
1952 
1971  ICE_MEMBER(ICE_API) void setReplicatedAdapterDirectProxy(const ::std::string& adapterId, const ::std::string& replicaGroupId, const ::Ice::ObjectPrx& p, const ::Ice::Context& context = ::Ice::noExplicitContext)
1972  {
1973  end_setReplicatedAdapterDirectProxy(_iceI_begin_setReplicatedAdapterDirectProxy(adapterId, replicaGroupId, p, context, ::IceInternal::dummyCallback, 0, true));
1974  }
1975 
1986  ::Ice::AsyncResultPtr begin_setReplicatedAdapterDirectProxy(const ::std::string& adapterId, const ::std::string& replicaGroupId, const ::Ice::ObjectPrx& p, const ::Ice::Context& context = ::Ice::noExplicitContext)
1987  {
1988  return _iceI_begin_setReplicatedAdapterDirectProxy(adapterId, replicaGroupId, p, context, ::IceInternal::dummyCallback, 0);
1989  }
1990 
2002  ::Ice::AsyncResultPtr begin_setReplicatedAdapterDirectProxy(const ::std::string& adapterId, const ::std::string& replicaGroupId, const ::Ice::ObjectPrx& p, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
2003  {
2004  return _iceI_begin_setReplicatedAdapterDirectProxy(adapterId, replicaGroupId, p, ::Ice::noExplicitContext, cb, cookie);
2005  }
2006 
2019  ::Ice::AsyncResultPtr begin_setReplicatedAdapterDirectProxy(const ::std::string& adapterId, const ::std::string& replicaGroupId, const ::Ice::ObjectPrx& p, const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
2020  {
2021  return _iceI_begin_setReplicatedAdapterDirectProxy(adapterId, replicaGroupId, p, context, cb, cookie);
2022  }
2023 
2035  ::Ice::AsyncResultPtr begin_setReplicatedAdapterDirectProxy(const ::std::string& adapterId, const ::std::string& replicaGroupId, const ::Ice::ObjectPrx& p, const ::Ice::Callback_LocatorRegistry_setReplicatedAdapterDirectProxyPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
2036  {
2037  return _iceI_begin_setReplicatedAdapterDirectProxy(adapterId, replicaGroupId, p, ::Ice::noExplicitContext, cb, cookie);
2038  }
2039 
2052  ::Ice::AsyncResultPtr begin_setReplicatedAdapterDirectProxy(const ::std::string& adapterId, const ::std::string& replicaGroupId, const ::Ice::ObjectPrx& p, const ::Ice::Context& context, const ::Ice::Callback_LocatorRegistry_setReplicatedAdapterDirectProxyPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
2053  {
2054  return _iceI_begin_setReplicatedAdapterDirectProxy(adapterId, replicaGroupId, p, context, cb, cookie);
2055  }
2056 
2070  ICE_MEMBER(ICE_API) void end_setReplicatedAdapterDirectProxy(const ::Ice::AsyncResultPtr& result);
2071 
2072 private:
2073 
2074  ICE_MEMBER(ICE_API) ::Ice::AsyncResultPtr _iceI_begin_setReplicatedAdapterDirectProxy(const ::std::string&, const ::std::string&, const ::Ice::ObjectPrx&, const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0, bool sync = false);
2075 
2076 public:
2077 
2086  ICE_MEMBER(ICE_API) void setServerProcessProxy(const ::std::string& id, const ::Ice::ProcessPrx& proxy, const ::Ice::Context& context = ::Ice::noExplicitContext)
2087  {
2088  end_setServerProcessProxy(_iceI_begin_setServerProcessProxy(id, proxy, context, ::IceInternal::dummyCallback, 0, true));
2089  }
2090 
2098  ::Ice::AsyncResultPtr begin_setServerProcessProxy(const ::std::string& id, const ::Ice::ProcessPrx& proxy, const ::Ice::Context& context = ::Ice::noExplicitContext)
2099  {
2100  return _iceI_begin_setServerProcessProxy(id, proxy, context, ::IceInternal::dummyCallback, 0);
2101  }
2102 
2111  ::Ice::AsyncResultPtr begin_setServerProcessProxy(const ::std::string& id, const ::Ice::ProcessPrx& proxy, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
2112  {
2113  return _iceI_begin_setServerProcessProxy(id, proxy, ::Ice::noExplicitContext, cb, cookie);
2114  }
2115 
2125  ::Ice::AsyncResultPtr begin_setServerProcessProxy(const ::std::string& id, const ::Ice::ProcessPrx& proxy, const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
2126  {
2127  return _iceI_begin_setServerProcessProxy(id, proxy, context, cb, cookie);
2128  }
2129 
2138  ::Ice::AsyncResultPtr begin_setServerProcessProxy(const ::std::string& id, const ::Ice::ProcessPrx& proxy, const ::Ice::Callback_LocatorRegistry_setServerProcessProxyPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
2139  {
2140  return _iceI_begin_setServerProcessProxy(id, proxy, ::Ice::noExplicitContext, cb, cookie);
2141  }
2142 
2152  ::Ice::AsyncResultPtr begin_setServerProcessProxy(const ::std::string& id, const ::Ice::ProcessPrx& proxy, const ::Ice::Context& context, const ::Ice::Callback_LocatorRegistry_setServerProcessProxyPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
2153  {
2154  return _iceI_begin_setServerProcessProxy(id, proxy, context, cb, cookie);
2155  }
2156 
2163  ICE_MEMBER(ICE_API) void end_setServerProcessProxy(const ::Ice::AsyncResultPtr& result);
2164 
2165 private:
2166 
2167  ICE_MEMBER(ICE_API) ::Ice::AsyncResultPtr _iceI_begin_setServerProcessProxy(const ::std::string&, const ::Ice::ProcessPrx&, const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0, bool sync = false);
2168 
2169 public:
2170 
2175  ICE_MEMBER(ICE_API) static const ::std::string& ice_staticId();
2176 
2177 protected:
2179 
2180  ICE_MEMBER(ICE_API) virtual ::IceProxy::Ice::Object* _newInstance() const;
2182 };
2183 
2184 class ICE_CLASS(ICE_API) LocatorFinder : public virtual ::Ice::Proxy<LocatorFinder, ::IceProxy::Ice::Object>
2185 {
2186 public:
2187 
2194  ICE_MEMBER(ICE_API) ::Ice::LocatorPrx getLocator(const ::Ice::Context& context = ::Ice::noExplicitContext)
2195  {
2196  return end_getLocator(_iceI_begin_getLocator(context, ::IceInternal::dummyCallback, 0, true));
2197  }
2198 
2205  ::Ice::AsyncResultPtr begin_getLocator(const ::Ice::Context& context = ::Ice::noExplicitContext)
2206  {
2207  return _iceI_begin_getLocator(context, ::IceInternal::dummyCallback, 0);
2208  }
2209 
2217  ::Ice::AsyncResultPtr begin_getLocator(const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
2218  {
2219  return _iceI_begin_getLocator(::Ice::noExplicitContext, cb, cookie);
2220  }
2221 
2230  ::Ice::AsyncResultPtr begin_getLocator(const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
2231  {
2232  return _iceI_begin_getLocator(context, cb, cookie);
2233  }
2234 
2242  ::Ice::AsyncResultPtr begin_getLocator(const ::Ice::Callback_LocatorFinder_getLocatorPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
2243  {
2244  return _iceI_begin_getLocator(::Ice::noExplicitContext, cb, cookie);
2245  }
2246 
2255  ::Ice::AsyncResultPtr begin_getLocator(const ::Ice::Context& context, const ::Ice::Callback_LocatorFinder_getLocatorPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
2256  {
2257  return _iceI_begin_getLocator(context, cb, cookie);
2258  }
2259 
2265  ICE_MEMBER(ICE_API) ::Ice::LocatorPrx end_getLocator(const ::Ice::AsyncResultPtr& result);
2266 
2267 private:
2268 
2269  ICE_MEMBER(ICE_API) ::Ice::AsyncResultPtr _iceI_begin_getLocator(const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0, bool sync = false);
2270 
2271 public:
2272 
2277  ICE_MEMBER(ICE_API) static const ::std::string& ice_staticId();
2278 
2279 protected:
2281 
2282  ICE_MEMBER(ICE_API) virtual ::IceProxy::Ice::Object* _newInstance() const;
2284 };
2285 
2286 }
2287 
2288 }
2289 
2290 namespace Ice
2291 {
2292 
2304 class ICE_API Locator : public virtual Object
2305 {
2306 public:
2307 
2308  typedef LocatorPrx ProxyType;
2309  typedef LocatorPtr PointerType;
2310 
2311  virtual ~Locator();
2312 
2313 #ifdef ICE_CPP11_COMPILER
2314  Locator() = default;
2315  Locator(const Locator&) = default;
2316  Locator& operator=(const Locator&) = default;
2317 #endif
2318 
2325  virtual bool ice_isA(const ::std::string& id, const Current& current = emptyCurrent) const;
2326 
2332  virtual ::std::vector< ::std::string> ice_ids(const Current& current = emptyCurrent) const;
2333 
2339  virtual const ::std::string& ice_id(const Current& current = emptyCurrent) const;
2340 
2345  static const ::std::string& ice_staticId();
2346 
2357  virtual void findObjectById_async(const ::Ice::AMD_Locator_findObjectByIdPtr& cb, const Identity& id, const Current& current = emptyCurrent) const = 0;
2359  bool _iceD_findObjectById(::IceInternal::Incoming&, const ::Ice::Current&) const;
2361 
2371  virtual void findAdapterById_async(const ::Ice::AMD_Locator_findAdapterByIdPtr& cb, const ::std::string& id, const Current& current = emptyCurrent) const = 0;
2373  bool _iceD_findAdapterById(::IceInternal::Incoming&, const ::Ice::Current&) const;
2375 
2381  virtual LocatorRegistryPrx getRegistry(const Current& current = emptyCurrent) const = 0;
2383  bool _iceD_getRegistry(::IceInternal::Incoming&, const ::Ice::Current&) const;
2385 
2387  virtual bool _iceDispatch(::IceInternal::Incoming&, const Current&);
2389 
2390 protected:
2391 
2393  virtual void _iceWriteImpl(OutputStream*) const;
2394  virtual void _iceReadImpl(InputStream*);
2396 };
2397 
2399 inline bool operator==(const Locator& lhs, const Locator& rhs)
2400 {
2401  return static_cast<const Object&>(lhs) == static_cast<const Object&>(rhs);
2402 }
2403 
2404 inline bool operator<(const Locator& lhs, const Locator& rhs)
2405 {
2406  return static_cast<const Object&>(lhs) < static_cast<const Object&>(rhs);
2407 }
2409 
2420 class ICE_API LocatorRegistry : public virtual Object
2421 {
2422 public:
2423 
2424  typedef LocatorRegistryPrx ProxyType;
2425  typedef LocatorRegistryPtr PointerType;
2426 
2427  virtual ~LocatorRegistry();
2428 
2429 #ifdef ICE_CPP11_COMPILER
2430  LocatorRegistry() = default;
2431  LocatorRegistry(const LocatorRegistry&) = default;
2432  LocatorRegistry& operator=(const LocatorRegistry&) = default;
2433 #endif
2434 
2441  virtual bool ice_isA(const ::std::string& id, const Current& current = emptyCurrent) const;
2442 
2448  virtual ::std::vector< ::std::string> ice_ids(const Current& current = emptyCurrent) const;
2449 
2455  virtual const ::std::string& ice_id(const Current& current = emptyCurrent) const;
2456 
2461  static const ::std::string& ice_staticId();
2462 
2478  virtual void setAdapterDirectProxy_async(const ::Ice::AMD_LocatorRegistry_setAdapterDirectProxyPtr& cb, const ::std::string& id, const ObjectPrx& proxy, const Current& current = emptyCurrent) = 0;
2480  bool _iceD_setAdapterDirectProxy(::IceInternal::Incoming&, const ::Ice::Current&);
2482 
2502  virtual void setReplicatedAdapterDirectProxy_async(const ::Ice::AMD_LocatorRegistry_setReplicatedAdapterDirectProxyPtr& cb, const ::std::string& adapterId, const ::std::string& replicaGroupId, const ObjectPrx& p, const Current& current = emptyCurrent) = 0;
2504  bool _iceD_setReplicatedAdapterDirectProxy(::IceInternal::Incoming&, const ::Ice::Current&);
2506 
2516  virtual void setServerProcessProxy_async(const ::Ice::AMD_LocatorRegistry_setServerProcessProxyPtr& cb, const ::std::string& id, const ProcessPrx& proxy, const Current& current = emptyCurrent) = 0;
2518  bool _iceD_setServerProcessProxy(::IceInternal::Incoming&, const ::Ice::Current&);
2520 
2522  virtual bool _iceDispatch(::IceInternal::Incoming&, const Current&);
2524 
2525 protected:
2526 
2528  virtual void _iceWriteImpl(OutputStream*) const;
2529  virtual void _iceReadImpl(InputStream*);
2531 };
2532 
2534 inline bool operator==(const LocatorRegistry& lhs, const LocatorRegistry& rhs)
2535 {
2536  return static_cast<const Object&>(lhs) == static_cast<const Object&>(rhs);
2537 }
2538 
2539 inline bool operator<(const LocatorRegistry& lhs, const LocatorRegistry& rhs)
2540 {
2541  return static_cast<const Object&>(lhs) < static_cast<const Object&>(rhs);
2542 }
2544 
2553 class ICE_API LocatorFinder : public virtual Object
2554 {
2555 public:
2556 
2557  typedef LocatorFinderPrx ProxyType;
2558  typedef LocatorFinderPtr PointerType;
2559 
2560  virtual ~LocatorFinder();
2561 
2562 #ifdef ICE_CPP11_COMPILER
2563  LocatorFinder() = default;
2564  LocatorFinder(const LocatorFinder&) = default;
2565  LocatorFinder& operator=(const LocatorFinder&) = default;
2566 #endif
2567 
2574  virtual bool ice_isA(const ::std::string& id, const Current& current = emptyCurrent) const;
2575 
2581  virtual ::std::vector< ::std::string> ice_ids(const Current& current = emptyCurrent) const;
2582 
2588  virtual const ::std::string& ice_id(const Current& current = emptyCurrent) const;
2589 
2594  static const ::std::string& ice_staticId();
2595 
2602  virtual LocatorPrx getLocator(const Current& current = emptyCurrent) = 0;
2604  bool _iceD_getLocator(::IceInternal::Incoming&, const ::Ice::Current&);
2606 
2608  virtual bool _iceDispatch(::IceInternal::Incoming&, const Current&);
2610 
2611 protected:
2612 
2614  virtual void _iceWriteImpl(OutputStream*) const;
2615  virtual void _iceReadImpl(InputStream*);
2617 };
2618 
2620 inline bool operator==(const LocatorFinder& lhs, const LocatorFinder& rhs)
2621 {
2622  return static_cast<const Object&>(lhs) == static_cast<const Object&>(rhs);
2623 }
2624 
2625 inline bool operator<(const LocatorFinder& lhs, const LocatorFinder& rhs)
2626 {
2627  return static_cast<const Object&>(lhs) < static_cast<const Object&>(rhs);
2628 }
2630 
2631 }
2632 
2634 namespace Ice
2635 {
2636 
2637 template<>
2638 struct StreamableTraits< ::Ice::AdapterNotFoundException>
2639 {
2640  static const StreamHelperCategory helper = StreamHelperCategoryUserException;
2641 };
2642 
2643 template<>
2644 struct StreamableTraits< ::Ice::InvalidReplicaGroupIdException>
2645 {
2646  static const StreamHelperCategory helper = StreamHelperCategoryUserException;
2647 };
2648 
2649 template<>
2650 struct StreamableTraits< ::Ice::AdapterAlreadyActiveException>
2651 {
2652  static const StreamHelperCategory helper = StreamHelperCategoryUserException;
2653 };
2654 
2655 template<>
2656 struct StreamableTraits< ::Ice::ObjectNotFoundException>
2657 {
2658  static const StreamHelperCategory helper = StreamHelperCategoryUserException;
2659 };
2660 
2661 template<>
2662 struct StreamableTraits< ::Ice::ServerNotFoundException>
2663 {
2664  static const StreamHelperCategory helper = StreamHelperCategoryUserException;
2665 };
2666 
2667 }
2669 
2670 namespace Ice
2671 {
2672 
2678 template<class T>
2679 class CallbackNC_Locator_findObjectById : public Callback_Locator_findObjectById_Base, public ::IceInternal::TwowayCallbackNC<T>
2680 {
2681 public:
2682 
2683  typedef IceUtil::Handle<T> TPtr;
2684 
2685  typedef void (T::*Exception)(const ::Ice::Exception&);
2686  typedef void (T::*Sent)(bool);
2687  typedef void (T::*Response)(const ObjectPrx&);
2688 
2689  CallbackNC_Locator_findObjectById(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
2690  : ::IceInternal::TwowayCallbackNC<T>(obj, cb != 0, excb, sentcb), _response(cb)
2691  {
2692  }
2693 
2695  virtual void completed(const AsyncResultPtr& result) const
2696  {
2697  LocatorPrx proxy = LocatorPrx::uncheckedCast(result->getProxy());
2698  ObjectPrx ret;
2699  try
2700  {
2701  ret = proxy->end_findObjectById(result);
2702  }
2703  catch(const ::Ice::Exception& ex)
2704  {
2705  ::IceInternal::CallbackNC<T>::exception(result, ex);
2706  return;
2707  }
2708  if(_response)
2709  {
2710  (::IceInternal::CallbackNC<T>::_callback.get()->*_response)(ret);
2711  }
2712  }
2714 
2715 private:
2716 
2717  Response _response;
2718 };
2719 
2728 template<class T> Callback_Locator_findObjectByIdPtr
2729 newCallback_Locator_findObjectById(const IceUtil::Handle<T>& instance, void (T::*cb)(const ObjectPrx&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
2730 {
2731  return new CallbackNC_Locator_findObjectById<T>(instance, cb, excb, sentcb);
2732 }
2733 
2742 template<class T> Callback_Locator_findObjectByIdPtr
2743 newCallback_Locator_findObjectById(T* instance, void (T::*cb)(const ObjectPrx&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
2744 {
2745  return new CallbackNC_Locator_findObjectById<T>(instance, cb, excb, sentcb);
2746 }
2747 
2753 template<class T, typename CT>
2754 class Callback_Locator_findObjectById : public Callback_Locator_findObjectById_Base, public ::IceInternal::TwowayCallback<T, CT>
2755 {
2756 public:
2757 
2758  typedef IceUtil::Handle<T> TPtr;
2759 
2760  typedef void (T::*Exception)(const ::Ice::Exception& , const CT&);
2761  typedef void (T::*Sent)(bool , const CT&);
2762  typedef void (T::*Response)(const ObjectPrx&, const CT&);
2763 
2764  Callback_Locator_findObjectById(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
2765  : ::IceInternal::TwowayCallback<T, CT>(obj, cb != 0, excb, sentcb), _response(cb)
2766  {
2767  }
2768 
2770  virtual void completed(const AsyncResultPtr& result) const
2771  {
2772  LocatorPrx proxy = LocatorPrx::uncheckedCast(result->getProxy());
2773  ObjectPrx ret;
2774  try
2775  {
2776  ret = proxy->end_findObjectById(result);
2777  }
2778  catch(const ::Ice::Exception& ex)
2779  {
2780  ::IceInternal::Callback<T, CT>::exception(result, ex);
2781  return;
2782  }
2783  if(_response)
2784  {
2785  (::IceInternal::Callback<T, CT>::_callback.get()->*_response)(ret, CT::dynamicCast(result->getCookie()));
2786  }
2787  }
2789 
2790 private:
2791 
2792  Response _response;
2793 };
2794 
2804 template<class T, typename CT> Callback_Locator_findObjectByIdPtr
2805 newCallback_Locator_findObjectById(const IceUtil::Handle<T>& instance, void (T::*cb)(const ObjectPrx&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
2806 {
2807  return new Callback_Locator_findObjectById<T, CT>(instance, cb, excb, sentcb);
2808 }
2809 
2819 template<class T, typename CT> Callback_Locator_findObjectByIdPtr
2820 newCallback_Locator_findObjectById(T* instance, void (T::*cb)(const ObjectPrx&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
2821 {
2822  return new Callback_Locator_findObjectById<T, CT>(instance, cb, excb, sentcb);
2823 }
2824 
2830 template<class T>
2831 class CallbackNC_Locator_findAdapterById : public Callback_Locator_findAdapterById_Base, public ::IceInternal::TwowayCallbackNC<T>
2832 {
2833 public:
2834 
2835  typedef IceUtil::Handle<T> TPtr;
2836 
2837  typedef void (T::*Exception)(const ::Ice::Exception&);
2838  typedef void (T::*Sent)(bool);
2839  typedef void (T::*Response)(const ObjectPrx&);
2840 
2841  CallbackNC_Locator_findAdapterById(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
2842  : ::IceInternal::TwowayCallbackNC<T>(obj, cb != 0, excb, sentcb), _response(cb)
2843  {
2844  }
2845 
2847  virtual void completed(const AsyncResultPtr& result) const
2848  {
2849  LocatorPrx proxy = LocatorPrx::uncheckedCast(result->getProxy());
2850  ObjectPrx ret;
2851  try
2852  {
2853  ret = proxy->end_findAdapterById(result);
2854  }
2855  catch(const ::Ice::Exception& ex)
2856  {
2857  ::IceInternal::CallbackNC<T>::exception(result, ex);
2858  return;
2859  }
2860  if(_response)
2861  {
2862  (::IceInternal::CallbackNC<T>::_callback.get()->*_response)(ret);
2863  }
2864  }
2866 
2867 private:
2868 
2869  Response _response;
2870 };
2871 
2880 template<class T> Callback_Locator_findAdapterByIdPtr
2881 newCallback_Locator_findAdapterById(const IceUtil::Handle<T>& instance, void (T::*cb)(const ObjectPrx&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
2882 {
2883  return new CallbackNC_Locator_findAdapterById<T>(instance, cb, excb, sentcb);
2884 }
2885 
2894 template<class T> Callback_Locator_findAdapterByIdPtr
2895 newCallback_Locator_findAdapterById(T* instance, void (T::*cb)(const ObjectPrx&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
2896 {
2897  return new CallbackNC_Locator_findAdapterById<T>(instance, cb, excb, sentcb);
2898 }
2899 
2905 template<class T, typename CT>
2906 class Callback_Locator_findAdapterById : public Callback_Locator_findAdapterById_Base, public ::IceInternal::TwowayCallback<T, CT>
2907 {
2908 public:
2909 
2910  typedef IceUtil::Handle<T> TPtr;
2911 
2912  typedef void (T::*Exception)(const ::Ice::Exception& , const CT&);
2913  typedef void (T::*Sent)(bool , const CT&);
2914  typedef void (T::*Response)(const ObjectPrx&, const CT&);
2915 
2916  Callback_Locator_findAdapterById(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
2917  : ::IceInternal::TwowayCallback<T, CT>(obj, cb != 0, excb, sentcb), _response(cb)
2918  {
2919  }
2920 
2922  virtual void completed(const AsyncResultPtr& result) const
2923  {
2924  LocatorPrx proxy = LocatorPrx::uncheckedCast(result->getProxy());
2925  ObjectPrx ret;
2926  try
2927  {
2928  ret = proxy->end_findAdapterById(result);
2929  }
2930  catch(const ::Ice::Exception& ex)
2931  {
2932  ::IceInternal::Callback<T, CT>::exception(result, ex);
2933  return;
2934  }
2935  if(_response)
2936  {
2937  (::IceInternal::Callback<T, CT>::_callback.get()->*_response)(ret, CT::dynamicCast(result->getCookie()));
2938  }
2939  }
2941 
2942 private:
2943 
2944  Response _response;
2945 };
2946 
2956 template<class T, typename CT> Callback_Locator_findAdapterByIdPtr
2957 newCallback_Locator_findAdapterById(const IceUtil::Handle<T>& instance, void (T::*cb)(const ObjectPrx&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
2958 {
2959  return new Callback_Locator_findAdapterById<T, CT>(instance, cb, excb, sentcb);
2960 }
2961 
2971 template<class T, typename CT> Callback_Locator_findAdapterByIdPtr
2972 newCallback_Locator_findAdapterById(T* instance, void (T::*cb)(const ObjectPrx&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
2973 {
2974  return new Callback_Locator_findAdapterById<T, CT>(instance, cb, excb, sentcb);
2975 }
2976 
2982 template<class T>
2983 class CallbackNC_Locator_getRegistry : public Callback_Locator_getRegistry_Base, public ::IceInternal::TwowayCallbackNC<T>
2984 {
2985 public:
2986 
2987  typedef IceUtil::Handle<T> TPtr;
2988 
2989  typedef void (T::*Exception)(const ::Ice::Exception&);
2990  typedef void (T::*Sent)(bool);
2991  typedef void (T::*Response)(const LocatorRegistryPrx&);
2992 
2993  CallbackNC_Locator_getRegistry(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
2994  : ::IceInternal::TwowayCallbackNC<T>(obj, cb != 0, excb, sentcb), _response(cb)
2995  {
2996  }
2997 
2999  virtual void completed(const AsyncResultPtr& result) const
3000  {
3001  LocatorPrx proxy = LocatorPrx::uncheckedCast(result->getProxy());
3002  LocatorRegistryPrx ret;
3003  try
3004  {
3005  ret = proxy->end_getRegistry(result);
3006  }
3007  catch(const ::Ice::Exception& ex)
3008  {
3009  ::IceInternal::CallbackNC<T>::exception(result, ex);
3010  return;
3011  }
3012  if(_response)
3013  {
3014  (::IceInternal::CallbackNC<T>::_callback.get()->*_response)(ret);
3015  }
3016  }
3018 
3019 private:
3020 
3021  Response _response;
3022 };
3023 
3032 template<class T> Callback_Locator_getRegistryPtr
3033 newCallback_Locator_getRegistry(const IceUtil::Handle<T>& instance, void (T::*cb)(const LocatorRegistryPrx&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
3034 {
3035  return new CallbackNC_Locator_getRegistry<T>(instance, cb, excb, sentcb);
3036 }
3037 
3046 template<class T> Callback_Locator_getRegistryPtr
3047 newCallback_Locator_getRegistry(T* instance, void (T::*cb)(const LocatorRegistryPrx&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
3048 {
3049  return new CallbackNC_Locator_getRegistry<T>(instance, cb, excb, sentcb);
3050 }
3051 
3057 template<class T, typename CT>
3058 class Callback_Locator_getRegistry : public Callback_Locator_getRegistry_Base, public ::IceInternal::TwowayCallback<T, CT>
3059 {
3060 public:
3061 
3062  typedef IceUtil::Handle<T> TPtr;
3063 
3064  typedef void (T::*Exception)(const ::Ice::Exception& , const CT&);
3065  typedef void (T::*Sent)(bool , const CT&);
3066  typedef void (T::*Response)(const LocatorRegistryPrx&, const CT&);
3067 
3068  Callback_Locator_getRegistry(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
3069  : ::IceInternal::TwowayCallback<T, CT>(obj, cb != 0, excb, sentcb), _response(cb)
3070  {
3071  }
3072 
3074  virtual void completed(const AsyncResultPtr& result) const
3075  {
3076  LocatorPrx proxy = LocatorPrx::uncheckedCast(result->getProxy());
3077  LocatorRegistryPrx ret;
3078  try
3079  {
3080  ret = proxy->end_getRegistry(result);
3081  }
3082  catch(const ::Ice::Exception& ex)
3083  {
3084  ::IceInternal::Callback<T, CT>::exception(result, ex);
3085  return;
3086  }
3087  if(_response)
3088  {
3089  (::IceInternal::Callback<T, CT>::_callback.get()->*_response)(ret, CT::dynamicCast(result->getCookie()));
3090  }
3091  }
3093 
3094 private:
3095 
3096  Response _response;
3097 };
3098 
3108 template<class T, typename CT> Callback_Locator_getRegistryPtr
3109 newCallback_Locator_getRegistry(const IceUtil::Handle<T>& instance, void (T::*cb)(const LocatorRegistryPrx&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
3110 {
3111  return new Callback_Locator_getRegistry<T, CT>(instance, cb, excb, sentcb);
3112 }
3113 
3123 template<class T, typename CT> Callback_Locator_getRegistryPtr
3124 newCallback_Locator_getRegistry(T* instance, void (T::*cb)(const LocatorRegistryPrx&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
3125 {
3126  return new Callback_Locator_getRegistry<T, CT>(instance, cb, excb, sentcb);
3127 }
3128 
3134 template<class T>
3135 class CallbackNC_LocatorRegistry_setAdapterDirectProxy : public Callback_LocatorRegistry_setAdapterDirectProxy_Base, public ::IceInternal::TwowayCallbackNC<T>
3136 {
3137 public:
3138 
3139  typedef IceUtil::Handle<T> TPtr;
3140 
3141  typedef void (T::*Exception)(const ::Ice::Exception&);
3142  typedef void (T::*Sent)(bool);
3143  typedef void (T::*Response)();
3144 
3145  CallbackNC_LocatorRegistry_setAdapterDirectProxy(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
3146  : ::IceInternal::TwowayCallbackNC<T>(obj, cb != 0, excb, sentcb), _response(cb)
3147  {
3148  }
3149 
3151  virtual void completed(const AsyncResultPtr& result) const
3152  {
3153  LocatorRegistryPrx proxy = LocatorRegistryPrx::uncheckedCast(result->getProxy());
3154  try
3155  {
3156  proxy->end_setAdapterDirectProxy(result);
3157  }
3158  catch(const ::Ice::Exception& ex)
3159  {
3160  ::IceInternal::CallbackNC<T>::exception(result, ex);
3161  return;
3162  }
3163  if(_response)
3164  {
3165  (::IceInternal::CallbackNC<T>::_callback.get()->*_response)();
3166  }
3167  }
3169 
3170 private:
3171 
3172  Response _response;
3173 };
3174 
3183 template<class T> Callback_LocatorRegistry_setAdapterDirectProxyPtr
3184 newCallback_LocatorRegistry_setAdapterDirectProxy(const IceUtil::Handle<T>& instance, void (T::*cb)(), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
3185 {
3186  return new CallbackNC_LocatorRegistry_setAdapterDirectProxy<T>(instance, cb, excb, sentcb);
3187 }
3188 
3196 template<class T> Callback_LocatorRegistry_setAdapterDirectProxyPtr
3197 newCallback_LocatorRegistry_setAdapterDirectProxy(const IceUtil::Handle<T>& instance, void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
3198 {
3199  return new CallbackNC_LocatorRegistry_setAdapterDirectProxy<T>(instance, 0, excb, sentcb);
3200 }
3201 
3210 template<class T> Callback_LocatorRegistry_setAdapterDirectProxyPtr
3211 newCallback_LocatorRegistry_setAdapterDirectProxy(T* instance, void (T::*cb)(), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
3212 {
3213  return new CallbackNC_LocatorRegistry_setAdapterDirectProxy<T>(instance, cb, excb, sentcb);
3214 }
3215 
3223 template<class T> Callback_LocatorRegistry_setAdapterDirectProxyPtr
3224 newCallback_LocatorRegistry_setAdapterDirectProxy(T* instance, void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
3225 {
3226  return new CallbackNC_LocatorRegistry_setAdapterDirectProxy<T>(instance, 0, excb, sentcb);
3227 }
3228 
3234 template<class T, typename CT>
3235 class Callback_LocatorRegistry_setAdapterDirectProxy : public Callback_LocatorRegistry_setAdapterDirectProxy_Base, public ::IceInternal::TwowayCallback<T, CT>
3236 {
3237 public:
3238 
3239  typedef IceUtil::Handle<T> TPtr;
3240 
3241  typedef void (T::*Exception)(const ::Ice::Exception& , const CT&);
3242  typedef void (T::*Sent)(bool , const CT&);
3243  typedef void (T::*Response)(const CT&);
3244 
3245  Callback_LocatorRegistry_setAdapterDirectProxy(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
3246  : ::IceInternal::TwowayCallback<T, CT>(obj, cb != 0, excb, sentcb), _response(cb)
3247  {
3248  }
3249 
3251  virtual void completed(const AsyncResultPtr& result) const
3252  {
3253  LocatorRegistryPrx proxy = LocatorRegistryPrx::uncheckedCast(result->getProxy());
3254  try
3255  {
3256  proxy->end_setAdapterDirectProxy(result);
3257  }
3258  catch(const ::Ice::Exception& ex)
3259  {
3260  ::IceInternal::Callback<T, CT>::exception(result, ex);
3261  return;
3262  }
3263  if(_response)
3264  {
3265  (::IceInternal::Callback<T, CT>::_callback.get()->*_response)(CT::dynamicCast(result->getCookie()));
3266  }
3267  }
3269 
3270 private:
3271 
3272  Response _response;
3273 };
3274 
3284 template<class T, typename CT> Callback_LocatorRegistry_setAdapterDirectProxyPtr
3285 newCallback_LocatorRegistry_setAdapterDirectProxy(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)
3286 {
3287  return new Callback_LocatorRegistry_setAdapterDirectProxy<T, CT>(instance, cb, excb, sentcb);
3288 }
3289 
3298 template<class T, typename CT> Callback_LocatorRegistry_setAdapterDirectProxyPtr
3299 newCallback_LocatorRegistry_setAdapterDirectProxy(const IceUtil::Handle<T>& instance, void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
3300 {
3301  return new Callback_LocatorRegistry_setAdapterDirectProxy<T, CT>(instance, 0, excb, sentcb);
3302 }
3303 
3313 template<class T, typename CT> Callback_LocatorRegistry_setAdapterDirectProxyPtr
3314 newCallback_LocatorRegistry_setAdapterDirectProxy(T* instance, void (T::*cb)(const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
3315 {
3316  return new Callback_LocatorRegistry_setAdapterDirectProxy<T, CT>(instance, cb, excb, sentcb);
3317 }
3318 
3327 template<class T, typename CT> Callback_LocatorRegistry_setAdapterDirectProxyPtr
3328 newCallback_LocatorRegistry_setAdapterDirectProxy(T* instance, void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
3329 {
3330  return new Callback_LocatorRegistry_setAdapterDirectProxy<T, CT>(instance, 0, excb, sentcb);
3331 }
3332 
3338 template<class T>
3339 class CallbackNC_LocatorRegistry_setReplicatedAdapterDirectProxy : public Callback_LocatorRegistry_setReplicatedAdapterDirectProxy_Base, public ::IceInternal::TwowayCallbackNC<T>
3340 {
3341 public:
3342 
3343  typedef IceUtil::Handle<T> TPtr;
3344 
3345  typedef void (T::*Exception)(const ::Ice::Exception&);
3346  typedef void (T::*Sent)(bool);
3347  typedef void (T::*Response)();
3348 
3349  CallbackNC_LocatorRegistry_setReplicatedAdapterDirectProxy(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
3350  : ::IceInternal::TwowayCallbackNC<T>(obj, cb != 0, excb, sentcb), _response(cb)
3351  {
3352  }
3353 
3355  virtual void completed(const AsyncResultPtr& result) const
3356  {
3357  LocatorRegistryPrx proxy = LocatorRegistryPrx::uncheckedCast(result->getProxy());
3358  try
3359  {
3360  proxy->end_setReplicatedAdapterDirectProxy(result);
3361  }
3362  catch(const ::Ice::Exception& ex)
3363  {
3364  ::IceInternal::CallbackNC<T>::exception(result, ex);
3365  return;
3366  }
3367  if(_response)
3368  {
3369  (::IceInternal::CallbackNC<T>::_callback.get()->*_response)();
3370  }
3371  }
3373 
3374 private:
3375 
3376  Response _response;
3377 };
3378 
3387 template<class T> Callback_LocatorRegistry_setReplicatedAdapterDirectProxyPtr
3388 newCallback_LocatorRegistry_setReplicatedAdapterDirectProxy(const IceUtil::Handle<T>& instance, void (T::*cb)(), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
3389 {
3390  return new CallbackNC_LocatorRegistry_setReplicatedAdapterDirectProxy<T>(instance, cb, excb, sentcb);
3391 }
3392 
3400 template<class T> Callback_LocatorRegistry_setReplicatedAdapterDirectProxyPtr
3401 newCallback_LocatorRegistry_setReplicatedAdapterDirectProxy(const IceUtil::Handle<T>& instance, void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
3402 {
3403  return new CallbackNC_LocatorRegistry_setReplicatedAdapterDirectProxy<T>(instance, 0, excb, sentcb);
3404 }
3405 
3414 template<class T> Callback_LocatorRegistry_setReplicatedAdapterDirectProxyPtr
3415 newCallback_LocatorRegistry_setReplicatedAdapterDirectProxy(T* instance, void (T::*cb)(), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
3416 {
3417  return new CallbackNC_LocatorRegistry_setReplicatedAdapterDirectProxy<T>(instance, cb, excb, sentcb);
3418 }
3419 
3427 template<class T> Callback_LocatorRegistry_setReplicatedAdapterDirectProxyPtr
3428 newCallback_LocatorRegistry_setReplicatedAdapterDirectProxy(T* instance, void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
3429 {
3430  return new CallbackNC_LocatorRegistry_setReplicatedAdapterDirectProxy<T>(instance, 0, excb, sentcb);
3431 }
3432 
3438 template<class T, typename CT>
3439 class Callback_LocatorRegistry_setReplicatedAdapterDirectProxy : public Callback_LocatorRegistry_setReplicatedAdapterDirectProxy_Base, public ::IceInternal::TwowayCallback<T, CT>
3440 {
3441 public:
3442 
3443  typedef IceUtil::Handle<T> TPtr;
3444 
3445  typedef void (T::*Exception)(const ::Ice::Exception& , const CT&);
3446  typedef void (T::*Sent)(bool , const CT&);
3447  typedef void (T::*Response)(const CT&);
3448 
3449  Callback_LocatorRegistry_setReplicatedAdapterDirectProxy(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
3450  : ::IceInternal::TwowayCallback<T, CT>(obj, cb != 0, excb, sentcb), _response(cb)
3451  {
3452  }
3453 
3455  virtual void completed(const AsyncResultPtr& result) const
3456  {
3457  LocatorRegistryPrx proxy = LocatorRegistryPrx::uncheckedCast(result->getProxy());
3458  try
3459  {
3460  proxy->end_setReplicatedAdapterDirectProxy(result);
3461  }
3462  catch(const ::Ice::Exception& ex)
3463  {
3464  ::IceInternal::Callback<T, CT>::exception(result, ex);
3465  return;
3466  }
3467  if(_response)
3468  {
3469  (::IceInternal::Callback<T, CT>::_callback.get()->*_response)(CT::dynamicCast(result->getCookie()));
3470  }
3471  }
3473 
3474 private:
3475 
3476  Response _response;
3477 };
3478 
3488 template<class T, typename CT> Callback_LocatorRegistry_setReplicatedAdapterDirectProxyPtr
3489 newCallback_LocatorRegistry_setReplicatedAdapterDirectProxy(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)
3490 {
3491  return new Callback_LocatorRegistry_setReplicatedAdapterDirectProxy<T, CT>(instance, cb, excb, sentcb);
3492 }
3493 
3502 template<class T, typename CT> Callback_LocatorRegistry_setReplicatedAdapterDirectProxyPtr
3503 newCallback_LocatorRegistry_setReplicatedAdapterDirectProxy(const IceUtil::Handle<T>& instance, void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
3504 {
3505  return new Callback_LocatorRegistry_setReplicatedAdapterDirectProxy<T, CT>(instance, 0, excb, sentcb);
3506 }
3507 
3517 template<class T, typename CT> Callback_LocatorRegistry_setReplicatedAdapterDirectProxyPtr
3518 newCallback_LocatorRegistry_setReplicatedAdapterDirectProxy(T* instance, void (T::*cb)(const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
3519 {
3520  return new Callback_LocatorRegistry_setReplicatedAdapterDirectProxy<T, CT>(instance, cb, excb, sentcb);
3521 }
3522 
3531 template<class T, typename CT> Callback_LocatorRegistry_setReplicatedAdapterDirectProxyPtr
3532 newCallback_LocatorRegistry_setReplicatedAdapterDirectProxy(T* instance, void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
3533 {
3534  return new Callback_LocatorRegistry_setReplicatedAdapterDirectProxy<T, CT>(instance, 0, excb, sentcb);
3535 }
3536 
3542 template<class T>
3543 class CallbackNC_LocatorRegistry_setServerProcessProxy : public Callback_LocatorRegistry_setServerProcessProxy_Base, public ::IceInternal::TwowayCallbackNC<T>
3544 {
3545 public:
3546 
3547  typedef IceUtil::Handle<T> TPtr;
3548 
3549  typedef void (T::*Exception)(const ::Ice::Exception&);
3550  typedef void (T::*Sent)(bool);
3551  typedef void (T::*Response)();
3552 
3553  CallbackNC_LocatorRegistry_setServerProcessProxy(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
3554  : ::IceInternal::TwowayCallbackNC<T>(obj, cb != 0, excb, sentcb), _response(cb)
3555  {
3556  }
3557 
3559  virtual void completed(const AsyncResultPtr& result) const
3560  {
3561  LocatorRegistryPrx proxy = LocatorRegistryPrx::uncheckedCast(result->getProxy());
3562  try
3563  {
3564  proxy->end_setServerProcessProxy(result);
3565  }
3566  catch(const ::Ice::Exception& ex)
3567  {
3568  ::IceInternal::CallbackNC<T>::exception(result, ex);
3569  return;
3570  }
3571  if(_response)
3572  {
3573  (::IceInternal::CallbackNC<T>::_callback.get()->*_response)();
3574  }
3575  }
3577 
3578 private:
3579 
3580  Response _response;
3581 };
3582 
3591 template<class T> Callback_LocatorRegistry_setServerProcessProxyPtr
3592 newCallback_LocatorRegistry_setServerProcessProxy(const IceUtil::Handle<T>& instance, void (T::*cb)(), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
3593 {
3594  return new CallbackNC_LocatorRegistry_setServerProcessProxy<T>(instance, cb, excb, sentcb);
3595 }
3596 
3604 template<class T> Callback_LocatorRegistry_setServerProcessProxyPtr
3605 newCallback_LocatorRegistry_setServerProcessProxy(const IceUtil::Handle<T>& instance, void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
3606 {
3607  return new CallbackNC_LocatorRegistry_setServerProcessProxy<T>(instance, 0, excb, sentcb);
3608 }
3609 
3618 template<class T> Callback_LocatorRegistry_setServerProcessProxyPtr
3619 newCallback_LocatorRegistry_setServerProcessProxy(T* instance, void (T::*cb)(), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
3620 {
3621  return new CallbackNC_LocatorRegistry_setServerProcessProxy<T>(instance, cb, excb, sentcb);
3622 }
3623 
3631 template<class T> Callback_LocatorRegistry_setServerProcessProxyPtr
3632 newCallback_LocatorRegistry_setServerProcessProxy(T* instance, void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
3633 {
3634  return new CallbackNC_LocatorRegistry_setServerProcessProxy<T>(instance, 0, excb, sentcb);
3635 }
3636 
3642 template<class T, typename CT>
3643 class Callback_LocatorRegistry_setServerProcessProxy : public Callback_LocatorRegistry_setServerProcessProxy_Base, public ::IceInternal::TwowayCallback<T, CT>
3644 {
3645 public:
3646 
3647  typedef IceUtil::Handle<T> TPtr;
3648 
3649  typedef void (T::*Exception)(const ::Ice::Exception& , const CT&);
3650  typedef void (T::*Sent)(bool , const CT&);
3651  typedef void (T::*Response)(const CT&);
3652 
3653  Callback_LocatorRegistry_setServerProcessProxy(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
3654  : ::IceInternal::TwowayCallback<T, CT>(obj, cb != 0, excb, sentcb), _response(cb)
3655  {
3656  }
3657 
3659  virtual void completed(const AsyncResultPtr& result) const
3660  {
3661  LocatorRegistryPrx proxy = LocatorRegistryPrx::uncheckedCast(result->getProxy());
3662  try
3663  {
3664  proxy->end_setServerProcessProxy(result);
3665  }
3666  catch(const ::Ice::Exception& ex)
3667  {
3668  ::IceInternal::Callback<T, CT>::exception(result, ex);
3669  return;
3670  }
3671  if(_response)
3672  {
3673  (::IceInternal::Callback<T, CT>::_callback.get()->*_response)(CT::dynamicCast(result->getCookie()));
3674  }
3675  }
3677 
3678 private:
3679 
3680  Response _response;
3681 };
3682 
3692 template<class T, typename CT> Callback_LocatorRegistry_setServerProcessProxyPtr
3693 newCallback_LocatorRegistry_setServerProcessProxy(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)
3694 {
3695  return new Callback_LocatorRegistry_setServerProcessProxy<T, CT>(instance, cb, excb, sentcb);
3696 }
3697 
3706 template<class T, typename CT> Callback_LocatorRegistry_setServerProcessProxyPtr
3707 newCallback_LocatorRegistry_setServerProcessProxy(const IceUtil::Handle<T>& instance, void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
3708 {
3709  return new Callback_LocatorRegistry_setServerProcessProxy<T, CT>(instance, 0, excb, sentcb);
3710 }
3711 
3721 template<class T, typename CT> Callback_LocatorRegistry_setServerProcessProxyPtr
3722 newCallback_LocatorRegistry_setServerProcessProxy(T* instance, void (T::*cb)(const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
3723 {
3724  return new Callback_LocatorRegistry_setServerProcessProxy<T, CT>(instance, cb, excb, sentcb);
3725 }
3726 
3735 template<class T, typename CT> Callback_LocatorRegistry_setServerProcessProxyPtr
3736 newCallback_LocatorRegistry_setServerProcessProxy(T* instance, void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
3737 {
3738  return new Callback_LocatorRegistry_setServerProcessProxy<T, CT>(instance, 0, excb, sentcb);
3739 }
3740 
3746 template<class T>
3747 class CallbackNC_LocatorFinder_getLocator : public Callback_LocatorFinder_getLocator_Base, public ::IceInternal::TwowayCallbackNC<T>
3748 {
3749 public:
3750 
3751  typedef IceUtil::Handle<T> TPtr;
3752 
3753  typedef void (T::*Exception)(const ::Ice::Exception&);
3754  typedef void (T::*Sent)(bool);
3755  typedef void (T::*Response)(const LocatorPrx&);
3756 
3757  CallbackNC_LocatorFinder_getLocator(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
3758  : ::IceInternal::TwowayCallbackNC<T>(obj, cb != 0, excb, sentcb), _response(cb)
3759  {
3760  }
3761 
3763  virtual void completed(const AsyncResultPtr& result) const
3764  {
3765  LocatorFinderPrx proxy = LocatorFinderPrx::uncheckedCast(result->getProxy());
3766  LocatorPrx ret;
3767  try
3768  {
3769  ret = proxy->end_getLocator(result);
3770  }
3771  catch(const ::Ice::Exception& ex)
3772  {
3773  ::IceInternal::CallbackNC<T>::exception(result, ex);
3774  return;
3775  }
3776  if(_response)
3777  {
3778  (::IceInternal::CallbackNC<T>::_callback.get()->*_response)(ret);
3779  }
3780  }
3782 
3783 private:
3784 
3785  Response _response;
3786 };
3787 
3796 template<class T> Callback_LocatorFinder_getLocatorPtr
3797 newCallback_LocatorFinder_getLocator(const IceUtil::Handle<T>& instance, void (T::*cb)(const LocatorPrx&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
3798 {
3799  return new CallbackNC_LocatorFinder_getLocator<T>(instance, cb, excb, sentcb);
3800 }
3801 
3810 template<class T> Callback_LocatorFinder_getLocatorPtr
3811 newCallback_LocatorFinder_getLocator(T* instance, void (T::*cb)(const LocatorPrx&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
3812 {
3813  return new CallbackNC_LocatorFinder_getLocator<T>(instance, cb, excb, sentcb);
3814 }
3815 
3821 template<class T, typename CT>
3822 class Callback_LocatorFinder_getLocator : public Callback_LocatorFinder_getLocator_Base, public ::IceInternal::TwowayCallback<T, CT>
3823 {
3824 public:
3825 
3826  typedef IceUtil::Handle<T> TPtr;
3827 
3828  typedef void (T::*Exception)(const ::Ice::Exception& , const CT&);
3829  typedef void (T::*Sent)(bool , const CT&);
3830  typedef void (T::*Response)(const LocatorPrx&, const CT&);
3831 
3832  Callback_LocatorFinder_getLocator(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
3833  : ::IceInternal::TwowayCallback<T, CT>(obj, cb != 0, excb, sentcb), _response(cb)
3834  {
3835  }
3836 
3838  virtual void completed(const AsyncResultPtr& result) const
3839  {
3840  LocatorFinderPrx proxy = LocatorFinderPrx::uncheckedCast(result->getProxy());
3841  LocatorPrx ret;
3842  try
3843  {
3844  ret = proxy->end_getLocator(result);
3845  }
3846  catch(const ::Ice::Exception& ex)
3847  {
3848  ::IceInternal::Callback<T, CT>::exception(result, ex);
3849  return;
3850  }
3851  if(_response)
3852  {
3853  (::IceInternal::Callback<T, CT>::_callback.get()->*_response)(ret, CT::dynamicCast(result->getCookie()));
3854  }
3855  }
3857 
3858 private:
3859 
3860  Response _response;
3861 };
3862 
3872 template<class T, typename CT> Callback_LocatorFinder_getLocatorPtr
3873 newCallback_LocatorFinder_getLocator(const IceUtil::Handle<T>& instance, void (T::*cb)(const LocatorPrx&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
3874 {
3875  return new Callback_LocatorFinder_getLocator<T, CT>(instance, cb, excb, sentcb);
3876 }
3877 
3887 template<class T, typename CT> Callback_LocatorFinder_getLocatorPtr
3888 newCallback_LocatorFinder_getLocator(T* instance, void (T::*cb)(const LocatorPrx&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
3889 {
3890  return new Callback_LocatorFinder_getLocator<T, CT>(instance, cb, excb, sentcb);
3891 }
3892 
3893 }
3894 
3895 #endif
3896 
3898 #endif
Ice::ObjectNotFoundException::ice_tuple
std::tuple ice_tuple() const
Obtains a tuple containing all of the exception's data members.
Definition: Locator.h:194
Ice::LocatorFinderPrx::getLocatorAsync
auto getLocatorAsync(const Context &context=noExplicitContext) -> decltype(::std::declval< P<::std::shared_ptr<::Ice::LocatorPrx >>>().get_future())
Get the locator proxy implemented by the process hosting this finder object.
Definition: Locator.h:925
Ice::InvalidReplicaGroupIdException::InvalidReplicaGroupIdException
InvalidReplicaGroupIdException()=default
Ice::LocatorFinderPrx::getLocator
::std::shared_ptr< LocatorPrx > getLocator(const Context &context=noExplicitContext)
Get the locator proxy implemented by the process hosting this finder object.
Definition: Locator.h:913
Ice::LocatorRegistryPrx::setReplicatedAdapterDirectProxyAsync
::std::function< void()> setReplicatedAdapterDirectProxyAsync(const ::std::string &adapterId, const ::std::string &replicaGroupId, const ::std::shared_ptr< ObjectPrx > &p, ::std::function< void()> response, ::std::function< void(::std::exception_ptr)> ex=nullptr, ::std::function< void(bool)> sent=nullptr, const Context &context=noExplicitContext)
Set the adapter endpoints with the locator registry.
Definition: Locator.h:815
Ice::LocalObjectPtr
IceInternal::Handle< LocalObject > LocalObjectPtr
Definition: LocalObjectF.h:17
Optional.h
Ice::LocatorRegistry::ice_id
virtual ::std::string ice_id(const Current &current) const override
Obtains a Slice type ID representing the most-derived interface supported by this object.
Ice::LocatorPrx
The Ice locator interface.
Definition: Locator.h:517
Ice::LocatorRegistryPrx::setServerProcessProxyAsync
::std::function< void()> setServerProcessProxyAsync(const ::std::string &id, const ::std::shared_ptr< ProcessPrx > &proxy, ::std::function< void()> response, ::std::function< void(::std::exception_ptr)> ex=nullptr, ::std::function< void(bool)> sent=nullptr, const Context &context=noExplicitContext)
Set the process proxy for a server.
Definition: Locator.h:866
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
Ice::LocatorPrx::getRegistryAsync
auto getRegistryAsync(const Context &context=noExplicitContext) -> decltype(::std::declval< P<::std::shared_ptr<::Ice::LocatorRegistryPrx >>>().get_future())
Get the locator registry.
Definition: Locator.h:643
Ice::AdapterAlreadyActiveException::~AdapterAlreadyActiveException
virtual ~AdapterAlreadyActiveException()
Ice::AdapterAlreadyActiveException::AdapterAlreadyActiveException
AdapterAlreadyActiveException(const AdapterAlreadyActiveException &)=default
Ice::AdapterNotFoundException::~AdapterNotFoundException
virtual ~AdapterNotFoundException()
Ice::Locator::getRegistry
virtual ::std::shared_ptr< LocatorRegistryPrx > getRegistry(const Current &current) const =0
Get the locator registry.
Ice::LocatorRegistry::setServerProcessProxyAsync
virtual void setServerProcessProxyAsync(::std::string id, ::std::shared_ptr< ProcessPrx > proxy, ::std::function< void()> response, ::std::function< void(::std::exception_ptr)> exception, const Current &current)=0
Set the process proxy for a server.
Ice::Locator::ice_ids
virtual ::std::vector<::std::string > ice_ids(const Current &current) const override
Obtains a list of the Slice type IDs representing the interfaces supported by this object.
Ice::Locator::ice_staticId
static const ::std::string & ice_staticId()
Obtains the Slice type ID corresponding to this class.
Ice::LocatorRegistryPrx::setAdapterDirectProxyAsync
::std::function< void()> setAdapterDirectProxyAsync(const ::std::string &id, const ::std::shared_ptr< ObjectPrx > &proxy, ::std::function< void()> response, ::std::function< void(::std::exception_ptr)> ex=nullptr, ::std::function< void(bool)> sent=nullptr, const Context &context=noExplicitContext)
Set the adapter endpoints with the locator registry.
Definition: Locator.h:748
Ice::LocatorRegistry::ice_ids
virtual ::std::vector<::std::string > ice_ids(const Current &current) const override
Obtains a list of the Slice type IDs representing the interfaces supported by this object.
Ice::LocatorRegistryPrx::setServerProcessProxy
void setServerProcessProxy(const ::std::string &id, const ::std::shared_ptr< ProcessPrx > &proxy, const Context &context=noExplicitContext)
Set the process proxy for a server.
Definition: Locator.h:836
Ice::AdapterNotFoundException::AdapterNotFoundException
AdapterNotFoundException(const AdapterNotFoundException &)=default
Ice::LocatorPrx::findAdapterByIdAsync
auto findAdapterByIdAsync(const ::std::string &id, const Context &context=noExplicitContext) -> decltype(::std::declval< P<::std::shared_ptr<::Ice::ObjectPrx >>>().get_future())
Find an adapter by id and return a proxy that contains its endpoints.
Definition: Locator.h:597
Ice::emptyCurrent
const Current emptyCurrent
A default-initialized Current instance.
StreamHelpers.h
Ice::Locator::ice_isA
virtual bool ice_isA(::std::string id, const Current &current) const override
Determines whether this object supports an interface with the given Slice type ID.
Ice::AdapterAlreadyActiveException::AdapterAlreadyActiveException
AdapterAlreadyActiveException()=default
Ice::LocatorFinder
This inferface should be implemented by services implementing the Ice::Locator interface.
Definition: Locator.h:451
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::ServerNotFoundException::ice_tuple
std::tuple ice_tuple() const
Obtains a tuple containing all of the exception's data members.
Definition: Locator.h:224
Ice::Exception
IceUtil::Exception Exception
Definition: Exception.h:20
Ice::LocatorFinder::ice_isA
virtual bool ice_isA(::std::string id, const Current &current) const override
Determines whether this object supports an interface with the given Slice type ID.
Ice::upCast
IceUtil::Shared * upCast(::Ice::LocalObject *)
Ice::ObjectNotFoundException::ObjectNotFoundException
ObjectNotFoundException(const ObjectNotFoundException &)=default
Ice::InvalidReplicaGroupIdException::ice_tuple
std::tuple ice_tuple() const
Obtains a tuple containing all of the exception's data members.
Definition: Locator.h:133
Ice::LocatorRegistryPrx::setReplicatedAdapterDirectProxyAsync
auto setReplicatedAdapterDirectProxyAsync(const ::std::string &adapterId, const ::std::string &replicaGroupId, const ::std::shared_ptr< ObjectPrx > &p, const Context &context=noExplicitContext) -> decltype(::std::declval< P< void >>().get_future())
Set the adapter endpoints with the locator registry.
Definition: Locator.h:795
Ice::ServerNotFoundException::~ServerNotFoundException
virtual ~ServerNotFoundException()
Ice::LocatorRegistryPrx::setAdapterDirectProxyAsync
auto setAdapterDirectProxyAsync(const ::std::string &id, const ::std::shared_ptr< ObjectPrx > &proxy, const Context &context=noExplicitContext) -> decltype(::std::declval< P< void >>().get_future())
Set the adapter endpoints with the locator registry.
Definition: Locator.h:729
Ice::LocatorRegistry::setAdapterDirectProxyAsync
virtual void setAdapterDirectProxyAsync(::std::string id, ::std::shared_ptr< ObjectPrx > proxy, ::std::function< void()> response, ::std::function< void(::std::exception_ptr)> exception, const Current &current)=0
Set the adapter endpoints with the locator registry.
GCObject.h
Ice::AdapterNotFoundException::AdapterNotFoundException
AdapterNotFoundException()=default
Ice::LocatorFinderPrx::ice_staticId
static const ::std::string & ice_staticId()
Obtains the Slice type ID of this interface.
Process.h
Incoming.h
Ice::LocatorRegistry::ice_isA
virtual bool ice_isA(::std::string id, const Current &current) const override
Determines whether this object supports an interface with the given Slice type ID.
ICE_API
#define ICE_API
Definition: Config.h:197
Ice::UserExceptionHelper
Helper template for the implementation of Ice::UserException.
Definition: ExceptionHelpers.h:39
ICE_MEMBER
#define ICE_MEMBER(API)
Definition: Config.h:177
FactoryTableInit.h
Ice::Locator
The Ice locator interface.
Definition: Locator.h:253
Ice::LocatorPrx::getRegistry
::std::shared_ptr< LocatorRegistryPrx > getRegistry(const Context &context=noExplicitContext)
Get the locator registry.
Definition: Locator.h:632
Ice::LocatorFinderPrx::getLocatorAsync
::std::function< void()> getLocatorAsync(::std::function< void(::std::shared_ptr<::Ice::LocatorPrx >)> response, ::std::function< void(::std::exception_ptr)> ex=nullptr, ::std::function< void(bool)> sent=nullptr, const Context &context=noExplicitContext)
Get the locator proxy implemented by the process hosting this finder object.
Definition: Locator.h:941
Ice::LocatorRegistry::ice_staticId
static const ::std::string & ice_staticId()
Obtains the Slice type ID corresponding to this class.
Ice::LocatorRegistryPrx
The Ice locator registry interface.
Definition: Locator.h:697
Ice::Locator::findObjectByIdAsync
virtual void findObjectByIdAsync(Identity id, ::std::function< void(const ::std::shared_ptr< ObjectPrx > &returnValue)> response, ::std::function< void(::std::exception_ptr)> exception, const Current &current) const =0
Find an object by identity and return a proxy that contains the adapter ID or endpoints which can be ...
Ice::LocatorPrx::findObjectByIdAsync
::std::function< void()> findObjectByIdAsync(const Identity &id, ::std::function< void(::std::shared_ptr<::Ice::ObjectPrx >)> response, ::std::function< void(::std::exception_ptr)> ex=nullptr, ::std::function< void(bool)> sent=nullptr, const Context &context=noExplicitContext)
Find an object by identity and return a proxy that contains the adapter ID or endpoints which can be ...
Definition: Locator.h:562
Ice::InvalidReplicaGroupIdException
This exception is raised if the replica group provided by the server is invalid.
Definition: Locator.h:120
Ice::LocatorRegistryPrx::setAdapterDirectProxy
void setAdapterDirectProxy(const ::std::string &id, const ::std::shared_ptr< ObjectPrx > &proxy, const Context &context=noExplicitContext)
Set the adapter endpoints with the locator registry.
Definition: Locator.h:714
Ice::ServerNotFoundException
This exception is raised if a server cannot be found.
Definition: Locator.h:211
IncomingAsync.h
Ice::ObjectNotFoundException::~ObjectNotFoundException
virtual ~ObjectNotFoundException()
LocalObject.h
PushDisableWarnings.h
Ice::LocatorPrx::ice_staticId
static const ::std::string & ice_staticId()
Obtains the Slice type ID of this interface.
Ice::InvalidReplicaGroupIdException::~InvalidReplicaGroupIdException
virtual ~InvalidReplicaGroupIdException()
Ice::LocatorPrx::findObjectById
::std::shared_ptr< ObjectPrx > findObjectById(const Identity &id, const Context &context=noExplicitContext)
Find an object by identity and return a proxy that contains the adapter ID or endpoints which can be ...
Definition: Locator.h:530
Ice::LocatorRegistry
The Ice locator registry interface.
Definition: Locator.h:343
ProxyF.h
Ice::AdapterAlreadyActiveException::ice_staticId
static const ::std::string & ice_staticId()
Obtains the Slice type ID of this exception.
Ice::operator<
bool operator<(const C &lhs, const C &rhs)
Relational operator for generated structs and classes.
Definition: Comparable.h:136
Ice::LocatorFinder::getLocator
virtual ::std::shared_ptr< LocatorPrx > getLocator(const Current &current)=0
Get the locator proxy implemented by the process hosting this finder object.
Ice::LocatorRegistryPrx::setServerProcessProxyAsync
auto setServerProcessProxyAsync(const ::std::string &id, const ::std::shared_ptr< ProcessPrx > &proxy, const Context &context=noExplicitContext) -> decltype(::std::declval< P< void >>().get_future())
Set the process proxy for a server.
Definition: Locator.h:849
Ice::LocatorRegistry::setReplicatedAdapterDirectProxyAsync
virtual void setReplicatedAdapterDirectProxyAsync(::std::string adapterId, ::std::string replicaGroupId, ::std::shared_ptr< ObjectPrx > p, ::std::function< void()> response, ::std::function< void(::std::exception_ptr)> exception, const Current &current)=0
Set the adapter endpoints with the locator registry.
Ice::LocatorPrx::findAdapterByIdAsync
::std::function< void()> findAdapterByIdAsync(const ::std::string &id, ::std::function< void(::std::shared_ptr<::Ice::ObjectPrx >)> response, ::std::function< void(::std::exception_ptr)> ex=nullptr, ::std::function< void(bool)> sent=nullptr, const Context &context=noExplicitContext)
Find an adapter by id and return a proxy that contains its endpoints.
Definition: Locator.h:614
Ice::LocatorFinder::ice_staticId
static const ::std::string & ice_staticId()
Obtains the Slice type ID corresponding to this class.
Ice::InvalidReplicaGroupIdException::ice_staticId
static const ::std::string & ice_staticId()
Obtains the Slice type ID of this exception.
Ice::AdapterAlreadyActiveException::ice_tuple
std::tuple ice_tuple() const
Obtains a tuple containing all of the exception's data members.
Definition: Locator.h:164
Ice::LocatorRegistryPrx::setReplicatedAdapterDirectProxy
void setReplicatedAdapterDirectProxy(const ::std::string &adapterId, const ::std::string &replicaGroupId, const ::std::shared_ptr< ObjectPrx > &p, const Context &context=noExplicitContext)
Set the adapter endpoints with the locator registry.
Definition: Locator.h:779
Ice::ObjectNotFoundException::ice_staticId
static const ::std::string & ice_staticId()
Obtains the Slice type ID of this exception.
Object.h
Ice::AdapterNotFoundException::ice_staticId
static const ::std::string & ice_staticId()
Obtains the Slice type ID of this exception.
Proxy.h
Ice::AdapterNotFoundException
This exception is raised if an adapter cannot be found.
Definition: Locator.h:85
UndefSysMacros.h
Ice::LocatorPrx::findObjectByIdAsync
auto findObjectByIdAsync(const Identity &id, const Context &context=noExplicitContext) -> decltype(::std::declval< P<::std::shared_ptr<::Ice::ObjectPrx >>>().get_future())
Find an object by identity and return a proxy that contains the adapter ID or endpoints which can be ...
Definition: Locator.h:544
ObjectF.h
Ice::InvalidReplicaGroupIdException::InvalidReplicaGroupIdException
InvalidReplicaGroupIdException(const InvalidReplicaGroupIdException &)=default
Ice::ObjectNotFoundException::ObjectNotFoundException
ObjectNotFoundException()=default
Ice
Definition: BuiltinSequences.h:56
Ice::AdapterNotFoundException::ice_tuple
std::tuple ice_tuple() const
Obtains a tuple containing all of the exception's data members.
Definition: Locator.h:98
Ice::ServerNotFoundException::ServerNotFoundException
ServerNotFoundException()=default
Ice::LocatorPrx::getRegistryAsync
::std::function< void()> getRegistryAsync(::std::function< void(::std::shared_ptr<::Ice::LocatorRegistryPrx >)> response, ::std::function< void(::std::exception_ptr)> ex=nullptr, ::std::function< void(bool)> sent=nullptr, const Context &context=noExplicitContext)
Get the locator registry.
Definition: Locator.h:658
Ice::LocatorFinder::ice_ids
virtual ::std::vector<::std::string > ice_ids(const Current &current) const override
Obtains a list of the Slice type IDs representing the interfaces supported by this object.
Ice::LocatorFinder::ice_id
virtual ::std::string ice_id(const Current &current) const override
Obtains a Slice type ID representing the most-derived interface supported by this object.
Identity.h
Ice::ServerNotFoundException::ServerNotFoundException
ServerNotFoundException(const ServerNotFoundException &)=default
IceUtil::Handle
Definition: Handle.h:143
ExceptionHelpers.h
Ice::ServerNotFoundException::ice_staticId
static const ::std::string & ice_staticId()
Obtains the Slice type ID of this exception.
Ice::uncheckedCast
::std::shared_ptr< P > uncheckedCast(const ::std::shared_ptr< T > &b)
Downcasts a proxy without confirming the target object's type via a remote invocation.
Definition: Proxy.h:1549
Comparable.h
ScopedArray.h
Ice::Current
Information about the current method invocation for servers.
Definition: Current.h:120
Ice::Locator::ice_id
virtual ::std::string ice_id(const Current &current) const override
Obtains a Slice type ID representing the most-derived interface supported by this object.
Ice::Proxy
Helper template that supplies proxy factory functions.
Definition: Proxy.h:1204
Ice::Locator::findAdapterByIdAsync
virtual void findAdapterByIdAsync(::std::string id, ::std::function< void(const ::std::shared_ptr< ObjectPrx > &returnValue)> response, ::std::function< void(::std::exception_ptr)> exception, const Current &current) const =0
Find an adapter by id and return a proxy that contains its endpoints.
Ice::Identity
The identity of an Ice object.
Definition: Identity.h:67
Exception.h
ValueF.h
Ice::LocatorFinderPrx
This inferface should be implemented by services implementing the Ice::Locator interface.
Definition: Locator.h:904
Ice::LocatorPrx::findAdapterById
::std::shared_ptr< ObjectPrx > findAdapterById(const ::std::string &id, const Context &context=noExplicitContext)
Find an adapter by id and return a proxy that contains its endpoints.
Definition: Locator.h:584
Ice::ObjectNotFoundException
This exception is raised if an object cannot be found.
Definition: Locator.h:181
Ice::noExplicitContext
const Context noExplicitContext
Marker value used to indicate that no explicit context was passed to a proxy invocation.
Ice::AdapterAlreadyActiveException
This exception is raised if a server tries to set endpoints for an adapter that is already active.
Definition: Locator.h:151
Value.h
Ice::LocatorRegistryPrx::ice_staticId
static const ::std::string & ice_staticId()
Obtains the Slice type ID of this interface.
PopDisableWarnings.h