16 #ifndef __IceBox_IceBox_h__
17 #define __IceBox_IceBox_h__
43 #ifndef ICE_IGNORE_VERSION
44 # if ICE_INT_VERSION / 100 != 307
45 # error Ice version mismatch!
47 # if ICE_INT_VERSION % 100 >= 50
48 # error Beta header file detected
50 # if ICE_INT_VERSION % 100 < 10
51 # error Ice patch level mismatch!
56 # if defined(ICE_STATIC_LIBS)
58 # elif defined(ICEBOX_API_EXPORTS)
59 # define ICEBOX_API ICE_DECLSPEC_EXPORT
61 # define ICEBOX_API ICE_DECLSPEC_IMPORT
65 #ifdef ICE_CPP11_MAPPING // C++11 mapping
123 return std::tie(reason);
301 virtual bool ice_isA(::std::string
id, const ::Ice::Current& current)
const override;
308 virtual ::std::vector<::std::string>
ice_ids(const ::Ice::Current& current)
const override;
315 virtual ::std::string
ice_id(const ::Ice::Current& current)
const override;
330 bool _iceD_servicesStarted(::IceInternal::Incoming&, const ::Ice::Current&);
340 bool _iceD_servicesStopped(::IceInternal::Incoming&, const ::Ice::Current&);
344 virtual bool _iceDispatch(::IceInternal::Incoming&, const ::Ice::Current&)
override;
365 virtual bool ice_isA(::std::string
id, const ::Ice::Current& current)
const override;
372 virtual ::std::vector<::std::string>
ice_ids(const ::Ice::Current& current)
const override;
379 virtual ::std::string
ice_id(const ::Ice::Current& current)
const override;
394 bool _iceD_getSliceChecksums(::IceInternal::Incoming&, const ::Ice::Current&)
const;
404 virtual void startService(::std::string service, const ::Ice::Current& current) = 0;
406 bool _iceD_startService(::IceInternal::Incoming&, const ::Ice::Current&);
416 virtual void stopService(::std::string service, const ::Ice::Current& current) = 0;
418 bool _iceD_stopService(::IceInternal::Incoming&, const ::Ice::Current&);
426 virtual void addObserver(::std::shared_ptr<ServiceObserverPrx> observer, const ::Ice::Current& current) = 0;
428 bool _iceD_addObserver(::IceInternal::Incoming&, const ::Ice::Current&);
435 virtual void shutdown(const ::Ice::Current& current) = 0;
437 bool _iceD_shutdown(::IceInternal::Incoming&, const ::Ice::Current&);
441 virtual bool _iceDispatch(::IceInternal::Incoming&, const ::Ice::Current&)
override;
467 _makePromiseOutgoing<void>(
true,
this, &ServiceObserverPrx::_iceI_servicesStarted, services, context).get();
476 template<
template<
typename>
class P = ::std::promise>
478 -> decltype(::std::declval<P<void>>().get_future())
480 return _makePromiseOutgoing<void, P>(
false,
this, &ServiceObserverPrx::_iceI_servicesStarted, services, context);
492 ::std::function<void()>
494 ::std::function<
void()> response,
495 ::std::function<
void(::std::exception_ptr)> ex =
nullptr,
496 ::std::function<
void(
bool)> sent =
nullptr,
499 return _makeLamdaOutgoing<void>(std::move(response), std::move(ex), std::move(sent),
this, &IceBox::ServiceObserverPrx::_iceI_servicesStarted, services, context);
513 _makePromiseOutgoing<void>(
true,
this, &ServiceObserverPrx::_iceI_servicesStopped, services, context).get();
522 template<
template<
typename>
class P = ::std::promise>
524 -> decltype(::std::declval<P<void>>().get_future())
526 return _makePromiseOutgoing<void, P>(
false,
this, &ServiceObserverPrx::_iceI_servicesStopped, services, context);
538 ::std::function<void()>
540 ::std::function<
void()> response,
541 ::std::function<
void(::std::exception_ptr)> ex =
nullptr,
542 ::std::function<
void(
bool)> sent =
nullptr,
545 return _makeLamdaOutgoing<void>(std::move(response), std::move(ex), std::move(sent),
this, &IceBox::ServiceObserverPrx::_iceI_servicesStopped, services, context);
562 friend ::std::shared_ptr<ServiceObserverPrx> IceInternal::createProxy<ServiceObserverPrx>();
564 ICE_MEMBER(
ICEBOX_API) virtual ::std::shared_ptr<::Ice::ObjectPrx> _newInstance()
const override;
584 return _makePromiseOutgoing<::Ice::SliceChecksumDict>(
true,
this, &ServiceManagerPrx::_iceI_getSliceChecksums, context).get();
592 template<
template<
typename>
class P = ::std::promise>
594 -> decltype(::std::declval<P<::Ice::SliceChecksumDict>>().get_future())
596 return _makePromiseOutgoing<::Ice::SliceChecksumDict, P>(
false,
this, &ServiceManagerPrx::_iceI_getSliceChecksums, context);
607 ::std::function<void()>
609 ::std::function<
void(::std::exception_ptr)> ex =
nullptr,
610 ::std::function<
void(
bool)> sent =
nullptr,
613 return _makeLamdaOutgoing<::Ice::SliceChecksumDict>(std::move(response), std::move(ex), std::move(sent),
this, &IceBox::ServiceManagerPrx::_iceI_getSliceChecksums, context);
629 _makePromiseOutgoing<void>(
true,
this, &ServiceManagerPrx::_iceI_startService, service, context).get();
638 template<
template<
typename>
class P = ::std::promise>
640 -> decltype(::std::declval<P<void>>().get_future())
642 return _makePromiseOutgoing<void, P>(
false,
this, &ServiceManagerPrx::_iceI_startService, service, context);
654 ::std::function<void()>
656 ::std::function<
void()> response,
657 ::std::function<
void(::std::exception_ptr)> ex =
nullptr,
658 ::std::function<
void(
bool)> sent =
nullptr,
661 return _makeLamdaOutgoing<void>(std::move(response), std::move(ex), std::move(sent),
this, &IceBox::ServiceManagerPrx::_iceI_startService, service, context);
677 _makePromiseOutgoing<void>(
true,
this, &ServiceManagerPrx::_iceI_stopService, service, context).get();
686 template<
template<
typename>
class P = ::std::promise>
688 -> decltype(::std::declval<P<void>>().get_future())
690 return _makePromiseOutgoing<void, P>(
false,
this, &ServiceManagerPrx::_iceI_stopService, service, context);
702 ::std::function<void()>
704 ::std::function<
void()> response,
705 ::std::function<
void(::std::exception_ptr)> ex =
nullptr,
706 ::std::function<
void(
bool)> sent =
nullptr,
709 return _makeLamdaOutgoing<void>(std::move(response), std::move(ex), std::move(sent),
this, &IceBox::ServiceManagerPrx::_iceI_stopService, service, context);
723 _makePromiseOutgoing<void>(
true,
this, &ServiceManagerPrx::_iceI_addObserver, observer, context).get();
732 template<
template<
typename>
class P = ::std::promise>
734 -> decltype(::std::declval<P<void>>().get_future())
736 return _makePromiseOutgoing<void, P>(
false,
this, &ServiceManagerPrx::_iceI_addObserver, observer, context);
748 ::std::function<void()>
750 ::std::function<
void()> response,
751 ::std::function<
void(::std::exception_ptr)> ex =
nullptr,
752 ::std::function<
void(
bool)> sent =
nullptr,
755 return _makeLamdaOutgoing<void>(std::move(response), std::move(ex), std::move(sent),
this, &IceBox::ServiceManagerPrx::_iceI_addObserver, observer, context);
768 _makePromiseOutgoing<void>(
true,
this, &ServiceManagerPrx::_iceI_shutdown, context).get();
776 template<
template<
typename>
class P = ::std::promise>
778 -> decltype(::std::declval<P<void>>().get_future())
780 return _makePromiseOutgoing<void, P>(
false,
this, &ServiceManagerPrx::_iceI_shutdown, context);
791 ::std::function<void()>
793 ::std::function<
void(::std::exception_ptr)> ex =
nullptr,
794 ::std::function<
void(
bool)> sent =
nullptr,
797 return _makeLamdaOutgoing<void>(std::move(response), std::move(ex), std::move(sent),
this, &IceBox::ServiceManagerPrx::_iceI_shutdown, context);
814 friend ::std::shared_ptr<ServiceManagerPrx> IceInternal::createProxy<ServiceManagerPrx>();
816 ICE_MEMBER(
ICEBOX_API) virtual ::std::shared_ptr<::Ice::ObjectPrx> _newInstance()
const override;
833 using ServicePtr = ::std::shared_ptr<Service>;
835 using ServiceObserverPtr = ::std::shared_ptr<ServiceObserver>;
836 using ServiceObserverPrxPtr = ::std::shared_ptr<ServiceObserverPrx>;
838 using ServiceManagerPtr = ::std::shared_ptr<ServiceManager>;
839 using ServiceManagerPrxPtr = ::std::shared_ptr<ServiceManagerPrx>;
844 #else // C++98 mapping
852 class ServiceObserver;
855 ICEBOX_API ::IceProxy::Ice::Object* upCast(ServiceObserver*);
858 class ServiceManager;
861 ICEBOX_API ::IceProxy::Ice::Object* upCast(ServiceManager*);
873 ICEBOX_API ::Ice::LocalObject* upCast(Service*);
875 typedef ::IceInternal::Handle< Service> ServicePtr;
877 class ServiceObserver;
879 ICEBOX_API ::Ice::Object* upCast(ServiceObserver*);
881 typedef ::IceInternal::Handle< ServiceObserver> ServiceObserverPtr;
882 typedef ::IceInternal::ProxyHandle< ::IceProxy::IceBox::ServiceObserver> ServiceObserverPrx;
883 typedef ServiceObserverPrx ServiceObserverPrxPtr;
885 ICEBOX_API void _icePatchObjectPtr(ServiceObserverPtr&, const ::Ice::ObjectPtr&);
888 class ServiceManager;
890 ICEBOX_API ::Ice::Object* upCast(ServiceManager*);
892 typedef ::IceInternal::Handle< ServiceManager> ServiceManagerPtr;
893 typedef ::IceInternal::ProxyHandle< ::IceProxy::IceBox::ServiceManager> ServiceManagerPrx;
894 typedef ServiceManagerPrx ServiceManagerPrxPtr;
896 ICEBOX_API void _icePatchObjectPtr(ServiceManagerPtr&, const ::Ice::ObjectPtr&);
920 FailureException(
const char* file,
int line);
928 FailureException(
const char* file,
int line, const ::std::string& reason);
930 #ifdef ICE_CPP11_COMPILER
931 FailureException(
const FailureException&) =
default;
932 virtual ~FailureException();
934 virtual ~FailureException() throw();
941 virtual ::std::string ice_id()
const;
946 virtual void ice_print(::std::ostream& stream)
const;
951 virtual FailureException* ice_clone()
const;
955 virtual void ice_throw()
const;
960 ::std::string reason;
972 AlreadyStartedException() {}
974 #ifdef ICE_CPP11_COMPILER
975 AlreadyStartedException(
const AlreadyStartedException&) =
default;
976 virtual ~AlreadyStartedException();
978 virtual ~AlreadyStartedException() throw();
985 virtual ::std::string ice_id()
const;
990 virtual AlreadyStartedException* ice_clone()
const;
994 virtual void ice_throw()
const;
1005 static AlreadyStartedException _iceS_AlreadyStartedException_init;
1017 AlreadyStoppedException() {}
1019 #ifdef ICE_CPP11_COMPILER
1020 AlreadyStoppedException(
const AlreadyStoppedException&) =
default;
1021 virtual ~AlreadyStoppedException();
1023 virtual ~AlreadyStoppedException() throw();
1030 virtual ::std::string ice_id()
const;
1035 virtual AlreadyStoppedException* ice_clone()
const;
1039 virtual void ice_throw()
const;
1058 NoSuchServiceException() {}
1060 #ifdef ICE_CPP11_COMPILER
1061 NoSuchServiceException(
const NoSuchServiceException&) =
default;
1062 virtual ~NoSuchServiceException();
1064 virtual ~NoSuchServiceException() throw();
1071 virtual ::std::string ice_id()
const;
1076 virtual NoSuchServiceException* ice_clone()
const;
1080 virtual void ice_throw()
const;
1100 class Callback_ServiceObserver_servicesStarted_Base :
public virtual ::IceInternal::CallbackBase { };
1101 typedef ::IceUtil::Handle< Callback_ServiceObserver_servicesStarted_Base> Callback_ServiceObserver_servicesStartedPtr;
1108 class Callback_ServiceObserver_servicesStopped_Base :
public virtual ::IceInternal::CallbackBase { };
1109 typedef ::IceUtil::Handle< Callback_ServiceObserver_servicesStopped_Base> Callback_ServiceObserver_servicesStoppedPtr;
1116 class Callback_ServiceManager_getSliceChecksums_Base :
public virtual ::IceInternal::CallbackBase { };
1117 typedef ::IceUtil::Handle< Callback_ServiceManager_getSliceChecksums_Base> Callback_ServiceManager_getSliceChecksumsPtr;
1124 class Callback_ServiceManager_startService_Base :
public virtual ::IceInternal::CallbackBase { };
1125 typedef ::IceUtil::Handle< Callback_ServiceManager_startService_Base> Callback_ServiceManager_startServicePtr;
1132 class Callback_ServiceManager_stopService_Base :
public virtual ::IceInternal::CallbackBase { };
1133 typedef ::IceUtil::Handle< Callback_ServiceManager_stopService_Base> Callback_ServiceManager_stopServicePtr;
1140 class Callback_ServiceManager_addObserver_Base :
public virtual ::IceInternal::CallbackBase { };
1141 typedef ::IceUtil::Handle< Callback_ServiceManager_addObserver_Base> Callback_ServiceManager_addObserverPtr;
1148 class Callback_ServiceManager_shutdown_Base :
public virtual ::IceInternal::CallbackBase { };
1149 typedef ::IceUtil::Handle< Callback_ServiceManager_shutdown_Base> Callback_ServiceManager_shutdownPtr;
1159 class ICE_CLASS(ICEBOX_API) ServiceObserver :
public virtual ::Ice::Proxy<ServiceObserver, ::IceProxy::Ice::Object>
1170 end_servicesStarted(_iceI_begin_servicesStarted(services, context, ::IceInternal::dummyCallback, 0,
true));
1181 return _iceI_begin_servicesStarted(services, context, ::IceInternal::dummyCallback, 0);
1206 return _iceI_begin_servicesStarted(services, context, cb, cookie);
1231 return _iceI_begin_servicesStarted(services, context, cb, cookie);
1253 end_servicesStopped(_iceI_begin_servicesStopped(services, context, ::IceInternal::dummyCallback, 0,
true));
1264 return _iceI_begin_servicesStopped(services, context, ::IceInternal::dummyCallback, 0);
1289 return _iceI_begin_servicesStopped(services, context, cb, cookie);
1314 return _iceI_begin_servicesStopped(services, context, cb, cookie);
1342 class ICE_CLASS(ICEBOX_API) ServiceManager :
public virtual ::Ice::Proxy<ServiceManager, ::IceProxy::Ice::Object>
1353 return end_getSliceChecksums(_iceI_begin_getSliceChecksums(context, ::IceInternal::dummyCallback, 0,
true));
1363 return _iceI_begin_getSliceChecksums(context, ::IceInternal::dummyCallback, 0);
1386 return _iceI_begin_getSliceChecksums(context, cb, cookie);
1395 ::Ice::AsyncResultPtr begin_getSliceChecksums(const ::IceBox::Callback_ServiceManager_getSliceChecksumsPtr& cb,
const ::Ice::LocalObjectPtr& cookie = 0)
1409 return _iceI_begin_getSliceChecksums(context, cb, cookie);
1434 end_startService(_iceI_begin_startService(service, context, ::IceInternal::dummyCallback, 0,
true));
1445 return _iceI_begin_startService(service, context, ::IceInternal::dummyCallback, 0);
1455 ::Ice::AsyncResultPtr begin_startService(const ::std::string& service, const ::Ice::CallbackPtr& cb,
const ::Ice::LocalObjectPtr& cookie = 0)
1470 return _iceI_begin_startService(service, context, cb, cookie);
1480 ::Ice::AsyncResultPtr begin_startService(const ::std::string& service, const ::IceBox::Callback_ServiceManager_startServicePtr& cb,
const ::Ice::LocalObjectPtr& cookie = 0)
1495 return _iceI_begin_startService(service, context, cb, cookie);
1521 end_stopService(_iceI_begin_stopService(service, context, ::IceInternal::dummyCallback, 0,
true));
1532 return _iceI_begin_stopService(service, context, ::IceInternal::dummyCallback, 0);
1542 ::Ice::AsyncResultPtr begin_stopService(const ::std::string& service, const ::Ice::CallbackPtr& cb,
const ::Ice::LocalObjectPtr& cookie = 0)
1557 return _iceI_begin_stopService(service, context, cb, cookie);
1567 ::Ice::AsyncResultPtr begin_stopService(const ::std::string& service, const ::IceBox::Callback_ServiceManager_stopServicePtr& cb,
const ::Ice::LocalObjectPtr& cookie = 0)
1582 return _iceI_begin_stopService(service, context, cb, cookie);
1606 end_addObserver(_iceI_begin_addObserver(observer, context, ::IceInternal::dummyCallback, 0,
true));
1617 return _iceI_begin_addObserver(observer, context, ::IceInternal::dummyCallback, 0);
1627 ::Ice::AsyncResultPtr begin_addObserver(const ::IceBox::ServiceObserverPrx& observer, const ::Ice::CallbackPtr& cb,
const ::Ice::LocalObjectPtr& cookie = 0)
1642 return _iceI_begin_addObserver(observer, context, cb, cookie);
1652 ::Ice::AsyncResultPtr begin_addObserver(const ::IceBox::ServiceObserverPrx& observer, const ::IceBox::Callback_ServiceManager_addObserverPtr& cb,
const ::Ice::LocalObjectPtr& cookie = 0)
1667 return _iceI_begin_addObserver(observer, context, cb, cookie);
1688 end_shutdown(_iceI_begin_shutdown(context, ::IceInternal::dummyCallback, 0,
true));
1698 return _iceI_begin_shutdown(context, ::IceInternal::dummyCallback, 0);
1721 return _iceI_begin_shutdown(context, cb, cookie);
1730 ::Ice::AsyncResultPtr begin_shutdown(const ::IceBox::Callback_ServiceManager_shutdownPtr& cb,
const ::Ice::LocalObjectPtr& cookie = 0)
1744 return _iceI_begin_shutdown(context, cb, cookie);
1783 class ICEBOX_API Service :
public virtual ::Ice::LocalObject
1787 typedef ServicePtr PointerType;
1791 #ifdef ICE_CPP11_COMPILER
1792 Service() =
default;
1793 Service(
const Service&) =
default;
1794 Service& operator=(
const Service&) =
default;
1812 virtual void start(const ::std::string& name, const ::Ice::CommunicatorPtr& communicator,
const ::Ice::StringSeq& args) = 0;
1817 virtual void stop() = 0;
1821 inline bool operator==(
const Service& lhs,
const Service& rhs)
1823 return static_cast<const ::Ice::LocalObject&
>(lhs) ==
static_cast<const ::Ice::LocalObject&
>(rhs);
1826 inline bool operator<(
const Service& lhs,
const Service& rhs)
1828 return static_cast<const ::Ice::LocalObject&
>(lhs) <
static_cast<const ::Ice::LocalObject&
>(rhs);
1842 typedef ServiceObserverPrx ProxyType;
1843 typedef ServiceObserverPtr PointerType;
1845 virtual ~ServiceObserver();
1847 #ifdef ICE_CPP11_COMPILER
1848 ServiceObserver() =
default;
1849 ServiceObserver(
const ServiceObserver&) =
default;
1850 ServiceObserver& operator=(
const ServiceObserver&) =
default;
1859 virtual bool ice_isA(const ::std::string&
id, const ::Ice::Current& current = ::
Ice::emptyCurrent)
const;
1866 virtual ::std::vector< ::std::string> ice_ids(const ::Ice::Current& current = ::
Ice::emptyCurrent)
const;
1873 virtual const ::std::string& ice_id(const ::Ice::Current& current = ::
Ice::emptyCurrent)
const;
1879 static const ::std::string& ice_staticId();
1888 bool _iceD_servicesStarted(::IceInternal::Incoming&, const ::Ice::Current&);
1898 bool _iceD_servicesStopped(::IceInternal::Incoming&, const ::Ice::Current&);
1902 virtual bool _iceDispatch(::IceInternal::Incoming&, const ::Ice::Current&);
1914 inline bool operator==(
const ServiceObserver& lhs,
const ServiceObserver& rhs)
1919 inline bool operator<(
const ServiceObserver& lhs,
const ServiceObserver& rhs)
1934 typedef ServiceManagerPrx ProxyType;
1935 typedef ServiceManagerPtr PointerType;
1937 virtual ~ServiceManager();
1939 #ifdef ICE_CPP11_COMPILER
1940 ServiceManager() =
default;
1941 ServiceManager(
const ServiceManager&) =
default;
1942 ServiceManager& operator=(
const ServiceManager&) =
default;
1951 virtual bool ice_isA(const ::std::string&
id, const ::Ice::Current& current = ::
Ice::emptyCurrent)
const;
1958 virtual ::std::vector< ::std::string> ice_ids(const ::Ice::Current& current = ::
Ice::emptyCurrent)
const;
1965 virtual const ::std::string& ice_id(const ::Ice::Current& current = ::
Ice::emptyCurrent)
const;
1971 static const ::std::string& ice_staticId();
1980 bool _iceD_getSliceChecksums(::IceInternal::Incoming&, const ::Ice::Current&)
const;
1990 virtual void startService(const ::std::string& service, const ::Ice::Current& current = ::
Ice::emptyCurrent) = 0;
1992 bool _iceD_startService(::IceInternal::Incoming&, const ::Ice::Current&);
2002 virtual void stopService(const ::std::string& service, const ::Ice::Current& current = ::
Ice::emptyCurrent) = 0;
2004 bool _iceD_stopService(::IceInternal::Incoming&, const ::Ice::Current&);
2012 virtual void addObserver(
const ServiceObserverPrx& observer, const ::Ice::Current& current = ::
Ice::emptyCurrent) = 0;
2014 bool _iceD_addObserver(::IceInternal::Incoming&, const ::Ice::Current&);
2023 bool _iceD_shutdown(::IceInternal::Incoming&, const ::Ice::Current&);
2027 virtual bool _iceDispatch(::IceInternal::Incoming&, const ::Ice::Current&);
2039 inline bool operator==(
const ServiceManager& lhs,
const ServiceManager& rhs)
2044 inline bool operator<(
const ServiceManager& lhs,
const ServiceManager& rhs)
2059 static const StreamHelperCategory helper = StreamHelperCategoryUserException;
2065 static const StreamHelperCategory helper = StreamHelperCategoryUserException;
2071 static const StreamHelperCategory helper = StreamHelperCategoryUserException;
2086 class CallbackNC_ServiceObserver_servicesStarted :
public Callback_ServiceObserver_servicesStarted_Base,
public ::IceInternal::OnewayCallbackNC<T>
2093 typedef void (T::*Sent)(bool);
2094 typedef void (T::*Response)();
2096 CallbackNC_ServiceObserver_servicesStarted(
const TPtr& obj, Response cb,
Exception excb, Sent sentcb)
2097 : ::IceInternal::OnewayCallbackNC<T>(obj, cb, excb, sentcb)
2110 template<
class T> Callback_ServiceObserver_servicesStartedPtr
2113 return new CallbackNC_ServiceObserver_servicesStarted<T>(instance, cb, excb, sentcb);
2123 template<
class T> Callback_ServiceObserver_servicesStartedPtr
2126 return new CallbackNC_ServiceObserver_servicesStarted<T>(instance, 0, excb, sentcb);
2137 template<
class T> Callback_ServiceObserver_servicesStartedPtr
2138 newCallback_ServiceObserver_servicesStarted(T* instance,
void (T::*cb)(),
void (T::*excb)(
const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
2140 return new CallbackNC_ServiceObserver_servicesStarted<T>(instance, cb, excb, sentcb);
2150 template<
class T> Callback_ServiceObserver_servicesStartedPtr
2151 newCallback_ServiceObserver_servicesStarted(T* instance,
void (T::*excb)(
const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
2153 return new CallbackNC_ServiceObserver_servicesStarted<T>(instance, 0, excb, sentcb);
2161 template<
class T,
typename CT>
2162 class Callback_ServiceObserver_servicesStarted :
public Callback_ServiceObserver_servicesStarted_Base,
public ::IceInternal::OnewayCallback<T, CT>
2169 typedef void (T::*Sent)(bool ,
const CT&);
2170 typedef void (T::*Response)(
const CT&);
2172 Callback_ServiceObserver_servicesStarted(
const TPtr& obj, Response cb,
Exception excb, Sent sentcb)
2173 : ::IceInternal::OnewayCallback<T, CT>(obj, cb, excb, sentcb)
2187 template<
class T,
typename CT> Callback_ServiceObserver_servicesStartedPtr
2188 newCallback_ServiceObserver_servicesStarted(
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)
2190 return new Callback_ServiceObserver_servicesStarted<T, CT>(instance, cb, excb, sentcb);
2201 template<
class T,
typename CT> Callback_ServiceObserver_servicesStartedPtr
2204 return new Callback_ServiceObserver_servicesStarted<T, CT>(instance, 0, excb, sentcb);
2216 template<
class T,
typename CT> Callback_ServiceObserver_servicesStartedPtr
2217 newCallback_ServiceObserver_servicesStarted(T* instance,
void (T::*cb)(
const CT&),
void (T::*excb)(
const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
2219 return new Callback_ServiceObserver_servicesStarted<T, CT>(instance, cb, excb, sentcb);
2230 template<
class T,
typename CT> Callback_ServiceObserver_servicesStartedPtr
2231 newCallback_ServiceObserver_servicesStarted(T* instance,
void (T::*excb)(
const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
2233 return new Callback_ServiceObserver_servicesStarted<T, CT>(instance, 0, excb, sentcb);
2242 class CallbackNC_ServiceObserver_servicesStopped :
public Callback_ServiceObserver_servicesStopped_Base,
public ::IceInternal::OnewayCallbackNC<T>
2249 typedef void (T::*Sent)(bool);
2250 typedef void (T::*Response)();
2252 CallbackNC_ServiceObserver_servicesStopped(
const TPtr& obj, Response cb,
Exception excb, Sent sentcb)
2253 : ::IceInternal::OnewayCallbackNC<T>(obj, cb, excb, sentcb)
2266 template<
class T> Callback_ServiceObserver_servicesStoppedPtr
2269 return new CallbackNC_ServiceObserver_servicesStopped<T>(instance, cb, excb, sentcb);
2279 template<
class T> Callback_ServiceObserver_servicesStoppedPtr
2282 return new CallbackNC_ServiceObserver_servicesStopped<T>(instance, 0, excb, sentcb);
2293 template<
class T> Callback_ServiceObserver_servicesStoppedPtr
2294 newCallback_ServiceObserver_servicesStopped(T* instance,
void (T::*cb)(),
void (T::*excb)(
const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
2296 return new CallbackNC_ServiceObserver_servicesStopped<T>(instance, cb, excb, sentcb);
2306 template<
class T> Callback_ServiceObserver_servicesStoppedPtr
2307 newCallback_ServiceObserver_servicesStopped(T* instance,
void (T::*excb)(
const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
2309 return new CallbackNC_ServiceObserver_servicesStopped<T>(instance, 0, excb, sentcb);
2317 template<
class T,
typename CT>
2318 class Callback_ServiceObserver_servicesStopped :
public Callback_ServiceObserver_servicesStopped_Base,
public ::IceInternal::OnewayCallback<T, CT>
2325 typedef void (T::*Sent)(bool ,
const CT&);
2326 typedef void (T::*Response)(
const CT&);
2328 Callback_ServiceObserver_servicesStopped(
const TPtr& obj, Response cb,
Exception excb, Sent sentcb)
2329 : ::IceInternal::OnewayCallback<T, CT>(obj, cb, excb, sentcb)
2343 template<
class T,
typename CT> Callback_ServiceObserver_servicesStoppedPtr
2344 newCallback_ServiceObserver_servicesStopped(
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)
2346 return new Callback_ServiceObserver_servicesStopped<T, CT>(instance, cb, excb, sentcb);
2357 template<
class T,
typename CT> Callback_ServiceObserver_servicesStoppedPtr
2360 return new Callback_ServiceObserver_servicesStopped<T, CT>(instance, 0, excb, sentcb);
2372 template<
class T,
typename CT> Callback_ServiceObserver_servicesStoppedPtr
2373 newCallback_ServiceObserver_servicesStopped(T* instance,
void (T::*cb)(
const CT&),
void (T::*excb)(
const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
2375 return new Callback_ServiceObserver_servicesStopped<T, CT>(instance, cb, excb, sentcb);
2386 template<
class T,
typename CT> Callback_ServiceObserver_servicesStoppedPtr
2387 newCallback_ServiceObserver_servicesStopped(T* instance,
void (T::*excb)(
const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
2389 return new Callback_ServiceObserver_servicesStopped<T, CT>(instance, 0, excb, sentcb);
2398 class CallbackNC_ServiceManager_getSliceChecksums :
public Callback_ServiceManager_getSliceChecksums_Base,
public ::IceInternal::TwowayCallbackNC<T>
2405 typedef void (T::*Sent)(bool);
2408 CallbackNC_ServiceManager_getSliceChecksums(
const TPtr& obj, Response cb,
Exception excb, Sent sentcb)
2409 : ::IceInternal::TwowayCallbackNC<T>(obj, cb != 0, excb, sentcb), _response(cb)
2414 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
2420 ret = proxy->end_getSliceChecksums(result);
2424 ::IceInternal::CallbackNC<T>::exception(result, ex);
2429 (::IceInternal::CallbackNC<T>::_callback.get()->*_response)(ret);
2447 template<
class T> Callback_ServiceManager_getSliceChecksumsPtr
2450 return new CallbackNC_ServiceManager_getSliceChecksums<T>(instance, cb, excb, sentcb);
2461 template<
class T> Callback_ServiceManager_getSliceChecksumsPtr
2464 return new CallbackNC_ServiceManager_getSliceChecksums<T>(instance, cb, excb, sentcb);
2472 template<
class T,
typename CT>
2473 class Callback_ServiceManager_getSliceChecksums :
public Callback_ServiceManager_getSliceChecksums_Base,
public ::IceInternal::TwowayCallback<T, CT>
2480 typedef void (T::*Sent)(bool ,
const CT&);
2483 Callback_ServiceManager_getSliceChecksums(
const TPtr& obj, Response cb,
Exception excb, Sent sentcb)
2484 : ::IceInternal::TwowayCallback<T, CT>(obj, cb != 0, excb, sentcb), _response(cb)
2489 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
2495 ret = proxy->end_getSliceChecksums(result);
2499 ::IceInternal::Callback<T, CT>::exception(result, ex);
2504 (::IceInternal::Callback<T, CT>::_callback.get()->*_response)(ret, CT::dynamicCast(result->getCookie()));
2523 template<
class T,
typename CT> Callback_ServiceManager_getSliceChecksumsPtr
2526 return new Callback_ServiceManager_getSliceChecksums<T, CT>(instance, cb, excb, sentcb);
2538 template<
class T,
typename CT> Callback_ServiceManager_getSliceChecksumsPtr
2541 return new Callback_ServiceManager_getSliceChecksums<T, CT>(instance, cb, excb, sentcb);
2550 class CallbackNC_ServiceManager_startService :
public Callback_ServiceManager_startService_Base,
public ::IceInternal::TwowayCallbackNC<T>
2557 typedef void (T::*Sent)(bool);
2558 typedef void (T::*Response)();
2560 CallbackNC_ServiceManager_startService(
const TPtr& obj, Response cb,
Exception excb, Sent sentcb)
2561 : ::IceInternal::TwowayCallbackNC<T>(obj, cb != 0, excb, sentcb), _response(cb)
2566 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
2571 proxy->end_startService(result);
2575 ::IceInternal::CallbackNC<T>::exception(result, ex);
2580 (::IceInternal::CallbackNC<T>::_callback.get()->*_response)();
2598 template<
class T> Callback_ServiceManager_startServicePtr
2601 return new CallbackNC_ServiceManager_startService<T>(instance, cb, excb, sentcb);
2611 template<
class T> Callback_ServiceManager_startServicePtr
2614 return new CallbackNC_ServiceManager_startService<T>(instance, 0, excb, sentcb);
2625 template<
class T> Callback_ServiceManager_startServicePtr
2626 newCallback_ServiceManager_startService(T* instance,
void (T::*cb)(),
void (T::*excb)(
const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
2628 return new CallbackNC_ServiceManager_startService<T>(instance, cb, excb, sentcb);
2638 template<
class T> Callback_ServiceManager_startServicePtr
2639 newCallback_ServiceManager_startService(T* instance,
void (T::*excb)(
const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
2641 return new CallbackNC_ServiceManager_startService<T>(instance, 0, excb, sentcb);
2649 template<
class T,
typename CT>
2650 class Callback_ServiceManager_startService :
public Callback_ServiceManager_startService_Base,
public ::IceInternal::TwowayCallback<T, CT>
2657 typedef void (T::*Sent)(bool ,
const CT&);
2658 typedef void (T::*Response)(
const CT&);
2660 Callback_ServiceManager_startService(
const TPtr& obj, Response cb,
Exception excb, Sent sentcb)
2661 : ::IceInternal::TwowayCallback<T, CT>(obj, cb != 0, excb, sentcb), _response(cb)
2666 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
2671 proxy->end_startService(result);
2675 ::IceInternal::Callback<T, CT>::exception(result, ex);
2680 (::IceInternal::Callback<T, CT>::_callback.get()->*_response)(CT::dynamicCast(result->getCookie()));
2699 template<
class T,
typename CT> Callback_ServiceManager_startServicePtr
2702 return new Callback_ServiceManager_startService<T, CT>(instance, cb, excb, sentcb);
2713 template<
class T,
typename CT> Callback_ServiceManager_startServicePtr
2716 return new Callback_ServiceManager_startService<T, CT>(instance, 0, excb, sentcb);
2728 template<
class T,
typename CT> Callback_ServiceManager_startServicePtr
2729 newCallback_ServiceManager_startService(T* instance,
void (T::*cb)(
const CT&),
void (T::*excb)(
const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
2731 return new Callback_ServiceManager_startService<T, CT>(instance, cb, excb, sentcb);
2742 template<
class T,
typename CT> Callback_ServiceManager_startServicePtr
2743 newCallback_ServiceManager_startService(T* instance,
void (T::*excb)(
const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
2745 return new Callback_ServiceManager_startService<T, CT>(instance, 0, excb, sentcb);
2754 class CallbackNC_ServiceManager_stopService :
public Callback_ServiceManager_stopService_Base,
public ::IceInternal::TwowayCallbackNC<T>
2761 typedef void (T::*Sent)(bool);
2762 typedef void (T::*Response)();
2764 CallbackNC_ServiceManager_stopService(
const TPtr& obj, Response cb,
Exception excb, Sent sentcb)
2765 : ::IceInternal::TwowayCallbackNC<T>(obj, cb != 0, excb, sentcb), _response(cb)
2770 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
2775 proxy->end_stopService(result);
2779 ::IceInternal::CallbackNC<T>::exception(result, ex);
2784 (::IceInternal::CallbackNC<T>::_callback.get()->*_response)();
2802 template<
class T> Callback_ServiceManager_stopServicePtr
2805 return new CallbackNC_ServiceManager_stopService<T>(instance, cb, excb, sentcb);
2815 template<
class T> Callback_ServiceManager_stopServicePtr
2818 return new CallbackNC_ServiceManager_stopService<T>(instance, 0, excb, sentcb);
2829 template<
class T> Callback_ServiceManager_stopServicePtr
2830 newCallback_ServiceManager_stopService(T* instance,
void (T::*cb)(),
void (T::*excb)(
const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
2832 return new CallbackNC_ServiceManager_stopService<T>(instance, cb, excb, sentcb);
2842 template<
class T> Callback_ServiceManager_stopServicePtr
2843 newCallback_ServiceManager_stopService(T* instance,
void (T::*excb)(
const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
2845 return new CallbackNC_ServiceManager_stopService<T>(instance, 0, excb, sentcb);
2853 template<
class T,
typename CT>
2854 class Callback_ServiceManager_stopService :
public Callback_ServiceManager_stopService_Base,
public ::IceInternal::TwowayCallback<T, CT>
2861 typedef void (T::*Sent)(bool ,
const CT&);
2862 typedef void (T::*Response)(
const CT&);
2864 Callback_ServiceManager_stopService(
const TPtr& obj, Response cb,
Exception excb, Sent sentcb)
2865 : ::IceInternal::TwowayCallback<T, CT>(obj, cb != 0, excb, sentcb), _response(cb)
2870 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
2875 proxy->end_stopService(result);
2879 ::IceInternal::Callback<T, CT>::exception(result, ex);
2884 (::IceInternal::Callback<T, CT>::_callback.get()->*_response)(CT::dynamicCast(result->getCookie()));
2903 template<
class T,
typename CT> Callback_ServiceManager_stopServicePtr
2906 return new Callback_ServiceManager_stopService<T, CT>(instance, cb, excb, sentcb);
2917 template<
class T,
typename CT> Callback_ServiceManager_stopServicePtr
2920 return new Callback_ServiceManager_stopService<T, CT>(instance, 0, excb, sentcb);
2932 template<
class T,
typename CT> Callback_ServiceManager_stopServicePtr
2933 newCallback_ServiceManager_stopService(T* instance,
void (T::*cb)(
const CT&),
void (T::*excb)(
const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
2935 return new Callback_ServiceManager_stopService<T, CT>(instance, cb, excb, sentcb);
2946 template<
class T,
typename CT> Callback_ServiceManager_stopServicePtr
2947 newCallback_ServiceManager_stopService(T* instance,
void (T::*excb)(
const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
2949 return new Callback_ServiceManager_stopService<T, CT>(instance, 0, excb, sentcb);
2958 class CallbackNC_ServiceManager_addObserver :
public Callback_ServiceManager_addObserver_Base,
public ::IceInternal::OnewayCallbackNC<T>
2965 typedef void (T::*Sent)(bool);
2966 typedef void (T::*Response)();
2968 CallbackNC_ServiceManager_addObserver(
const TPtr& obj, Response cb,
Exception excb, Sent sentcb)
2969 : ::IceInternal::OnewayCallbackNC<T>(obj, cb, excb, sentcb)
2982 template<
class T> Callback_ServiceManager_addObserverPtr
2985 return new CallbackNC_ServiceManager_addObserver<T>(instance, cb, excb, sentcb);
2995 template<
class T> Callback_ServiceManager_addObserverPtr
2998 return new CallbackNC_ServiceManager_addObserver<T>(instance, 0, excb, sentcb);
3009 template<
class T> Callback_ServiceManager_addObserverPtr
3010 newCallback_ServiceManager_addObserver(T* instance,
void (T::*cb)(),
void (T::*excb)(
const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
3012 return new CallbackNC_ServiceManager_addObserver<T>(instance, cb, excb, sentcb);
3022 template<
class T> Callback_ServiceManager_addObserverPtr
3023 newCallback_ServiceManager_addObserver(T* instance,
void (T::*excb)(
const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
3025 return new CallbackNC_ServiceManager_addObserver<T>(instance, 0, excb, sentcb);
3033 template<
class T,
typename CT>
3034 class Callback_ServiceManager_addObserver :
public Callback_ServiceManager_addObserver_Base,
public ::IceInternal::OnewayCallback<T, CT>
3041 typedef void (T::*Sent)(bool ,
const CT&);
3042 typedef void (T::*Response)(
const CT&);
3044 Callback_ServiceManager_addObserver(
const TPtr& obj, Response cb,
Exception excb, Sent sentcb)
3045 : ::IceInternal::OnewayCallback<T, CT>(obj, cb, excb, sentcb)
3059 template<
class T,
typename CT> Callback_ServiceManager_addObserverPtr
3062 return new Callback_ServiceManager_addObserver<T, CT>(instance, cb, excb, sentcb);
3073 template<
class T,
typename CT> Callback_ServiceManager_addObserverPtr
3076 return new Callback_ServiceManager_addObserver<T, CT>(instance, 0, excb, sentcb);
3088 template<
class T,
typename CT> Callback_ServiceManager_addObserverPtr
3089 newCallback_ServiceManager_addObserver(T* instance,
void (T::*cb)(
const CT&),
void (T::*excb)(
const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
3091 return new Callback_ServiceManager_addObserver<T, CT>(instance, cb, excb, sentcb);
3102 template<
class T,
typename CT> Callback_ServiceManager_addObserverPtr
3103 newCallback_ServiceManager_addObserver(T* instance,
void (T::*excb)(
const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
3105 return new Callback_ServiceManager_addObserver<T, CT>(instance, 0, excb, sentcb);
3114 class CallbackNC_ServiceManager_shutdown :
public Callback_ServiceManager_shutdown_Base,
public ::IceInternal::OnewayCallbackNC<T>
3121 typedef void (T::*Sent)(bool);
3122 typedef void (T::*Response)();
3124 CallbackNC_ServiceManager_shutdown(
const TPtr& obj, Response cb,
Exception excb, Sent sentcb)
3125 : ::IceInternal::OnewayCallbackNC<T>(obj, cb, excb, sentcb)
3138 template<
class T> Callback_ServiceManager_shutdownPtr
3141 return new CallbackNC_ServiceManager_shutdown<T>(instance, cb, excb, sentcb);
3151 template<
class T> Callback_ServiceManager_shutdownPtr
3154 return new CallbackNC_ServiceManager_shutdown<T>(instance, 0, excb, sentcb);
3165 template<
class T> Callback_ServiceManager_shutdownPtr
3166 newCallback_ServiceManager_shutdown(T* instance,
void (T::*cb)(),
void (T::*excb)(
const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
3168 return new CallbackNC_ServiceManager_shutdown<T>(instance, cb, excb, sentcb);
3178 template<
class T> Callback_ServiceManager_shutdownPtr
3179 newCallback_ServiceManager_shutdown(T* instance,
void (T::*excb)(
const ::Ice::Exception&),
void (T::*sentcb)(
bool) = 0)
3181 return new CallbackNC_ServiceManager_shutdown<T>(instance, 0, excb, sentcb);
3189 template<
class T,
typename CT>
3190 class Callback_ServiceManager_shutdown :
public Callback_ServiceManager_shutdown_Base,
public ::IceInternal::OnewayCallback<T, CT>
3197 typedef void (T::*Sent)(bool ,
const CT&);
3198 typedef void (T::*Response)(
const CT&);
3200 Callback_ServiceManager_shutdown(
const TPtr& obj, Response cb,
Exception excb, Sent sentcb)
3201 : ::IceInternal::OnewayCallback<T, CT>(obj, cb, excb, sentcb)
3215 template<
class T,
typename CT> Callback_ServiceManager_shutdownPtr
3218 return new Callback_ServiceManager_shutdown<T, CT>(instance, cb, excb, sentcb);
3229 template<
class T,
typename CT> Callback_ServiceManager_shutdownPtr
3232 return new Callback_ServiceManager_shutdown<T, CT>(instance, 0, excb, sentcb);
3244 template<
class T,
typename CT> Callback_ServiceManager_shutdownPtr
3245 newCallback_ServiceManager_shutdown(T* instance,
void (T::*cb)(
const CT&),
void (T::*excb)(
const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
3247 return new Callback_ServiceManager_shutdown<T, CT>(instance, cb, excb, sentcb);
3258 template<
class T,
typename CT> Callback_ServiceManager_shutdownPtr
3259 newCallback_ServiceManager_shutdown(T* instance,
void (T::*excb)(
const ::Ice::Exception&,
const CT&),
void (T::*sentcb)(
bool,
const CT&) = 0)
3261 return new Callback_ServiceManager_shutdown<T, CT>(instance, 0, excb, sentcb);