37#if defined(_MSC_VER) && (_MSC_VER <= 1600)
62class ICE_API ProxyFlushBatchAsync :
public ProxyOutgoingAsyncBase
66 ProxyFlushBatchAsync(
const Ice::ObjectPrxPtr&);
68 virtual AsyncStatus invokeRemote(
const Ice::ConnectionIPtr&,
bool,
bool);
69 virtual AsyncStatus invokeCollocated(CollocatedRequestHandler*);
71 void invoke(
const std::string&);
77typedef IceUtil::Handle<ProxyFlushBatchAsync> ProxyFlushBatchAsyncPtr;
82class ICE_API ProxyGetConnection :
public ProxyOutgoingAsyncBase
86 ProxyGetConnection(
const Ice::ObjectPrxPtr&);
88 virtual AsyncStatus invokeRemote(
const Ice::ConnectionIPtr&,
bool,
bool);
89 virtual AsyncStatus invokeCollocated(CollocatedRequestHandler*);
91 virtual Ice::ConnectionPtr getConnection()
const;
93 void invoke(
const std::string&);
95typedef IceUtil::Handle<ProxyGetConnection> ProxyGetConnectionPtr;
99#ifdef ICE_CPP11_MAPPING
105::std::shared_ptr<P> createProxy()
107 return ::std::shared_ptr<P>(
new P());
110inline ::std::pair<const Ice::Byte*, const Ice::Byte*>
115 return {
nullptr,
nullptr };
119 return { seq.data(), seq.data() + seq.size() };
124class InvokeOutgoingAsyncT :
public OutgoingAsync
128 using OutgoingAsync::OutgoingAsync;
131 invoke(
const std::string& operation,
133 const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>& inParams,
136 _read = [](
bool ok, Ice::InputStream* stream)
138 const ::Ice::Byte* encaps;
140 stream->readEncapsulation(encaps, sz);
141 return R { ok, { encaps, encaps + sz } };
146 prepare(operation, mode, context);
147 if(inParams.first == inParams.second)
149 _os.writeEmptyEncapsulation(_encoding);
153 _os.writeEncapsulation(inParams.first,
static_cast<Ice::Int>(inParams.second - inParams.first));
155 OutgoingAsync::invoke(operation);
165 std::function<R(
bool, Ice::InputStream*)> _read;
169class InvokeLambdaOutgoing :
public InvokeOutgoingAsyncT<R>,
public LambdaInvoke
173 InvokeLambdaOutgoing(const ::std::shared_ptr<::Ice::ObjectPrx>& proxy,
174 ::std::function<
void(R)> response,
175 ::std::function<
void(::std::exception_ptr)> ex,
176 ::std::function<
void(
bool)> sent) :
177 InvokeOutgoingAsyncT<R>(proxy, false), LambdaInvoke(::std::move(ex), ::std::move(sent))
181#if ICE_CPLUSPLUS >= 201402L
183 _response = [
this, response = std::move(response)](
bool ok)
185 _response = [
this, response](
bool ok)
188 if(this->_is.b.empty())
190 response(R { ok, {
static_cast<Ice::Byte*
>(
nullptr),
static_cast<Ice::Byte*
>(
nullptr) } });
194 response(this->_read(ok, &this->_is));
201template<
typename P,
typename R>
202class InvokePromiseOutgoing :
public InvokeOutgoingAsyncT<R>,
public PromiseInvoke<P>
206 InvokePromiseOutgoing(
const std::shared_ptr<Ice::ObjectPrx>& proxy,
bool synchronous) :
207 InvokeOutgoingAsyncT<R>(proxy, false)
209 this->_synchronous = synchronous;
210 this->_response = [
this](
bool ok)
212 if(this->_is.b.empty())
214 this->_promise.set_value(R { ok, {
static_cast<Ice::Byte*
>(
nullptr),
static_cast<Ice::Byte*
>(
nullptr) } });
218 this->_promise.set_value(this->_read(ok, &this->_is));
223 virtual bool handleSent(
bool done,
bool)
override
227 this->_promise.set_value(R {
true, {
static_cast<Ice::Byte*
>(
nullptr),
static_cast<Ice::Byte*
>(
nullptr) } });
233class ProxyGetConnectionLambda :
public ProxyGetConnection,
public LambdaInvoke
237 ProxyGetConnectionLambda(const ::std::shared_ptr<::Ice::ObjectPrx>& proxy,
238 ::std::function<
void(::std::shared_ptr<Ice::Connection>)> response,
239 ::std::function<
void(::std::exception_ptr)> ex,
240 ::std::function<
void(
bool)> sent) :
241 ProxyGetConnection(proxy), LambdaInvoke(::std::move(ex), ::std::move(sent))
243#if ICE_CPLUSPLUS >= 201402L
244 _response = [&, response = std::move(response)](bool)
246 _response = [&, response](bool)
249 response(getConnection());
255class ProxyGetConnectionPromise :
public ProxyGetConnection,
public PromiseInvoke<P>
259 ProxyGetConnectionPromise(const ::std::shared_ptr<::Ice::ObjectPrx>& proxy) : ProxyGetConnection(proxy)
261 this->_response = [&](bool)
263 this->_promise.set_value(getConnection());
268class ProxyFlushBatchLambda :
public ProxyFlushBatchAsync,
public LambdaInvoke
272 ProxyFlushBatchLambda(const ::std::shared_ptr<::Ice::ObjectPrx>& proxy,
273 ::std::function<
void(::std::exception_ptr)> ex,
274 ::std::function<
void(
bool)> sent) :
275 ProxyFlushBatchAsync(proxy), LambdaInvoke(::std::move(ex), ::std::move(sent))
281class ProxyFlushBatchPromise :
public ProxyFlushBatchAsync,
public PromiseInvoke<P>
285 using ProxyFlushBatchAsync::ProxyFlushBatchAsync;
287 virtual bool handleSent(
bool,
bool)
override
289 this->_promise.set_value();
301using RouterPrxPtr = ::std::shared_ptr<::Ice::RouterPrx>;
306using LocatorPrxPtr = ::std::shared_ptr<::Ice::LocatorPrx>;
347 return _makePromiseOutgoing<bool>(
true,
this, &ObjectPrx::_iceI_isA, typeId, context).get();
359 ::std::function<void()>
361 ::std::function<
void(
bool)> response,
362 ::std::function<
void(::std::exception_ptr)> ex =
nullptr,
363 ::std::function<
void(
bool)> sent =
nullptr,
366 return _makeLambdaOutgoing<bool>(std::move(response), std::move(ex), std::move(sent),
this,
367 &ObjectPrx::_iceI_isA, typeId, context);
376 template<
template<
typename>
class P = std::promise>
auto
378 ->
decltype(std::declval<P<bool>>().get_future())
380 return _makePromiseOutgoing<bool, P>(
false,
this, &ObjectPrx::_iceI_isA, typeId, context);
385 _iceI_isA(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<bool>>&, const ::std::string&, const ::Ice::Context&);
395 _makePromiseOutgoing<void>(
true,
this, &ObjectPrx::_iceI_ping, context).get();
406 ::std::function<void()>
408 ::std::function<
void(::std::exception_ptr)> ex =
nullptr,
409 ::std::function<
void(
bool)> sent =
nullptr,
412 return _makeLambdaOutgoing<void>(std::move(response), std::move(ex), std::move(sent),
this,
413 &ObjectPrx::_iceI_ping, context);
421 template<
template<
typename>
class P = std::promise>
423 ->
decltype(std::declval<P<void>>().get_future())
425 return _makePromiseOutgoing<void, P>(
false,
this, &ObjectPrx::_iceI_ping, context);
430 _iceI_ping(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<void>>&, const ::Ice::Context&);
439 ::std::vector<::std::string>
442 return _makePromiseOutgoing<::std::vector<::std::string>>(
true,
this, &ObjectPrx::_iceI_ids, context).get();
453 ::std::function<void()>
454 ice_idsAsync(::std::function<
void(::std::vector<::std::string>)> response,
455 ::std::function<
void(::std::exception_ptr)> ex =
nullptr,
456 ::std::function<
void(
bool)> sent =
nullptr,
459 return _makeLambdaOutgoing<::std::vector<::std::string>>(std::move(response), std::move(ex), std::move(sent),
460 this, &ObjectPrx::_iceI_ids, context);
468 template<
template<
typename>
class P = std::promise>
auto
470 ->
decltype(std::declval<P<::std::vector<::std::string>>>().get_future())
472 return _makePromiseOutgoing<::std::vector<::std::string>, P>(
false,
this, &ObjectPrx::_iceI_ids, context);
477 _iceI_ids(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::std::vector<::std::string>>>&, const ::Ice::Context&);
488 return _makePromiseOutgoing<::std::string>(
true,
this, &ObjectPrx::_iceI_id, context).get();
499 ::std::function<void()>
501 ::std::function<
void(::std::exception_ptr)> ex =
nullptr,
502 ::std::function<
void(
bool)> sent =
nullptr,
505 return _makeLambdaOutgoing<::std::string>(std::move(response), std::move(ex), std::move(sent),
this,
506 &ObjectPrx::_iceI_id, context);
514 template<
template<
typename>
class P = std::promise>
516 ->
decltype(std::declval<P<::std::string>>().get_future())
518 return _makePromiseOutgoing<::std::string, P>(
false,
this, &ObjectPrx::_iceI_id, context);
523 _iceI_id(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::std::string>>&, const ::Ice::Context&);
532 return ::Ice::Object::ice_staticId();
550 const ::std::vector<Byte>& inParams,
551 ::std::vector<::Ice::Byte>& outParams,
554 return ice_invoke(operation, mode, ::IceInternal::makePair(inParams), outParams, context);
565 template<
template<
typename>
class P = std::promise>
auto
568 const ::std::vector<Byte>& inParams,
570 ->
decltype(std::declval<P<::Ice::Object::Ice_invokeResult>>().get_future())
572 return ice_invokeAsync<P>(operation, mode, ::IceInternal::makePair(inParams), context);
586 ::std::function<void()>
589 const ::std::vector<::Ice::Byte>& inParams,
590 ::std::function<
void(
bool, ::std::vector<::Ice::Byte>)> response,
591 ::std::function<
void(::std::exception_ptr)> ex =
nullptr,
592 ::std::function<
void(
bool)> sent =
nullptr,
595 using Outgoing = ::IceInternal::InvokeLambdaOutgoing<::Ice::Object::Ice_invokeResult>;
599#if ICE_CPLUSPLUS >= 201402L
605 response(result.returnValue, std::move(result.outParams));
608 auto outAsync = ::std::make_shared<Outgoing>(shared_from_this(), std::move(r), std::move(ex), std::move(sent));
609 outAsync->invoke(operation, mode, ::IceInternal::makePair(inParams), context);
610 return [outAsync]() { outAsync->cancel(); };
628 const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>& inParams,
629 ::std::vector<::Ice::Byte>& outParams,
632 using Outgoing = ::IceInternal::InvokePromiseOutgoing<
634 auto outAsync = ::std::make_shared<Outgoing>(shared_from_this(),
true);
635 outAsync->invoke(operation, mode, inParams, context);
636 auto result = outAsync->getFuture().get();
637 outParams.swap(result.outParams);
638 return result.returnValue;
649 template<
template<
typename>
class P = std::promise>
auto
652 const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>& inParams,
654 ->
decltype(std::declval<P<::Ice::Object::Ice_invokeResult>>().get_future())
658 auto outAsync = ::std::make_shared<Outgoing>(shared_from_this(),
false);
659 outAsync->invoke(operation, mode, inParams, context);
660 return outAsync->getFuture();
674 ::std::function<void()>
677 const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>& inParams,
678 ::std::function<
void(
bool, ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>)> response,
679 ::std::function<
void(::std::exception_ptr)> ex =
nullptr,
680 ::std::function<
void(
bool)> sent =
nullptr,
683 using Result = ::std::tuple<bool, ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>>;
684 using Outgoing = ::IceInternal::InvokeLambdaOutgoing<Result>;
686 ::std::function<void(Result&&)> r;
689#if ICE_CPLUSPLUS >= 201402L
690 r = [response = std::move(response)](Result&& result)
692 r = [response](Result&& result)
695 response(::std::get<0>(result), ::std::move(::std::get<1>(result)));
698 auto outAsync = ::std::make_shared<Outgoing>(shared_from_this(), std::move(r), std::move(ex), std::move(sent));
699 outAsync->invoke(operation, mode, inParams, context);
700 return [outAsync]() { outAsync->cancel(); };
714 ::std::shared_ptr<::Ice::ObjectPrx>
ice_identity(const ::Ice::Identity&
id)
const;
727 ::std::shared_ptr<::Ice::ObjectPrx>
ice_context(const ::Ice::Context& context)
const;
740 ::std::shared_ptr<::Ice::ObjectPrx>
ice_facet(const ::std::string& facet)
const;
753 ::std::shared_ptr<::Ice::ObjectPrx>
ice_adapterId(const ::std::string&
id)
const;
766 ::std::shared_ptr<::Ice::ObjectPrx>
ice_endpoints(const ::Ice::EndpointSeq& endpoints)
const;
819 ::std::shared_ptr<::Ice::ObjectPrx>
ice_secure(
bool b)
const;
863 ::std::shared_ptr<::Ice::ObjectPrx>
ice_router(const ::std::shared_ptr<::Ice::RouterPrx>& router)
const;
876 ::std::shared_ptr<::Ice::ObjectPrx>
ice_locator(const ::std::shared_ptr<::Ice::LocatorPrx>& locator)
const;
985 ::std::shared_ptr<::Ice::ObjectPrx>
ice_timeout(
int timeout)
const;
1014 ::std::shared_ptr<::Ice::ObjectPrx>
ice_fixed(const ::std::shared_ptr<::Ice::Connection>& connection)
const;
1027 ::std::shared_ptr<::Ice::Connection>
1041 ::std::function<void()>
1043 ::std::function<
void(::std::exception_ptr)> ex =
nullptr,
1044 ::std::function<
void(
bool)> sent =
nullptr)
1046 using LambdaOutgoing = ::IceInternal::ProxyGetConnectionLambda;
1047 auto outAsync = ::std::make_shared<LambdaOutgoing>(shared_from_this(), std::move(response), std::move(ex), std::move(sent));
1048 _iceI_getConnection(outAsync);
1049 return [outAsync]() { outAsync->cancel(); };
1057 template<
template<
typename>
class P = std::promise>
auto
1060 using PromiseOutgoing = ::IceInternal::ProxyGetConnectionPromise<P<::std::shared_ptr<::Ice::Connection>>>;
1061 auto outAsync = ::std::make_shared<PromiseOutgoing>(shared_from_this());
1062 _iceI_getConnection(outAsync);
1063 return outAsync->getFuture();
1067 void _iceI_getConnection(const ::std::shared_ptr<::IceInternal::ProxyGetConnection>&);
1092 std::function<void()>
1094 ::std::function<
void(
bool)> sent =
nullptr)
1096 using LambdaOutgoing = ::IceInternal::ProxyFlushBatchLambda;
1097 auto outAsync = ::std::make_shared<LambdaOutgoing>(shared_from_this(), std::move(ex), std::move(sent));
1098 _iceI_flushBatchRequests(outAsync);
1099 return [outAsync]() { outAsync->cancel(); };
1106 template<
template<
typename>
class P = std::promise>
auto
1109 using PromiseOutgoing = ::IceInternal::ProxyFlushBatchPromise<P<void>>;
1110 auto outAsync = ::std::make_shared<PromiseOutgoing>(shared_from_this());
1111 _iceI_flushBatchRequests(outAsync);
1112 return outAsync->getFuture();
1116 void _iceI_flushBatchRequests(const ::std::shared_ptr<::IceInternal::ProxyFlushBatchAsync>&);
1118 const ::IceInternal::ReferencePtr& _getReference()
const {
return _reference; }
1120 void _copyFrom(
const std::shared_ptr<::Ice::ObjectPrx>&);
1122 int _handleException(const ::Ice::Exception&, const ::IceInternal::RequestHandlerPtr&,
::Ice::OperationMode,
1125 void _checkTwowayOnly(const ::std::string&)
const;
1127 ::IceInternal::RequestHandlerPtr _getRequestHandler();
1128 ::IceInternal::BatchRequestQueuePtr _getBatchRequestQueue();
1129 ::IceInternal::RequestHandlerPtr _setRequestHandler(const ::IceInternal::RequestHandlerPtr&);
1130 void _updateRequestHandler(const ::IceInternal::RequestHandlerPtr&, const ::IceInternal::RequestHandlerPtr&);
1134 void _write(OutputStream&)
const;
1140 template<
typename R,
template<
typename>
class P = ::std::promise,
typename Obj,
typename Fn,
typename... Args>
1141 auto _makePromiseOutgoing(
bool sync, Obj obj, Fn fn, Args&&... args)
1142 ->
decltype(std::declval<P<R>>().get_future())
1144 auto outAsync = ::std::make_shared<::IceInternal::PromiseOutgoing<P<R>, R>>(shared_from_this(), sync);
1145 (obj->*fn)(outAsync, std::forward<Args>(args)...);
1146 return outAsync->getFuture();
1149 template<
typename R,
typename Re,
typename E,
typename S,
typename Obj,
typename Fn,
typename... Args>
1150 ::std::function<void()> _makeLambdaOutgoing(Re r, E e, S s, Obj obj, Fn fn, Args&&... args)
1152 auto outAsync = ::std::make_shared<::IceInternal::LambdaOutgoing<R>>(shared_from_this(),
1153 std::move(r), std::move(e), std::move(s));
1154 (obj->*fn)(outAsync, std::forward<Args>(args)...);
1155 return [outAsync]() { outAsync->cancel(); };
1158 virtual ::std::shared_ptr<ObjectPrx> _newInstance()
const;
1159 ObjectPrx() =
default;
1160 friend ::std::shared_ptr<ObjectPrx> IceInternal::createProxy<ObjectPrx>();
1165 void setup(const ::IceInternal::ReferencePtr&);
1166 friend class ::IceInternal::ProxyFactory;
1168 ::IceInternal::ReferencePtr _reference;
1169 ::IceInternal::RequestHandlerPtr _requestHandler;
1170 ::IceInternal::BatchRequestQueuePtr _batchRequestQueue;
1171 IceUtil::Mutex _mutex;
1183 return !(lhs > rhs);
1189 return !(lhs < rhs);
1195 return !(lhs == rhs);
1202template<
typename Prx,
typename... Bases>
1212 ::std::shared_ptr<Prx>
ice_context(const ::Ice::Context& context)
const
1295 ::std::shared_ptr<Prx>
ice_router(const ::std::shared_ptr<::Ice::RouterPrx>& router)
const
1305 ::std::shared_ptr<Prx>
ice_locator(const ::std::shared_ptr<::Ice::LocatorPrx>& locator)
const
1414 ::std::shared_ptr<Prx>
ice_fixed(const ::std::shared_ptr<::Ice::Connection>& connection)
const
1433 virtual ::std::shared_ptr<ObjectPrx> _newInstance()
const = 0;
1437ICE_API ::std::ostream&
operator<<(::std::ostream&, const ::Ice::ObjectPrx&);
1463 const ::std::shared_ptr<ObjectPrx>& rhs);
1473 const ::std::shared_ptr<ObjectPrx>& rhs);
1476# pragma clang diagnostic push
1477# pragma clang diagnostic ignored "-Wdeprecated-declarations"
1487 : std::binary_function<bool, ::std::shared_ptr<ObjectPrx>&, ::std::shared_ptr<ObjectPrx>&>
1490 bool operator()(const ::std::shared_ptr<ObjectPrx>& lhs, const ::std::shared_ptr<ObjectPrx>& rhs)
const
1503 : std::binary_function<bool, ::std::shared_ptr<ObjectPrx>&, ::std::shared_ptr<ObjectPrx>&>
1506 bool operator()(const ::std::shared_ptr<ObjectPrx>& lhs, const ::std::shared_ptr<ObjectPrx>& rhs)
const
1519 : std::binary_function<bool, ::std::shared_ptr<ObjectPrx>&, ::std::shared_ptr<ObjectPrx>&>
1522 bool operator()(const ::std::shared_ptr<ObjectPrx>& lhs, const ::std::shared_ptr<ObjectPrx>& rhs)
const
1535 : std::binary_function<bool, ::std::shared_ptr<ObjectPrx>&, ::std::shared_ptr<ObjectPrx>&>
1538 bool operator()(const ::std::shared_ptr<ObjectPrx>& lhs, const ::std::shared_ptr<ObjectPrx>& rhs)
const
1545# pragma clang diagnostic pop
1555 typename ::std::enable_if<::std::is_base_of<::Ice::ObjectPrx, P>::value>::type* =
nullptr,
1556 typename ::std::enable_if<::std::is_base_of<::Ice::ObjectPrx, T>::value>::type* =
nullptr> ::std::shared_ptr<P>
1559 ::std::shared_ptr<P> r;
1562 r = ::std::dynamic_pointer_cast<P>(b);
1565 r = IceInternal::createProxy<P>();
1580 typename ::std::enable_if<::std::is_base_of<::Ice::ObjectPrx, P>::value>::type* =
nullptr,
1581 typename ::std::enable_if<::std::is_base_of<::Ice::ObjectPrx, T>::value>::type* =
nullptr> ::std::shared_ptr<P>
1584 ::std::shared_ptr<P> r;
1587 r = IceInternal::createProxy<P>();
1588 r->_copyFrom(b->ice_facet(f));
1602 typename ::std::enable_if<::std::is_base_of<::Ice::ObjectPrx, P>::value>::type* =
nullptr,
1603 typename ::std::enable_if<::std::is_base_of<::Ice::ObjectPrx, T>::value>::type* =
nullptr> ::std::shared_ptr<P>
1606 ::std::shared_ptr<P> r;
1609 if(b->ice_isA(P::ice_staticId(), context))
1611 r = IceInternal::createProxy<P>();
1628 typename ::std::enable_if<::std::is_base_of<::Ice::ObjectPrx, P>::value>::type* =
nullptr,
1629 typename ::std::enable_if<::std::is_base_of<::Ice::ObjectPrx, T>::value>::type* =
nullptr> ::std::shared_ptr<P>
1632 ::std::shared_ptr<P> r;
1637 ::std::shared_ptr<::Ice::ObjectPrx> bb = b->ice_facet(f);
1638 if(bb->ice_isA(P::ice_staticId(), context))
1640 r = IceInternal::createProxy<P>();
1663ICE_API ::IceProxy::Ice::Object* upCast(::IceProxy::Ice::Locator*);
1666ICE_API ::IceProxy::Ice::Object* upCast(::IceProxy::Ice::Router*);
1676typedef ::IceInternal::ProxyHandle< ::IceProxy::Ice::Router>
RouterPrx;
1678typedef ::IceInternal::ProxyHandle< ::IceProxy::Ice::Locator>
LocatorPrx;
1690class Callback_Object_ice_isA_Base :
public virtual ::IceInternal::CallbackBase { };
1691typedef ::IceUtil::Handle< Callback_Object_ice_isA_Base> Callback_Object_ice_isAPtr;
1699class Callback_Object_ice_ping_Base :
public virtual ::IceInternal::CallbackBase { };
1700typedef ::IceUtil::Handle< Callback_Object_ice_ping_Base> Callback_Object_ice_pingPtr;
1708class Callback_Object_ice_ids_Base :
public virtual ::IceInternal::CallbackBase { };
1709typedef ::IceUtil::Handle< Callback_Object_ice_ids_Base> Callback_Object_ice_idsPtr;
1717class Callback_Object_ice_id_Base :
public virtual ::IceInternal::CallbackBase { };
1718typedef ::IceUtil::Handle< Callback_Object_ice_id_Base> Callback_Object_ice_idPtr;
1726class Callback_Object_ice_invoke_Base :
public virtual ::IceInternal::CallbackBase { };
1727typedef ::IceUtil::Handle< Callback_Object_ice_invoke_Base> Callback_Object_ice_invokePtr;
1735class Callback_Object_ice_flushBatchRequests_Base :
public virtual ::IceInternal::CallbackBase { };
1736typedef ::IceUtil::Handle< Callback_Object_ice_flushBatchRequests_Base> Callback_Object_ice_flushBatchRequestsPtr;
1744class Callback_Object_ice_getConnection_Base :
public virtual ::IceInternal::CallbackBase { };
1745typedef ::IceUtil::Handle< Callback_Object_ice_getConnection_Base> Callback_Object_ice_getConnectionPtr;
1749namespace IceProxy {
namespace Ice
1756class ICE_API Object :
public ::IceUtil::Shared
1767 ::Ice::CommunicatorPtr ice_getCommunicator()
const;
1773 ::std::string ice_toString()
const;
1784 return end_ice_isA(_iceI_begin_ice_isA(typeId, context, ::IceInternal::dummyCallback, 0,
true));
1793 ::Ice::AsyncResultPtr begin_ice_isA(const ::std::string& typeId,
1796 return _iceI_begin_ice_isA(typeId, context, ::IceInternal::dummyCallback, 0);
1806 ::Ice::AsyncResultPtr begin_ice_isA(const ::std::string& typeId,
1807 const ::Ice::CallbackPtr& cb,
1808 const ::Ice::LocalObjectPtr& cookie = 0)
1821 ::Ice::AsyncResultPtr begin_ice_isA(const ::std::string& typeId,
1822 const ::Ice::Context& context,
1823 const ::Ice::CallbackPtr& cb,
1824 const ::Ice::LocalObjectPtr& cookie = 0)
1826 return _iceI_begin_ice_isA(typeId, context, cb, cookie);
1836 ::Ice::AsyncResultPtr begin_ice_isA(const ::std::string& typeId,
1837 const ::Ice::Callback_Object_ice_isAPtr& cb,
1838 const ::Ice::LocalObjectPtr& cookie = 0)
1851 ::Ice::AsyncResultPtr begin_ice_isA(const ::std::string& typeId,
1852 const ::Ice::Context& context,
1853 const ::Ice::Callback_Object_ice_isAPtr& cb,
1854 const ::Ice::LocalObjectPtr& cookie = 0)
1856 return _iceI_begin_ice_isA(typeId, context, cb, cookie);
1865 bool end_ice_isA(const ::Ice::AsyncResultPtr& result);
1873 end_ice_ping(_iceI_begin_ice_ping(context, ::IceInternal::dummyCallback, 0,
true));
1883 return _iceI_begin_ice_ping(context, ::IceInternal::dummyCallback, 0);
1892 ::Ice::AsyncResultPtr begin_ice_ping(const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
1904 ::Ice::AsyncResultPtr begin_ice_ping(const ::Ice::Context& context, const ::Ice::CallbackPtr& cb,
1905 const ::Ice::LocalObjectPtr& cookie = 0)
1907 return _iceI_begin_ice_ping(context, cb, cookie);
1916 ::Ice::AsyncResultPtr begin_ice_ping(const ::Ice::Callback_Object_ice_pingPtr& cb,
1917 const ::Ice::LocalObjectPtr& cookie = 0)
1929 ::Ice::AsyncResultPtr begin_ice_ping(const ::Ice::Context& context, const ::Ice::Callback_Object_ice_pingPtr& cb,
1930 const ::Ice::LocalObjectPtr& cookie = 0)
1932 return _iceI_begin_ice_ping(context, cb, cookie);
1939 void end_ice_ping(const ::Ice::AsyncResultPtr& result);
1949 return end_ice_ids(_iceI_begin_ice_ids(context, ::IceInternal::dummyCallback, 0,
true));
1959 return _iceI_begin_ice_ids(context, ::IceInternal::dummyCallback, 0);
1968 ::Ice::AsyncResultPtr begin_ice_ids(const ::Ice::CallbackPtr& cb,
1969 const ::Ice::LocalObjectPtr& cookie = 0)
1981 ::Ice::AsyncResultPtr begin_ice_ids(const ::Ice::Context& context,
1982 const ::Ice::CallbackPtr& cb,
1983 const ::Ice::LocalObjectPtr& cookie = 0)
1985 return _iceI_begin_ice_ids(context, cb, cookie);
1994 ::Ice::AsyncResultPtr begin_ice_ids(const ::Ice::Callback_Object_ice_idsPtr& cb,
1995 const ::Ice::LocalObjectPtr& cookie = 0)
2007 ::Ice::AsyncResultPtr begin_ice_ids(const ::Ice::Context& context,
2008 const ::Ice::Callback_Object_ice_idsPtr& cb,
2009 const ::Ice::LocalObjectPtr& cookie = 0)
2011 return _iceI_begin_ice_ids(context, cb, cookie);
2020 ::std::vector< ::std::string> end_ice_ids(const ::Ice::AsyncResultPtr& result);
2029 return end_ice_id(_iceI_begin_ice_id(context, ::IceInternal::dummyCallback, 0,
true));
2039 return _iceI_begin_ice_id(context, ::IceInternal::dummyCallback, 0);
2048 ::Ice::AsyncResultPtr begin_ice_id(const ::Ice::CallbackPtr& cb,
2049 const ::Ice::LocalObjectPtr& cookie = 0)
2061 ::Ice::AsyncResultPtr begin_ice_id(const ::Ice::Context& context,
2062 const ::Ice::CallbackPtr& cb,
2063 const ::Ice::LocalObjectPtr& cookie = 0)
2065 return _iceI_begin_ice_id(context, cb, cookie);
2074 ::Ice::AsyncResultPtr begin_ice_id(const ::Ice::Callback_Object_ice_idPtr& cb,
2075 const ::Ice::LocalObjectPtr& cookie = 0)
2087 ::Ice::AsyncResultPtr begin_ice_id(const ::Ice::Context& context,
2088 const ::Ice::Callback_Object_ice_idPtr& cb,
2089 const ::Ice::LocalObjectPtr& cookie = 0)
2091 return _iceI_begin_ice_id(context, cb, cookie);
2099 ::std::string end_ice_id(const ::Ice::AsyncResultPtr& result);
2105 static const ::std::string& ice_staticId()
2107 return ::Ice::Object::ice_staticId();
2122 bool ice_invoke(const ::std::string& operation,
2124 const ::std::vector< ::Ice::Byte>& inParams,
2125 ::std::vector< ::Ice::Byte>& outParams,
2135 ::Ice::AsyncResultPtr begin_ice_invoke(const ::std::string& operation,
2137 const ::std::vector< ::Ice::Byte>& inParams)
2140 ::IceInternal::dummyCallback, 0);
2151 ::Ice::AsyncResultPtr begin_ice_invoke(const ::std::string& operation,
2153 const ::std::vector< ::Ice::Byte>& inParams,
2154 const ::Ice::Context& context)
2156 return _iceI_begin_ice_invoke(operation, mode, inParams, context, ::IceInternal::dummyCallback, 0);
2168 ::Ice::AsyncResultPtr begin_ice_invoke(const ::std::string& operation,
2170 const ::std::vector< ::Ice::Byte>& inParams,
2171 const ::Ice::CallbackPtr& cb,
2172 const ::Ice::LocalObjectPtr& cookie = 0)
2187 ::Ice::AsyncResultPtr begin_ice_invoke(const ::std::string& operation,
2189 const ::std::vector< ::Ice::Byte>& inParams,
2190 const ::Ice::Context& context,
2191 const ::Ice::CallbackPtr& cb,
2192 const ::Ice::LocalObjectPtr& cookie = 0)
2194 return _iceI_begin_ice_invoke(operation, mode, inParams, context, cb, cookie);
2206 ::Ice::AsyncResultPtr begin_ice_invoke(const ::std::string& operation,
2208 const ::std::vector< ::Ice::Byte>& inParams,
2209 const ::Ice::Callback_Object_ice_invokePtr& cb,
2210 const ::Ice::LocalObjectPtr& cookie = 0)
2225 ::Ice::AsyncResultPtr begin_ice_invoke(const ::std::string& operation,
2227 const ::std::vector< ::Ice::Byte>& inParams,
2228 const ::Ice::Context& context,
2229 const ::Ice::Callback_Object_ice_invokePtr& cb,
2230 const ::Ice::LocalObjectPtr& cookie = 0)
2232 return _iceI_begin_ice_invoke(operation, mode, inParams, context, cb, cookie);
2244 bool end_ice_invoke(::std::vector< ::Ice::Byte>& outParams, const ::Ice::AsyncResultPtr& result);
2258 bool ice_invoke(const ::std::string& operation,
2260 const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>& inParams,
2261 ::std::vector< ::Ice::Byte>& outParams,
2264 return end_ice_invoke(outParams, _iceI_begin_ice_invoke(operation, mode, inParams, context,
2265 ::IceInternal::dummyCallback, 0,
true));
2275 ::Ice::AsyncResultPtr begin_ice_invoke(const ::std::string& operation,
2277 const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>& inParams)
2280 ::IceInternal::dummyCallback, 0);
2292 ::Ice::AsyncResultPtr begin_ice_invoke(const ::std::string& operation,
2294 const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>& inParams,
2295 const ::Ice::Context& context,
2296 const ::Ice::LocalObjectPtr& cookie = 0)
2298 return _iceI_begin_ice_invoke(operation, mode, inParams, context, ::IceInternal::dummyCallback, cookie);
2310 ::Ice::AsyncResultPtr begin_ice_invoke(const ::std::string& operation,
2312 const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>& inParams,
2313 const ::Ice::CallbackPtr& cb,
2314 const ::Ice::LocalObjectPtr& cookie = 0)
2329 ::Ice::AsyncResultPtr begin_ice_invoke(const ::std::string& operation,
2331 const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>& inParams,
2332 const ::Ice::Context& context,
2333 const ::Ice::CallbackPtr& cb,
2334 const ::Ice::LocalObjectPtr& cookie = 0)
2336 return _iceI_begin_ice_invoke(operation, mode, inParams, context, cb, cookie);
2348 ::Ice::AsyncResultPtr begin_ice_invoke(const ::std::string& operation,
2350 const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>& inParams,
2351 const ::Ice::Callback_Object_ice_invokePtr& cb,
2352 const ::Ice::LocalObjectPtr& cookie = 0)
2367 ::Ice::AsyncResultPtr begin_ice_invoke(const ::std::string& operation,
2369 const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>& inParams,
2370 const ::Ice::Context& context,
2371 const ::Ice::Callback_Object_ice_invokePtr& cb,
2372 const ::Ice::LocalObjectPtr& cookie = 0)
2374 return _iceI_begin_ice_invoke(operation, mode, inParams, context, cb, cookie);
2378 bool _iceI_end_ice_invoke(::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>&, const ::Ice::AsyncResultPtr&);
2385 ::Ice::Identity ice_getIdentity()
const;
2392 ::Ice::ObjectPrx ice_identity(const ::Ice::Identity&
id)
const;
2405 ::Ice::ObjectPrx ice_context(const ::Ice::Context& context)
const;
2411 const ::std::string& ice_getFacet()
const;
2418 ::Ice::ObjectPrx ice_facet(const ::std::string& facet)
const;
2424 ::std::string ice_getAdapterId()
const;
2431 ::Ice::ObjectPrx ice_adapterId(const ::std::string&
id)
const;
2444 ::Ice::ObjectPrx ice_endpoints(const ::Ice::EndpointSeq& endpoints)
const;
2450 ::Ice::Int ice_getLocatorCacheTimeout()
const;
2457 ::Ice::ObjectPrx ice_locatorCacheTimeout(
::Ice::Int timeout)
const;
2463 bool ice_isConnectionCached()
const;
2470 ::Ice::ObjectPrx ice_connectionCached(
bool b)
const;
2489 bool ice_isSecure()
const;
2497 ::Ice::ObjectPrx ice_secure(
bool b)
const;
2503 ::Ice::EncodingVersion ice_getEncodingVersion()
const;
2511 ::Ice::ObjectPrx ice_encodingVersion(const ::Ice::EncodingVersion& version)
const;
2518 bool ice_isPreferSecure()
const;
2527 ::Ice::ObjectPrx ice_preferSecure(
bool b)
const;
2534 ::Ice::RouterPrx ice_getRouter()
const;
2541 ::Ice::ObjectPrx ice_router(const ::Ice::RouterPrx& router)
const;
2547 ::Ice::LocatorPrx ice_getLocator()
const;
2554 ::Ice::ObjectPrx ice_locator(const ::Ice::LocatorPrx& locator)
const;
2560 bool ice_isCollocationOptimized()
const;
2567 ::Ice::ObjectPrx ice_collocationOptimized(
bool b)
const;
2580 ::Ice::ObjectPrx ice_invocationTimeout(
::Ice::Int timeout)
const;
2586 ::Ice::ObjectPrx ice_twoway()
const;
2592 bool ice_isTwoway()
const;
2598 ::Ice::ObjectPrx ice_oneway()
const;
2604 bool ice_isOneway()
const;
2610 ::Ice::ObjectPrx ice_batchOneway()
const;
2616 bool ice_isBatchOneway()
const;
2622 ::Ice::ObjectPrx ice_datagram()
const;
2628 bool ice_isDatagram()
const;
2634 ::Ice::ObjectPrx ice_batchDatagram()
const;
2640 bool ice_isBatchDatagram()
const;
2648 ::Ice::ObjectPrx ice_compress(
bool b)
const;
2663 ::Ice::ObjectPrx ice_timeout(
int timeout)
const;
2678 ::Ice::ObjectPrx ice_connectionId(const ::std::string&
id)
const;
2684 ::std::string ice_getConnectionId()
const;
2692 ::Ice::ObjectPrx ice_fixed(const ::Ice::ConnectionPtr& connection)
const;
2698 bool ice_isFixed()
const;
2705 ::Ice::ConnectionPtr ice_getConnection()
2707 return end_ice_getConnection(begin_ice_getConnection());
2715 ::Ice::AsyncResultPtr begin_ice_getConnection()
2717 return _iceI_begin_ice_getConnection(::IceInternal::dummyCallback, 0);
2727 ::Ice::AsyncResultPtr begin_ice_getConnection(const ::Ice::CallbackPtr& cb,
2728 const ::Ice::LocalObjectPtr& cookie = 0)
2730 return _iceI_begin_ice_getConnection(cb, cookie);
2740 ::Ice::AsyncResultPtr begin_ice_getConnection(const ::Ice::Callback_Object_ice_getConnectionPtr& cb,
2741 const ::Ice::LocalObjectPtr& cookie = 0)
2743 return _iceI_begin_ice_getConnection(cb, cookie);
2751 ::Ice::ConnectionPtr end_ice_getConnection(const ::Ice::AsyncResultPtr& result);
2760 ::Ice::ConnectionPtr ice_getCachedConnection()
const;
2765 void ice_flushBatchRequests()
2767 return end_ice_flushBatchRequests(begin_ice_flushBatchRequests());
2774 ::Ice::AsyncResultPtr begin_ice_flushBatchRequests()
2776 return _iceI_begin_ice_flushBatchRequests(::IceInternal::dummyCallback, 0);
2785 ::Ice::AsyncResultPtr begin_ice_flushBatchRequests(const ::Ice::CallbackPtr& cb,
2786 const ::Ice::LocalObjectPtr& cookie = 0)
2788 return _iceI_begin_ice_flushBatchRequests(cb, cookie);
2797 ::Ice::AsyncResultPtr begin_ice_flushBatchRequests(const ::Ice::Callback_Object_ice_flushBatchRequestsPtr& cb,
2798 const ::Ice::LocalObjectPtr& cookie = 0)
2800 return _iceI_begin_ice_flushBatchRequests(cb, cookie);
2807 void end_ice_flushBatchRequests(const ::Ice::AsyncResultPtr& result);
2810 const ::IceInternal::ReferencePtr& _getReference()
const {
return _reference; }
2814 void _copyFrom(const ::Ice::ObjectPrx&);
2816 int _handleException(const ::Ice::Exception&, const ::IceInternal::RequestHandlerPtr&,
::Ice::OperationMode,
2819 void _checkTwowayOnly(const ::std::string&,
bool)
const;
2821 void _end(const ::Ice::AsyncResultPtr&,
const std::string&)
const;
2823 ::IceInternal::RequestHandlerPtr _getRequestHandler();
2824 ::IceInternal::BatchRequestQueuePtr _getBatchRequestQueue();
2825 ::IceInternal::RequestHandlerPtr _setRequestHandler(const ::IceInternal::RequestHandlerPtr&);
2826 void _updateRequestHandler(const ::IceInternal::RequestHandlerPtr&, const ::IceInternal::RequestHandlerPtr&);
2828 void _write(::Ice::OutputStream&)
const;
2834 virtual Object* _newInstance()
const;
2839 ::Ice::AsyncResultPtr _iceI_begin_ice_isA(const ::std::string&,
2840 const ::Ice::Context&,
2841 const ::IceInternal::CallbackBasePtr&,
2842 const ::Ice::LocalObjectPtr&,
2845 ::Ice::AsyncResultPtr _iceI_begin_ice_ping(const ::Ice::Context&,
2846 const ::IceInternal::CallbackBasePtr&,
2847 const ::Ice::LocalObjectPtr&,
2850 ::Ice::AsyncResultPtr _iceI_begin_ice_ids(const ::Ice::Context&,
2851 const ::IceInternal::CallbackBasePtr&,
2852 const ::Ice::LocalObjectPtr&,
2855 ::Ice::AsyncResultPtr _iceI_begin_ice_id(const ::Ice::Context&,
2856 const ::IceInternal::CallbackBasePtr&,
2857 const ::Ice::LocalObjectPtr&,
2860 ::Ice::AsyncResultPtr _iceI_begin_ice_invoke(const ::std::string&,
2862 const ::std::vector< ::Ice::Byte>&,
2863 const ::Ice::Context&,
2864 const ::IceInternal::CallbackBasePtr&,
2865 const ::Ice::LocalObjectPtr&,
2868 ::Ice::AsyncResultPtr _iceI_begin_ice_invoke(const ::std::string&,
2870 const ::std::pair<const ::Ice::Byte*, const ::Ice::Byte*>&,
2871 const ::Ice::Context&,
2872 const ::IceInternal::CallbackBasePtr&,
2873 const ::Ice::LocalObjectPtr&,
2876 ::Ice::AsyncResultPtr _iceI_begin_ice_getConnection(const ::IceInternal::CallbackBasePtr&,
2877 const ::Ice::LocalObjectPtr&);
2879 ::Ice::AsyncResultPtr _iceI_begin_ice_flushBatchRequests(const ::IceInternal::CallbackBasePtr&,
2880 const ::Ice::LocalObjectPtr&);
2882 void setup(const ::IceInternal::ReferencePtr&);
2883 friend class ::IceInternal::ProxyFactory;
2885 ::IceInternal::ReferencePtr _reference;
2886 ::IceInternal::RequestHandlerPtr _requestHandler;
2887 ::IceInternal::BatchRequestQueuePtr _batchRequestQueue;
2888 IceUtil::Mutex _mutex;
2893ICE_API ::std::ostream&
operator<<(::std::ostream&, const ::IceProxy::Ice::Object&);
2902template<
typename Prx,
typename Base>
2903class Proxy :
public virtual Base
2912 IceInternal::ProxyHandle<Prx>
ice_context(const ::Ice::Context& context)
const
2914 return dynamic_cast<Prx*
>(::IceProxy::Ice::Object::ice_context(context).get());
2922 IceInternal::ProxyHandle<Prx>
ice_adapterId(const ::std::string&
id)
const
2924 return dynamic_cast<Prx*
>(::IceProxy::Ice::Object::ice_adapterId(
id).get());
2932 IceInternal::ProxyHandle<Prx>
ice_endpoints(const ::Ice::EndpointSeq& endpoints)
const
2934 return dynamic_cast<Prx*
>(::IceProxy::Ice::Object::ice_endpoints(endpoints).get());
2944 return dynamic_cast<Prx*
>(::IceProxy::Ice::Object::ice_locatorCacheTimeout(timeout).get());
2954 return dynamic_cast<Prx*
>(::IceProxy::Ice::Object::ice_connectionCached(b).get());
2964 return dynamic_cast<Prx*
>(::IceProxy::Ice::Object::ice_endpointSelection(type).get());
2973 IceInternal::ProxyHandle<Prx>
ice_secure(
bool b)
const
2975 return dynamic_cast<Prx*
>(::IceProxy::Ice::Object::ice_secure(b).get());
2987 return dynamic_cast<Prx*
>(::IceProxy::Ice::Object::ice_preferSecure(b).get());
2995 IceInternal::ProxyHandle<Prx>
ice_router(const ::Ice::RouterPrx& router)
const
2997 return dynamic_cast<Prx*
>(::IceProxy::Ice::Object::ice_router(router).get());
3005 IceInternal::ProxyHandle<Prx>
ice_locator(const ::Ice::LocatorPrx& locator)
const
3007 return dynamic_cast<Prx*
>(::IceProxy::Ice::Object::ice_locator(locator).get());
3017 return dynamic_cast<Prx*
>(::IceProxy::Ice::Object::ice_collocationOptimized(b).get());
3027 return dynamic_cast<Prx*
>(::IceProxy::Ice::Object::ice_invocationTimeout(timeout).get());
3034 IceInternal::ProxyHandle<Prx>
ice_twoway()
const
3036 return dynamic_cast<Prx*
>(::IceProxy::Ice::Object::ice_twoway().get());
3043 IceInternal::ProxyHandle<Prx>
ice_oneway()
const
3045 return dynamic_cast<Prx*
>(::IceProxy::Ice::Object::ice_oneway().get());
3054 return dynamic_cast<Prx*
>(::IceProxy::Ice::Object::ice_batchOneway().get());
3063 return dynamic_cast<Prx*
>(::IceProxy::Ice::Object::ice_datagram().get());
3072 return dynamic_cast<Prx*
>(::IceProxy::Ice::Object::ice_batchDatagram().get());
3081 IceInternal::ProxyHandle<Prx>
ice_compress(
bool b)
const
3083 return dynamic_cast<Prx*
>(::IceProxy::Ice::Object::ice_compress(b).get());
3092 IceInternal::ProxyHandle<Prx>
ice_timeout(
int timeout)
const
3094 return dynamic_cast<Prx*
>(::IceProxy::Ice::Object::ice_timeout(timeout).get());
3103 IceInternal::ProxyHandle<Prx>
ice_connectionId(const ::std::string&
id)
const
3105 return dynamic_cast<Prx*
>(::IceProxy::Ice::Object::ice_connectionId(
id).get());
3114 IceInternal::ProxyHandle<Prx>
ice_fixed(const ::Ice::ConnectionPtr& connection)
const
3116 return dynamic_cast<Prx*
>(::IceProxy::Ice::Object::ice_fixed(connection).get());
3125 IceInternal::ProxyHandle<Prx>
ice_encodingVersion(const ::Ice::EncodingVersion& version)
const
3127 return dynamic_cast<Prx*
>(::IceProxy::Ice::Object::ice_encodingVersion(version).get());
3133 virtual ::IceProxy::Ice::Object* _newInstance()
const = 0;
3172# pragma clang diagnostic push
3173# pragma clang diagnostic ignored "-Wdeprecated-declarations"
3183 : std::binary_function<bool, ObjectPrx&, ObjectPrx&>
3186 bool operator()(
const ObjectPrx& lhs,
const ObjectPrx& rhs)
const
3199 : std::binary_function<bool, ObjectPrx&, ObjectPrx&>
3202 bool operator()(
const ObjectPrx& lhs,
const ObjectPrx& rhs)
const
3215 : std::binary_function<bool, ObjectPrx&, ObjectPrx&>
3218 bool operator()(
const ObjectPrx& lhs,
const ObjectPrx& rhs)
const
3231 : std::binary_function<bool, ObjectPrx&, ObjectPrx&>
3234 bool operator()(
const ObjectPrx& lhs,
const ObjectPrx& rhs)
const
3241# pragma clang diagnostic pop
3246namespace IceInternal
3252template<
typename T,
typename U>
3253inline bool operator==(
const ProxyHandle<T>& lhs,
const ProxyHandle<U>& rhs)
3255 ::IceProxy::Ice::Object* l = lhs._upCast();
3256 ::IceProxy::Ice::Object* r = rhs._upCast();
3267template<
typename T,
typename U>
3268inline bool operator!=(
const ProxyHandle<T>& lhs,
const ProxyHandle<U>& rhs)
3273template<
typename T,
typename U>
3274inline bool operator<(
const ProxyHandle<T>& lhs,
const ProxyHandle<U>& rhs)
3276 ::IceProxy::Ice::Object* l = lhs._upCast();
3277 ::IceProxy::Ice::Object* r = rhs._upCast();
3288template<
typename T,
typename U>
3289inline bool operator<=(
const ProxyHandle<T>& lhs,
const ProxyHandle<U>& rhs)
3291 return lhs < rhs || lhs == rhs;
3294template<
typename T,
typename U>
3295inline bool operator>(
const ProxyHandle<T>& lhs,
const ProxyHandle<U>& rhs)
3297 return !(lhs < rhs || lhs == rhs);
3300template<
typename T,
typename U>
3301inline bool operator>=(
const ProxyHandle<T>& lhs,
const ProxyHandle<U>& rhs)
3303 return !(lhs < rhs);
3309template<
typename P> P
3310checkedCastImpl(const ::Ice::ObjectPrx& b, const ::Ice::Context& context)
3315 typedef typename P::element_type T;
3317 if(b->ice_isA(T::ice_staticId(), context))
3326template<
typename P> P
3327uncheckedCastImpl(const ::Ice::ObjectPrx& b)
3332 typedef typename P::element_type T;
3334 d =
dynamic_cast<T*
>(b.get());
3351ICE_API ::Ice::ObjectPrx checkedCastImpl(const ::Ice::ObjectPrx&,
const std::string&,
const std::string&,
3352 const ::Ice::Context&);
3359template<> inline ::Ice::ObjectPrx
3360checkedCastImpl< ::Ice::ObjectPrx>(const ::Ice::ObjectPrx& b,
const std::string& f, const ::Ice::Context& context)
3362 return checkedCastImpl(b, f,
"::Ice::Object", context);
3365template<> inline ::Ice::ObjectPrx
3366uncheckedCastImpl< ::Ice::ObjectPrx>(const ::Ice::ObjectPrx& b,
const std::string& f)
3368 ::Ice::ObjectPrx d = 0;
3376template<
typename P> P
3377checkedCastImpl(const ::Ice::ObjectPrx& b,
const std::string& f, const ::Ice::Context& context)
3381 typedef typename P::element_type T;
3382 ::Ice::ObjectPrx bb = checkedCastImpl(b, f, T::ice_staticId(), context);
3392template<
typename P> P
3393uncheckedCastImpl(const ::Ice::ObjectPrx& b,
const std::string& f)
3398 typedef typename P::element_type T;
3421template<
typename P,
typename Y>
inline P
3425 return ::IceInternal::checkedCastHelper<typename P::element_type>(b, tag, context);
3433template<
typename P,
typename Y>
inline P
3437 return ::IceInternal::uncheckedCastHelper<typename P::element_type>(b, tag);
3448template<
typename P>
inline P
3451 return ::IceInternal::checkedCastImpl<P>(b, f, context);
3460template<
typename P>
inline P
3461uncheckedCast(const ::Ice::ObjectPrx& b,
const std::string& f)
3463 return ::IceInternal::uncheckedCastImpl<P>(b, f);
3468namespace IceInternal
3475class CallbackNC :
public virtual CallbackBase
3479 typedef T callback_type;
3481 typedef IceUtil::Handle<T> TPtr;
3483 typedef void (T::*Exception)(const ::Ice::Exception&);
3484 typedef void (T::*Sent)(bool);
3486 CallbackNC(
const TPtr& instance, Exception excb, Sent sentcb) : _callback(instance), _exception(excb), _sent(sentcb)
3490 virtual CallbackBasePtr verify(const ::Ice::LocalObjectPtr& cookie)
3494 throw IceUtil::IllegalArgumentException(__FILE__, __LINE__,
"cookie specified for callback without cookie");
3499 virtual void sent(const ::Ice::AsyncResultPtr& result)
const
3503 (_callback.get()->*_sent)(result->sentSynchronously());
3507 virtual bool hasSentCallback()
const
3514 void exception(const ::Ice::AsyncResultPtr&, const ::Ice::Exception& ex)
const
3518 (_callback.get()->*_exception)(ex);
3530template<
class T,
typename CT>
3531class Callback :
public virtual CallbackBase
3535 typedef T callback_type;
3536 typedef CT cookie_type;
3538 typedef IceUtil::Handle<T> TPtr;
3540 typedef void (T::*Exception)(const ::Ice::Exception&,
const CT&);
3541 typedef void (T::*Sent)(bool,
const CT&);
3543 Callback(
const TPtr& instance, Exception excb, Sent sentcb) : _callback(instance), _exception(excb), _sent(sentcb)
3547 virtual CallbackBasePtr verify(const ::Ice::LocalObjectPtr& cookie)
3549 if(cookie && !CT::dynamicCast(cookie))
3551 throw IceUtil::IllegalArgumentException(__FILE__, __LINE__,
"unexpected cookie type");
3556 virtual void sent(const ::Ice::AsyncResultPtr& result)
const
3560 (_callback.get()->*_sent)(result->sentSynchronously(), CT::dynamicCast(result->getCookie()));
3564 virtual bool hasSentCallback()
const
3571 void exception(const ::Ice::AsyncResultPtr& result, const ::Ice::Exception& ex)
const
3575 (_callback.get()->*_exception)(ex, CT::dynamicCast(result->getCookie()));
3591class TwowayCallbackNC :
public CallbackNC<T>
3595 typedef IceUtil::Handle<T> TPtr;
3597 typedef void (T::*Exception)(const ::Ice::Exception&);
3598 typedef void (T::*Sent)(bool);
3600 TwowayCallbackNC(
const TPtr& instance,
bool cb, Exception excb, Sent sentcb) : CallbackNC<T>(instance, excb, sentcb)
3602 CallbackBase::checkCallback(instance, cb || excb != 0);
3606template<
class T,
typename CT>
3607class TwowayCallback :
public Callback<T, CT>
3611 typedef IceUtil::Handle<T> TPtr;
3613 typedef void (T::*Exception)(const ::Ice::Exception&,
const CT&);
3614 typedef void (T::*Sent)(bool,
const CT&);
3616 TwowayCallback(
const TPtr& instance,
bool cb, Exception excb, Sent sentcb) : Callback<T, CT>(instance, excb, sentcb)
3618 CallbackBase::checkCallback(instance, cb || excb != 0);
3626class OnewayCallbackNC :
public CallbackNC<T>
3630 typedef IceUtil::Handle<T> TPtr;
3632 typedef void (T::*Exception)(const ::Ice::Exception&);
3633 typedef void (T::*Sent)(bool);
3634 typedef void (T::*Response)();
3636 OnewayCallbackNC(
const TPtr& instance, Response cb, Exception excb, Sent sentcb) :
3637 CallbackNC<T>(instance, excb, sentcb), _response(cb)
3639 CallbackBase::checkCallback(instance, cb != 0 || excb != 0);
3642 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
3646 result->getProxy()->_end(result, result->getOperation());
3648 catch(const ::Ice::Exception& ex)
3650 CallbackNC<T>::exception(result, ex);
3655 (CallbackNC<T>::_callback.get()->*_response)();
3664template<
class T,
typename CT>
3665class OnewayCallback :
public Callback<T, CT>
3669 typedef IceUtil::Handle<T> TPtr;
3671 typedef void (T::*Exception)(const ::Ice::Exception&,
const CT&);
3672 typedef void (T::*Sent)(bool,
const CT&);
3673 typedef void (T::*Response)(
const CT&);
3675 OnewayCallback(
const TPtr& instance, Response cb, Exception excb, Sent sentcb) :
3676 Callback<T, CT>(instance, excb, sentcb), _response(cb)
3678 CallbackBase::checkCallback(instance, cb != 0 || excb != 0);
3681 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
3685 result->getProxy()->_end(result, result->getOperation());
3687 catch(const ::Ice::Exception& ex)
3689 Callback<T, CT>::exception(result, ex);
3694 (Callback<T, CT>::_callback.get()->*_response)(CT::dynamicCast(result->getCookie()));
3715class CallbackNC_Object_ice_isA :
public Callback_Object_ice_isA_Base,
public ::IceInternal::TwowayCallbackNC<T>
3719 typedef IceUtil::Handle<T> TPtr;
3721 typedef void (T::*Exception)(const ::Ice::Exception&);
3722 typedef void (T::*Sent)(bool);
3723 typedef void (T::*Response)(bool);
3725 CallbackNC_Object_ice_isA(
const TPtr& instance, Response cb, Exception excb, Sent sentcb) :
3726 ::IceInternal::TwowayCallbackNC<T>(instance, cb != 0, excb, sentcb), _response(cb)
3731 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
3736 ret = result->getProxy()->end_ice_isA(result);
3738 catch(const ::Ice::Exception& ex)
3740 ::IceInternal::CallbackNC<T>::exception(result, ex);
3745 (::IceInternal::CallbackNC<T>::_callback.get()->*_response)(ret);
3761template<
class T,
typename CT>
3762class Callback_Object_ice_isA :
public Callback_Object_ice_isA_Base,
public ::IceInternal::TwowayCallback<T, CT>
3766 typedef IceUtil::Handle<T> TPtr;
3768 typedef void (T::*Exception)(const ::Ice::Exception&,
const CT&);
3769 typedef void (T::*Sent)(bool,
const CT&);
3770 typedef void (T::*Response)(bool,
const CT&);
3772 Callback_Object_ice_isA(
const TPtr& instance, Response cb, Exception excb, Sent sentcb) :
3773 ::IceInternal::TwowayCallback<T, CT>(instance, cb != 0, excb, sentcb), _response(cb)
3778 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
3783 ret = result->getProxy()->end_ice_isA(result);
3785 catch(const ::Ice::Exception& ex)
3787 ::IceInternal::Callback<T, CT>::exception(result, ex);
3792 (::IceInternal::Callback<T, CT>::_callback.get()->*_response)(ret,
3793 CT::dynamicCast(result->getCookie()));
3810class CallbackNC_Object_ice_ping :
public Callback_Object_ice_ping_Base,
public ::IceInternal::OnewayCallbackNC<T>
3814 typedef IceUtil::Handle<T> TPtr;
3816 typedef void (T::*Exception)(const ::Ice::Exception&);
3817 typedef void (T::*Sent)(bool);
3818 typedef void (T::*Response)();
3820 CallbackNC_Object_ice_ping(
const TPtr& instance, Response cb, Exception excb, Sent sentcb) :
3821 ::IceInternal::OnewayCallbackNC<T>(instance, cb, excb, sentcb)
3832template<
class T,
typename CT>
3833class Callback_Object_ice_ping :
public Callback_Object_ice_ping_Base,
public ::IceInternal::OnewayCallback<T, CT>
3837 typedef IceUtil::Handle<T> TPtr;
3839 typedef void (T::*Exception)(const ::Ice::Exception&,
const CT&);
3840 typedef void (T::*Sent)(bool,
const CT&);
3841 typedef void (T::*Response)(
const CT&);
3843 Callback_Object_ice_ping(
const TPtr& instance, Response cb, Exception excb, Sent sentcb) :
3844 ::IceInternal::OnewayCallback<T, CT>(instance, cb, excb, sentcb)
3856class CallbackNC_Object_ice_ids :
public Callback_Object_ice_ids_Base,
public ::IceInternal::TwowayCallbackNC<T>
3860 typedef IceUtil::Handle<T> TPtr;
3862 typedef void (T::*Exception)(const ::Ice::Exception&);
3863 typedef void (T::*Sent)(bool);
3864 typedef void (T::*Response)(const ::std::vector< ::std::string>&);
3866 CallbackNC_Object_ice_ids(
const TPtr& instance, Response cb, Exception excb, Sent sentcb) :
3867 ::IceInternal::TwowayCallbackNC<T>(instance, cb != 0, excb, sentcb), _response(cb)
3872 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
3874 ::std::vector< ::std::string> ret;
3877 ret = result->getProxy()->end_ice_ids(result);
3879 catch(const ::Ice::Exception& ex)
3881 ::IceInternal::CallbackNC<T>::exception(result, ex);
3886 (::IceInternal::CallbackNC<T>::_callback.get()->*_response)(ret);
3902template<
class T,
typename CT>
3903class Callback_Object_ice_ids :
public Callback_Object_ice_ids_Base,
public ::IceInternal::TwowayCallback<T, CT>
3907 typedef IceUtil::Handle<T> TPtr;
3909 typedef void (T::*Exception)(const ::Ice::Exception&,
const CT&);
3910 typedef void (T::*Sent)(bool,
const CT&);
3911 typedef void (T::*Response)(const ::std::vector< ::std::string>&,
const CT&);
3913 Callback_Object_ice_ids(
const TPtr& instance, Response cb, Exception excb, Sent sentcb) :
3914 ::IceInternal::TwowayCallback<T, CT>(instance, cb != 0, excb, sentcb), _response(cb)
3919 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
3921 ::std::vector< ::std::string> ret;
3924 ret = result->getProxy()->end_ice_ids(result);
3926 catch(const ::Ice::Exception& ex)
3928 ::IceInternal::Callback<T, CT>::exception(result, ex);
3933 (::IceInternal::Callback<T, CT>::_callback.get()->*_response)(ret,
3934 CT::dynamicCast(result->getCookie()));
3951class CallbackNC_Object_ice_id :
public Callback_Object_ice_id_Base,
public ::IceInternal::TwowayCallbackNC<T>
3955 typedef IceUtil::Handle<T> TPtr;
3957 typedef void (T::*Exception)(const ::Ice::Exception&);
3958 typedef void (T::*Sent)(bool);
3959 typedef void (T::*Response)(const ::std::string&);
3961 CallbackNC_Object_ice_id(
const TPtr& instance, Response cb, Exception excb, Sent sentcb) :
3962 ::IceInternal::TwowayCallbackNC<T>(instance, cb != 0, excb, sentcb), _response(cb)
3967 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
3972 ret = result->getProxy()->end_ice_id(result);
3974 catch(const ::Ice::Exception& ex)
3976 ::IceInternal::CallbackNC<T>::exception(result, ex);
3981 (::IceInternal::CallbackNC<T>::_callback.get()->*_response)(ret);
3997template<
class T,
typename CT>
3998class Callback_Object_ice_id :
public Callback_Object_ice_id_Base,
public ::IceInternal::TwowayCallback<T, CT>
4002 typedef IceUtil::Handle<T> TPtr;
4004 typedef void (T::*Exception)(const ::Ice::Exception&,
const CT&);
4005 typedef void (T::*Sent)(bool,
const CT&);
4006 typedef void (T::*Response)(const ::std::string&,
const CT&);
4008 Callback_Object_ice_id(
const TPtr& instance, Response cb, Exception excb, Sent sentcb) :
4009 ::IceInternal::TwowayCallback<T, CT>(instance, cb != 0, excb, sentcb), _response(cb)
4014 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
4019 ret = result->getProxy()->end_ice_id(result);
4021 catch(const ::Ice::Exception& ex)
4023 ::IceInternal::Callback<T, CT>::exception(result, ex);
4028 (::IceInternal::Callback<T, CT>::_callback.get()->*_response)(ret,
4029 CT::dynamicCast(result->getCookie()));
4046class CallbackNC_Object_ice_invoke :
public Callback_Object_ice_invoke_Base,
public ::IceInternal::TwowayCallbackNC<T>
4050 typedef IceUtil::Handle<T> TPtr;
4052 typedef void (T::*Exception)(const ::Ice::Exception&);
4053 typedef void (T::*Sent)(bool);
4054 typedef void (T::*Response)(bool,
const std::vector< ::Ice::Byte>&);
4055 typedef void (T::*ResponseArray)(bool,
const std::pair<const ::Ice::Byte*, const ::Ice::Byte*>&);
4057 CallbackNC_Object_ice_invoke(
const TPtr& instance, Response cb, Exception excb, Sent sentcb) :
4058 ::IceInternal::TwowayCallbackNC<T>(instance, cb != 0, excb, sentcb), _response(cb), _responseArray(0)
4062 CallbackNC_Object_ice_invoke(
const TPtr& instance, ResponseArray cb, Exception excb, Sent sentcb) :
4063 ::IceInternal::TwowayCallbackNC<T>(instance, cb != 0, excb, sentcb), _response(0), _responseArray(cb)
4068 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
4073 std::vector< ::Ice::Byte> outParams;
4076 ok = result->getProxy()->end_ice_invoke(outParams, result);
4078 catch(const ::Ice::Exception& ex)
4080 ::IceInternal::CallbackNC<T>::exception(result, ex);
4083 (::IceInternal::CallbackNC<T>::_callback.get()->*_response)(ok, outParams);
4088 std::pair<const ::Ice::Byte*, const::Ice::Byte*> outParams;
4091 ok = result->getProxy()->_iceI_end_ice_invoke(outParams, result);
4093 catch(const ::Ice::Exception& ex)
4095 ::IceInternal::CallbackNC<T>::exception(result, ex);
4100 (::IceInternal::CallbackNC<T>::_callback.get()->*_responseArray)(ok, outParams);
4109 ResponseArray _responseArray;
4118template<
class T,
typename CT>
4119class Callback_Object_ice_invoke :
public Callback_Object_ice_invoke_Base,
public ::IceInternal::TwowayCallback<T, CT>
4123 typedef IceUtil::Handle<T> TPtr;
4125 typedef void (T::*Exception)(const ::Ice::Exception&,
const CT&);
4126 typedef void (T::*Sent)(bool,
const CT&);
4127 typedef void (T::*Response)(bool,
const std::vector< ::Ice::Byte>&,
const CT&);
4128 typedef void (T::*ResponseArray)(bool,
const std::pair<const ::Ice::Byte*, const ::Ice::Byte*>&,
const CT&);
4130 Callback_Object_ice_invoke(
const TPtr& instance, Response cb, Exception excb, Sent sentcb) :
4131 ::IceInternal::TwowayCallback<T, CT>(instance, cb != 0, excb, sentcb), _response(cb), _responseArray(0)
4135 Callback_Object_ice_invoke(
const TPtr& instance, ResponseArray cb, Exception excb, Sent sentcb) :
4136 ::IceInternal::TwowayCallback<T, CT>(instance, cb != 0, excb, sentcb), _response(0), _responseArray(cb)
4141 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
4146 std::vector< ::Ice::Byte> outParams;
4149 ok = result->getProxy()->end_ice_invoke(outParams, result);
4151 catch(const ::Ice::Exception& ex)
4153 ::IceInternal::Callback<T, CT>::exception(result, ex);
4156 (::IceInternal::Callback<T, CT>::_callback.get()->*_response)(ok,
4158 CT::dynamicCast(result->getCookie()));
4163 std::pair<const ::Ice::Byte*, const::Ice::Byte*> outParams;
4166 ok = result->getProxy()->_iceI_end_ice_invoke(outParams, result);
4168 catch(const ::Ice::Exception& ex)
4170 ::IceInternal::Callback<T, CT>::exception(result, ex);
4175 (::IceInternal::Callback<T, CT>::_callback.get()->*_responseArray)(ok,
4178 result->getCookie()));
4187 ResponseArray _responseArray;
4197class CallbackNC_Object_ice_getConnection :
public Callback_Object_ice_getConnection_Base,
4198 public ::IceInternal::CallbackNC<T>
4202 typedef IceUtil::Handle<T> TPtr;
4204 typedef void (T::*Response)(const ::Ice::ConnectionPtr&);
4205 typedef void (T::*Exception)(const ::Ice::Exception&);
4206 typedef void (T::*Sent)(bool);
4208 CallbackNC_Object_ice_getConnection(
const TPtr& instance, Response cb, Exception excb, Sent sentcb) :
4209 ::IceInternal::CallbackNC<T>(instance, excb, sentcb), _response(cb)
4214 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
4216 ::Ice::ConnectionPtr ret;
4219 ret = result->getProxy()->end_ice_getConnection(result);
4221 catch(const ::Ice::Exception& ex)
4223 ::IceInternal::CallbackNC<T>::exception(result, ex);
4228 (::IceInternal::CallbackNC<T>::_callback.get()->*_response)(ret);
4244template<
class T,
typename CT>
4245class Callback_Object_ice_getConnection :
public Callback_Object_ice_getConnection_Base,
4246 public ::IceInternal::Callback<T, CT>
4250 typedef IceUtil::Handle<T> TPtr;
4252 typedef void (T::*Response)(const ::Ice::ConnectionPtr&,
const CT&);
4253 typedef void (T::*Exception)(const ::Ice::Exception&,
const CT&);
4254 typedef void (T::*Sent)(bool,
const CT&);
4256 Callback_Object_ice_getConnection(
const TPtr& instance, Response cb, Exception excb, Sent sentcb) :
4257 ::IceInternal::Callback<T, CT>(instance, excb, sentcb), _response(cb)
4262 virtual void completed(const ::Ice::AsyncResultPtr& result)
const
4264 ::Ice::ConnectionPtr ret;
4267 ret = result->getProxy()->end_ice_getConnection(result);
4269 catch(const ::Ice::Exception& ex)
4271 ::IceInternal::Callback<T, CT>::exception(result, ex);
4276 (::IceInternal::Callback<T, CT>::_callback.get()->*_response)(ret,
4277 CT::dynamicCast(result->getCookie()));
4294class CallbackNC_Object_ice_flushBatchRequests :
public Callback_Object_ice_flushBatchRequests_Base,
4295 public ::IceInternal::OnewayCallbackNC<T>
4299 typedef IceUtil::Handle<T> TPtr;
4301 typedef void (T::*Exception)(const ::Ice::Exception&);
4302 typedef void (T::*Sent)(bool);
4304 CallbackNC_Object_ice_flushBatchRequests(
const TPtr& instance, Exception excb, Sent sentcb) :
4305 ::IceInternal::OnewayCallbackNC<T>(instance, 0, excb, sentcb)
4316template<
class T,
typename CT>
4317class Callback_Object_ice_flushBatchRequests :
public Callback_Object_ice_flushBatchRequests_Base,
4318 public ::IceInternal::OnewayCallback<T, CT>
4322 typedef IceUtil::Handle<T> TPtr;
4324 typedef void (T::*Exception)(const ::Ice::Exception&,
const CT&);
4325 typedef void (T::*Sent)(bool,
const CT&);
4327 Callback_Object_ice_flushBatchRequests(
const TPtr& instance, Exception excb, Sent sentcb) :
4328 ::IceInternal::OnewayCallback<T, CT>(instance, 0, excb, sentcb)
4341template<
class T> Callback_Object_ice_isAPtr
4342newCallback_Object_ice_isA(
const IceUtil::Handle<T>& instance,
4343 void (T::*cb)(
bool),
4344 void (T::*excb)(const ::Ice::Exception&),
4345 void (T::*sentcb)(
bool) = 0)
4347 return new CallbackNC_Object_ice_isA<T>(instance, cb, excb, sentcb);
4358template<
class T,
typename CT> Callback_Object_ice_isAPtr
4359newCallback_Object_ice_isA(
const IceUtil::Handle<T>& instance,
4360 void (T::*cb)(
bool,
const CT&),
4361 void (T::*excb)(const ::Ice::Exception&,
const CT&),
4362 void (T::*sentcb)(
bool,
const CT&) = 0)
4364 return new Callback_Object_ice_isA<T, CT>(instance, cb, excb, sentcb);
4374template<
class T> Callback_Object_ice_isAPtr
4375newCallback_Object_ice_isA(
const IceUtil::Handle<T>& instance,
4376 void (T::*excb)(const ::Ice::Exception&),
4377 void (T::*sentcb)(
bool) = 0)
4379 return new CallbackNC_Object_ice_isA<T>(instance, 0, excb, sentcb);
4389template<
class T,
typename CT> Callback_Object_ice_isAPtr
4390newCallback_Object_ice_isA(
const IceUtil::Handle<T>& instance,
4391 void (T::*excb)(const ::Ice::Exception&,
const CT&),
4392 void (T::*sentcb)(
bool,
const CT&) = 0)
4394 return new Callback_Object_ice_isA<T, CT>(instance, 0, excb, sentcb);
4405template<
class T> Callback_Object_ice_isAPtr
4406newCallback_Object_ice_isA(T* instance,
4407 void (T::*cb)(
bool),
4408 void (T::*excb)(const ::Ice::Exception&),
4409 void (T::*sentcb)(
bool) = 0)
4411 return new CallbackNC_Object_ice_isA<T>(instance, cb, excb, sentcb);
4422template<
class T,
typename CT> Callback_Object_ice_isAPtr
4423newCallback_Object_ice_isA(T* instance,
4424 void (T::*cb)(
bool,
const CT&),
4425 void (T::*excb)(const ::Ice::Exception&,
const CT&),
4426 void (T::*sentcb)(
bool,
const CT&) = 0)
4428 return new Callback_Object_ice_isA<T, CT>(instance, cb, excb, sentcb);
4438template<
class T> Callback_Object_ice_isAPtr
4439newCallback_Object_ice_isA(T* instance,
4440 void (T::*excb)(const ::Ice::Exception&),
4441 void (T::*sentcb)(
bool) = 0)
4443 return new CallbackNC_Object_ice_isA<T>(instance, 0, excb, sentcb);
4453template<
class T,
typename CT> Callback_Object_ice_isAPtr
4454newCallback_Object_ice_isA(T* instance,
4455 void (T::*excb)(const ::Ice::Exception&,
const CT&),
4456 void (T::*sentcb)(
bool,
const CT&) = 0)
4458 return new Callback_Object_ice_isA<T, CT>(instance, 0, excb, sentcb);
4469template<
class T> Callback_Object_ice_pingPtr
4470newCallback_Object_ice_ping(
const IceUtil::Handle<T>& instance,
4472 void (T::*excb)(const ::Ice::Exception&),
4473 void (T::*sentcb)(
bool) = 0)
4475 return new CallbackNC_Object_ice_ping<T>(instance, cb, excb, sentcb);
4486template<
class T,
typename CT> Callback_Object_ice_pingPtr
4487newCallback_Object_ice_ping(
const IceUtil::Handle<T>& instance,
4488 void (T::*cb)(
const CT&),
4489 void (T::*excb)(const ::Ice::Exception&,
const CT&),
4490 void (T::*sentcb)(
bool,
const CT&) = 0)
4492 return new Callback_Object_ice_ping<T, CT>(instance, cb, excb, sentcb);
4502template<
class T> Callback_Object_ice_pingPtr
4503newCallback_Object_ice_ping(
const IceUtil::Handle<T>& instance,
4504 void (T::*excb)(const ::Ice::Exception&),
4505 void (T::*sentcb)(
bool) = 0)
4507 return new CallbackNC_Object_ice_ping<T>(instance, 0, excb, sentcb);
4517template<
class T,
typename CT> Callback_Object_ice_pingPtr
4518newCallback_Object_ice_ping(
const IceUtil::Handle<T>& instance,
4519 void (T::*excb)(const ::Ice::Exception&,
const CT&),
4520 void (T::*sentcb)(
bool,
const CT&) = 0)
4522 return new Callback_Object_ice_ping<T, CT>(instance, 0, excb, sentcb);
4533template<
class T> Callback_Object_ice_pingPtr
4534newCallback_Object_ice_ping(T* instance,
4536 void (T::*excb)(const ::Ice::Exception&),
4537 void (T::*sentcb)(
bool) = 0)
4539 return new CallbackNC_Object_ice_ping<T>(instance, cb, excb, sentcb);
4550template<
class T,
typename CT> Callback_Object_ice_pingPtr
4551newCallback_Object_ice_ping(T* instance,
4552 void (T::*cb)(
const CT&),
4553 void (T::*excb)(const ::Ice::Exception&,
const CT&),
4554 void (T::*sentcb)(
bool,
const CT&) = 0)
4556 return new Callback_Object_ice_ping<T, CT>(instance, cb, excb, sentcb);
4566template<
class T> Callback_Object_ice_pingPtr
4567newCallback_Object_ice_ping(T* instance,
4568 void (T::*excb)(const ::Ice::Exception&),
4569 void (T::*sentcb)(
bool) = 0)
4571 return new CallbackNC_Object_ice_ping<T>(instance, 0, excb, sentcb);
4581template<
class T,
typename CT> Callback_Object_ice_pingPtr
4582newCallback_Object_ice_ping(T* instance,
4583 void (T::*excb)(const ::Ice::Exception&,
const CT&),
4584 void (T::*sentcb)(
bool,
const CT&) = 0)
4586 return new Callback_Object_ice_ping<T, CT>(instance, 0, excb, sentcb);
4597template<
class T> Callback_Object_ice_idsPtr
4598newCallback_Object_ice_ids(
const IceUtil::Handle<T>& instance,
4599 void (T::*cb)(const ::std::vector< ::std::string>&),
4600 void (T::*excb)(const ::Ice::Exception&),
4601 void (T::*sentcb)(
bool) = 0)
4603 return new CallbackNC_Object_ice_ids<T>(instance, cb, excb, sentcb);
4614template<
class T,
typename CT> Callback_Object_ice_idsPtr
4615newCallback_Object_ice_ids(
const IceUtil::Handle<T>& instance,
4616 void (T::*cb)(const ::std::vector< ::std::string>&,
const CT&),
4617 void (T::*excb)(const ::Ice::Exception&,
const CT&),
4618 void (T::*sentcb)(
bool,
const CT&) = 0)
4620 return new Callback_Object_ice_ids<T, CT>(instance, cb, excb, sentcb);
4630template<
class T> Callback_Object_ice_idsPtr
4631newCallback_Object_ice_ids(
const IceUtil::Handle<T>& instance,
4632 void (T::*excb)(const ::Ice::Exception&),
4633 void (T::*sentcb)(
bool) = 0)
4635 return new CallbackNC_Object_ice_ids<T>(instance, 0, excb, sentcb);
4645template<
class T,
typename CT> Callback_Object_ice_idsPtr
4646newCallback_Object_ice_ids(
const IceUtil::Handle<T>& instance,
4647 void (T::*excb)(const ::Ice::Exception&,
const CT&),
4648 void (T::*sentcb)(
bool,
const CT&) = 0)
4650 return new Callback_Object_ice_ids<T, CT>(instance, 0, excb, sentcb);
4661template<
class T> Callback_Object_ice_idsPtr
4662newCallback_Object_ice_ids(T* instance,
4663 void (T::*cb)(const ::std::vector< ::std::string>&),
4664 void (T::*excb)(const ::Ice::Exception&),
4665 void (T::*sentcb)(
bool) = 0)
4667 return new CallbackNC_Object_ice_ids<T>(instance, cb, excb, sentcb);
4678template<
class T,
typename CT> Callback_Object_ice_idsPtr
4679newCallback_Object_ice_ids(T* instance,
4680 void (T::*cb)(const ::std::vector< ::std::string>&,
const CT&),
4681 void (T::*excb)(const ::Ice::Exception&,
const CT&),
4682 void (T::*sentcb)(
bool,
const CT&) = 0)
4684 return new Callback_Object_ice_ids<T, CT>(instance, cb, excb, sentcb);
4694template<
class T> Callback_Object_ice_idsPtr
4695newCallback_Object_ice_ids(T* instance,
4696 void (T::*excb)(const ::Ice::Exception&),
4697 void (T::*sentcb)(
bool) = 0)
4699 return new CallbackNC_Object_ice_ids<T>(instance, 0, excb, sentcb);
4709template<
class T,
typename CT> Callback_Object_ice_idsPtr
4710newCallback_Object_ice_ids(T* instance,
4711 void (T::*excb)(const ::Ice::Exception&,
const CT&),
4712 void (T::*sentcb)(
bool,
const CT&) = 0)
4714 return new Callback_Object_ice_ids<T, CT>(instance, 0, excb, sentcb);
4725template<
class T> Callback_Object_ice_idPtr
4726newCallback_Object_ice_id(
const IceUtil::Handle<T>& instance,
4727 void (T::*cb)(const ::std::string&),
4728 void (T::*excb)(const ::Ice::Exception&),
4729 void (T::*sentcb)(
bool) = 0)
4731 return new CallbackNC_Object_ice_id<T>(instance, cb, excb, sentcb);
4742template<
class T,
typename CT> Callback_Object_ice_idPtr
4743newCallback_Object_ice_id(
const IceUtil::Handle<T>& instance,
4744 void (T::*cb)(const ::std::string&,
const CT&),
4745 void (T::*excb)(const ::Ice::Exception&,
const CT&),
4746 void (T::*sentcb)(
bool,
const CT&) = 0)
4748 return new Callback_Object_ice_id<T, CT>(instance, cb, excb, sentcb);
4758template<
class T> Callback_Object_ice_idPtr
4759newCallback_Object_ice_id(
const IceUtil::Handle<T>& instance,
4760 void (T::*excb)(const ::Ice::Exception&),
4761 void (T::*sentcb)(
bool) = 0)
4763 return new CallbackNC_Object_ice_id<T>(instance, 0, excb, sentcb);
4773template<
class T,
typename CT> Callback_Object_ice_idPtr
4774newCallback_Object_ice_id(
const IceUtil::Handle<T>& instance,
4775 void (T::*excb)(const ::Ice::Exception&,
const CT&),
4776 void (T::*sentcb)(
bool,
const CT&) = 0)
4778 return new Callback_Object_ice_id<T, CT>(instance, 0, excb, sentcb);
4789template<
class T> Callback_Object_ice_idPtr
4790newCallback_Object_ice_id(T* instance,
4791 void (T::*cb)(const ::std::string&),
4792 void (T::*excb)(const ::Ice::Exception&),
4793 void (T::*sentcb)(
bool) = 0)
4795 return new CallbackNC_Object_ice_id<T>(instance, cb, excb, sentcb);
4806template<
class T,
typename CT> Callback_Object_ice_idPtr
4807newCallback_Object_ice_id(T* instance,
4808 void (T::*cb)(const ::std::string&,
const CT&),
4809 void (T::*excb)(const ::Ice::Exception&,
const CT&),
4810 void (T::*sentcb)(
bool,
const CT&) = 0)
4812 return new Callback_Object_ice_id<T, CT>(instance, cb, excb, sentcb);
4822template<
class T> Callback_Object_ice_idPtr
4823newCallback_Object_ice_id(T* instance,
4824 void (T::*excb)(const ::Ice::Exception&),
4825 void (T::*sentcb)(
bool) = 0)
4827 return new CallbackNC_Object_ice_id<T>(instance, 0, excb, sentcb);
4837template<
class T,
typename CT> Callback_Object_ice_idPtr
4838newCallback_Object_ice_id(T* instance,
4839 void (T::*excb)(const ::Ice::Exception&,
const CT&),
4840 void (T::*sentcb)(
bool,
const CT&) = 0)
4842 return new Callback_Object_ice_id<T, CT>(instance, 0, excb, sentcb);
4853template<
class T> Callback_Object_ice_invokePtr
4854newCallback_Object_ice_invoke(
const IceUtil::Handle<T>& instance,
4855 void (T::*cb)(
bool,
const std::vector<Ice::Byte>&),
4856 void (T::*excb)(const ::Ice::Exception&),
4857 void (T::*sentcb)(
bool) = 0)
4859 return new CallbackNC_Object_ice_invoke<T>(instance, cb, excb, sentcb);
4870template<
class T> Callback_Object_ice_invokePtr
4871newCallback_Object_ice_invoke(
const IceUtil::Handle<T>& instance,
4872 void (T::*cb)(
bool,
const std::pair<const Byte*, const Byte*>&),
4873 void (T::*excb)(const ::Ice::Exception&),
4874 void (T::*sentcb)(
bool) = 0)
4876 return new CallbackNC_Object_ice_invoke<T>(instance, cb, excb, sentcb);
4887template<
class T,
typename CT> Callback_Object_ice_invokePtr
4888newCallback_Object_ice_invoke(
const IceUtil::Handle<T>& instance,
4889 void (T::*cb)(
bool,
const std::vector<Ice::Byte>&,
const CT&),
4890 void (T::*excb)(const ::Ice::Exception&,
const CT&),
4891 void (T::*sentcb)(
bool,
const CT&) = 0)
4893 return new Callback_Object_ice_invoke<T, CT>(instance, cb, excb, sentcb);
4904template<
class T,
typename CT> Callback_Object_ice_invokePtr
4905newCallback_Object_ice_invoke(
const IceUtil::Handle<T>& instance,
4906 void (T::*cb)(
bool,
const std::pair<const Byte*, const Byte*>&,
4908 void (T::*excb)(const ::Ice::Exception&,
const CT&),
4909 void (T::*sentcb)(
bool,
const CT&) = 0)
4911 return new Callback_Object_ice_invoke<T, CT>(instance, cb, excb, sentcb);
4921template<
class T> Callback_Object_ice_invokePtr
4922newCallback_Object_ice_invoke(
const IceUtil::Handle<T>& instance,
4923 void (T::*excb)(const ::Ice::Exception&),
4924 void (T::*sentcb)(
bool) = 0)
4926 return new CallbackNC_Object_ice_invoke<T>(instance, 0, excb, sentcb);
4936template<
class T,
typename CT> Callback_Object_ice_invokePtr
4937newCallback_Object_ice_invoke(
const IceUtil::Handle<T>& instance,
4938 void (T::*excb)(const ::Ice::Exception&,
const CT&),
4939 void (T::*sentcb)(
bool,
const CT&) = 0)
4941 return new Callback_Object_ice_invoke<T, CT>(instance, 0, excb, sentcb);
4952template<
class T> Callback_Object_ice_invokePtr
4953newCallback_Object_ice_invoke(T* instance,
4954 void (T::*cb)(
bool,
const std::vector<Ice::Byte>&),
4955 void (T::*excb)(const ::Ice::Exception&),
4956 void (T::*sentcb)(
bool) = 0)
4958 return new CallbackNC_Object_ice_invoke<T>(instance, cb, excb, sentcb);
4969template<
class T> Callback_Object_ice_invokePtr
4970newCallback_Object_ice_invoke(T* instance,
4971 void (T::*cb)(
bool,
const std::pair<const Byte*, const Byte*>&),
4972 void (T::*excb)(const ::Ice::Exception&),
4973 void (T::*sentcb)(
bool) = 0)
4975 return new CallbackNC_Object_ice_invoke<T>(instance, cb, excb, sentcb);
4986template<
class T,
typename CT> Callback_Object_ice_invokePtr
4987newCallback_Object_ice_invoke(T* instance,
4988 void (T::*cb)(
bool,
const std::vector<Ice::Byte>&,
const CT&),
4989 void (T::*excb)(const ::Ice::Exception&,
const CT&),
4990 void (T::*sentcb)(
bool,
const CT&) = 0)
4992 return new Callback_Object_ice_invoke<T, CT>(instance, cb, excb, sentcb);
5003template<
class T,
typename CT> Callback_Object_ice_invokePtr
5004newCallback_Object_ice_invoke(T* instance,
5005 void (T::*cb)(
bool,
const std::pair<const Byte*, const Byte*>&,
const CT&),
5006 void (T::*excb)(const ::Ice::Exception&,
const CT&),
5007 void (T::*sentcb)(
bool,
const CT&) = 0)
5009 return new Callback_Object_ice_invoke<T, CT>(instance, cb, excb, sentcb);
5019template<
class T> Callback_Object_ice_invokePtr
5020newCallback_Object_ice_invoke(T* instance,
5021 void (T::*excb)(const ::Ice::Exception&),
5022 void (T::*sentcb)(
bool) = 0)
5024 return new CallbackNC_Object_ice_invoke<T>(
5025 instance,
static_cast<void (T::*)(
bool,
const std::vector<Ice::Byte>&)
>(0), excb, sentcb);
5035template<
class T,
typename CT> Callback_Object_ice_invokePtr
5036newCallback_Object_ice_invoke(T* instance,
5037 void (T::*excb)(const ::Ice::Exception&,
const CT&),
5038 void (T::*sentcb)(
bool,
const CT&) = 0)
5040 return new Callback_Object_ice_invoke<T, CT>(
5041 instance,
static_cast<void (T::*)(
bool,
const std::vector<Ice::Byte>&,
const CT&)
>(0), excb, sentcb);
5051template<
class T> Callback_Object_ice_getConnectionPtr
5052newCallback_Object_ice_getConnection(
const IceUtil::Handle<T>& instance,
5053 void (T::*cb)(const ::Ice::ConnectionPtr&),
5054 void (T::*excb)(const ::Ice::Exception&))
5056 return new CallbackNC_Object_ice_getConnection<T>(instance, cb, excb, 0);
5066template<
class T,
typename CT> Callback_Object_ice_getConnectionPtr
5067newCallback_Object_ice_getConnection(
const IceUtil::Handle<T>& instance,
5068 void (T::*cb)(const ::Ice::ConnectionPtr&,
const CT&),
5069 void (T::*excb)(const ::Ice::Exception&,
const CT&))
5071 return new Callback_Object_ice_getConnection<T, CT>(instance, cb, excb, 0);
5081template<
class T> Callback_Object_ice_getConnectionPtr
5082newCallback_Object_ice_getConnection(T* instance,
5083 void (T::*cb)(const ::Ice::ConnectionPtr&),
5084 void (T::*excb)(const ::Ice::Exception&))
5086 return new CallbackNC_Object_ice_getConnection<T>(instance, cb, excb, 0);
5096template<
class T,
typename CT> Callback_Object_ice_getConnectionPtr
5097newCallback_Object_ice_getConnection(T* instance,
5098 void (T::*cb)(const ::Ice::ConnectionPtr&,
const CT&),
5099 void (T::*excb)(const ::Ice::Exception&,
const CT&))
5101 return new Callback_Object_ice_getConnection<T, CT>(instance, cb, excb, 0);
5112template<
class T> Callback_Object_ice_flushBatchRequestsPtr
5113newCallback_Object_ice_flushBatchRequests(
const IceUtil::Handle<T>& instance,
5114 void (T::*excb)(const ::Ice::Exception&),
5115 void (T::*sentcb)(
bool) = 0)
5117 return new CallbackNC_Object_ice_flushBatchRequests<T>(instance, excb, sentcb);
5128template<
class T,
typename CT> Callback_Object_ice_flushBatchRequestsPtr
5129newCallback_Object_ice_flushBatchRequests(
const IceUtil::Handle<T>& instance,
5130 void (T::*excb)(const ::Ice::Exception&,
const CT&),
5131 void (T::*sentcb)(
bool,
const CT&) = 0)
5133 return new Callback_Object_ice_flushBatchRequests<T, CT>(instance, excb, sentcb);
5144template<
class T> Callback_Object_ice_flushBatchRequestsPtr
5145newCallback_Object_ice_flushBatchRequests(T* instance,
5146 void (T::*excb)(const ::Ice::Exception&),
5147 void (T::*sentcb)(
bool) = 0)
5149 return new CallbackNC_Object_ice_flushBatchRequests<T>(instance, excb, sentcb);
5160template<
class T,
typename CT> Callback_Object_ice_flushBatchRequestsPtr
5161newCallback_Object_ice_flushBatchRequests(T* instance,
5162 void (T::*excb)(const ::Ice::Exception&,
const CT&),
5163 void (T::*sentcb)(
bool,
const CT&) = 0)
5165 return new Callback_Object_ice_flushBatchRequests<T, CT>(instance, excb, sentcb);
#define ICE_API
Definition Config.h:197
#define ICE_CPLUSPLUS
Definition Config.h:101
This exception is raised if no facet with the given name exists, but at least one facet with the give...
Definition LocalException.h:1501
Base class for all Ice run-time exceptions.
Definition Exception.h:29
The Ice locator interface.
Definition Locator.h:517
Base class of all object proxies.
Definition Proxy.h:317
::std::function< void()> ice_invokeAsync(const ::std::string &operation, ::Ice::OperationMode mode, const ::std::vector<::Ice::Byte > &inParams, ::std::function< void(bool, ::std::vector<::Ice::Byte >)> response, ::std::function< void(::std::exception_ptr)> ex=nullptr, ::std::function< void(bool)> sent=nullptr, const ::Ice::Context &context=::Ice::noExplicitContext)
Invokes an operation dynamically.
Definition Proxy.h:587
::std::shared_ptr<::Ice::ObjectPrx > ice_datagram() const
Obtains a proxy that is identical to this proxy, but uses datagram invocations.
::std::string ice_getAdapterId() const
Obtains the adapter ID for this proxy.
::std::function< void()> ice_getConnectionAsync(::std::function< void(::std::shared_ptr<::Ice::Connection >)> response, ::std::function< void(::std::exception_ptr)> ex=nullptr, ::std::function< void(bool)> sent=nullptr)
Obtains the Connection for this proxy.
Definition Proxy.h:1042
::std::shared_ptr<::Ice::ObjectPrx > ice_invocationTimeout(::Ice::Int timeout) const
Obtains a proxy that is identical to this proxy, except for the invocation timeout.
void ice_ping(const ::Ice::Context &context=::Ice::noExplicitContext)
Tests whether the target object of this proxy can be reached.
Definition Proxy.h:393
bool ice_isDatagram() const
Determines whether this proxy uses datagram invocations.
::std::shared_ptr<::Ice::ObjectPrx > ice_batchDatagram() const
Obtains a proxy that is identical to this proxy, but uses batch datagram invocations.
bool ice_isCollocationOptimized() const
Determines whether this proxy uses collocation optimization.
::Ice::Int ice_getLocatorCacheTimeout() const
Obtains the locator cache timeout of this proxy.
::std::shared_ptr<::Ice::Communicator > ice_getCommunicator() const
Obtains the communicator that created this proxy.
bool ice_isBatchDatagram() const
Determines whether this proxy uses batch datagram invocations.
friend bool operator<(const ObjectPrx &, const ObjectPrx &)
::Ice::optional< int > ice_getTimeout() const
Obtains the timeout override of this proxy.
auto ice_invokeAsync(const ::std::string &operation, ::Ice::OperationMode mode, const ::std::vector< Byte > &inParams, const ::Ice::Context &context=::Ice::noExplicitContext) -> decltype(std::declval< P<::Ice::Object::Ice_invokeResult > >().get_future())
Invokes an operation dynamically.
Definition Proxy.h:566
virtual ~ObjectPrx()=default
::std::shared_ptr<::Ice::ObjectPrx > ice_preferSecure(bool b) const
Obtains a proxy that is identical to this proxy, except for its endpoint selection policy.
bool ice_isTwoway() const
Determines whether this proxy uses twoway invocations.
::std::function< void()> ice_isAAsync(const ::std::string &typeId, ::std::function< void(bool)> response, ::std::function< void(::std::exception_ptr)> ex=nullptr, ::std::function< void(bool)> sent=nullptr, const ::Ice::Context &context=::Ice::noExplicitContext)
Tests whether this object supports a specific Slice interface.
Definition Proxy.h:360
::std::shared_ptr<::Ice::RouterPrx > ice_getRouter() const
Obtains the router for this proxy.
::std::vector<::std::string > ice_ids(const ::Ice::Context &context=::Ice::noExplicitContext)
Returns the Slice type IDs of the interfaces supported by the target object of this proxy.
Definition Proxy.h:440
auto ice_idsAsync(const ::Ice::Context &context=::Ice::noExplicitContext) -> decltype(std::declval< P<::std::vector<::std::string > > >().get_future())
Returns the Slice type IDs of the interfaces supported by the target object of this proxy.
Definition Proxy.h:469
::std::shared_ptr<::Ice::ObjectPrx > ice_endpoints(const ::Ice::EndpointSeq &endpoints) const
Obtains a proxy that is identical to this proxy, except for the endpoints.
auto ice_pingAsync(const ::Ice::Context &context=::Ice::noExplicitContext) -> decltype(std::declval< P< void > >().get_future())
Tests whether the target object of this proxy can be reached.
Definition Proxy.h:422
::std::shared_ptr<::Ice::ObjectPrx > ice_context(const ::Ice::Context &context) const
Obtains a proxy that is identical to this proxy, except for the per-proxy context.
auto ice_isAAsync(const ::std::string &typeId, const ::Ice::Context &context=::Ice::noExplicitContext) -> decltype(std::declval< P< bool > >().get_future())
Tests whether this object supports a specific Slice interface.
Definition Proxy.h:377
::std::function< void()> ice_invokeAsync(const ::std::string &operation, ::Ice::OperationMode mode, const ::std::pair< const ::Ice::Byte *, const ::Ice::Byte * > &inParams, ::std::function< void(bool, ::std::pair< const ::Ice::Byte *, const ::Ice::Byte * >)> response, ::std::function< void(::std::exception_ptr)> ex=nullptr, ::std::function< void(bool)> sent=nullptr, const ::Ice::Context &context=::Ice::noExplicitContext)
Invokes an operation dynamically.
Definition Proxy.h:675
::std::shared_ptr<::Ice::ObjectPrx > ice_fixed(const ::std::shared_ptr<::Ice::Connection > &connection) const
Obtains a proxy that is identical to this proxy, except it's a fixed proxy bound the given connection...
friend bool operator==(const ObjectPrx &, const ObjectPrx &)
bool ice_isOneway() const
Determines whether this proxy uses oneway invocations.
auto ice_getConnectionAsync() -> decltype(std::declval< P<::std::shared_ptr<::Ice::Connection > > >().get_future())
Obtains the Connection for this proxy.
Definition Proxy.h:1058
::std::shared_ptr<::Ice::ObjectPrx > ice_encodingVersion(const ::Ice::EncodingVersion &version) const
Obtains a proxy that is identical to this proxy, except for the encoding used to marshal parameters.
::std::shared_ptr<::Ice::ObjectPrx > ice_router(const ::std::shared_ptr<::Ice::RouterPrx > &router) const
Obtains a proxy that is identical to this proxy, except for the router.
::std::shared_ptr<::Ice::ObjectPrx > ice_connectionCached(bool b) const
Obtains a proxy that is identical to this proxy, except for connection caching.
bool ice_isFixed() const
Determines whether this proxy is a fixed proxy.
::Ice::EndpointSeq ice_getEndpoints() const
Obtains the endpoints used by this proxy.
::Ice::optional< bool > ice_getCompress() const
Obtains the compression override setting of this proxy.
::Ice::EncodingVersion ice_getEncodingVersion() const
Obtains the encoding version used to marshal request parameters.
::std::function< void()> ice_pingAsync(::std::function< void()> response, ::std::function< void(::std::exception_ptr)> ex=nullptr, ::std::function< void(bool)> sent=nullptr, const ::Ice::Context &context=::Ice::noExplicitContext)
Tests whether the target object of this proxy can be reached.
Definition Proxy.h:407
::std::shared_ptr<::Ice::ObjectPrx > ice_adapterId(const ::std::string &id) const
Obtains a proxy that is identical to this proxy, except for the adapter ID.
::std::shared_ptr<::Ice::ObjectPrx > ice_identity(const ::Ice::Identity &id) const
Obtains a proxy that is identical to this proxy, except for the identity.
auto ice_flushBatchRequestsAsync() -> decltype(std::declval< P< void > >().get_future())
Flushes asynchronously any pending batched requests for this communicator.
Definition Proxy.h:1107
::std::shared_ptr<::Ice::ObjectPrx > ice_collocationOptimized(bool b) const
Obtains a proxy that is identical to this proxy, except for collocation optimization.
::std::shared_ptr<::Ice::ObjectPrx > ice_compress(bool b) const
Obtains a proxy that is identical to this proxy, except for its compression setting which overrides t...
bool ice_invoke(const ::std::string &operation, ::Ice::OperationMode mode, const ::std::vector< Byte > &inParams, ::std::vector<::Ice::Byte > &outParams, const ::Ice::Context &context=::Ice::noExplicitContext)
Invokes an operation dynamically.
Definition Proxy.h:548
const ::std::string & ice_getFacet() const
Obtains the facet for this proxy.
::std::string ice_toString() const
Obtains a stringified version of this proxy.
bool ice_invoke(const ::std::string &operation, ::Ice::OperationMode mode, const ::std::pair< const ::Ice::Byte *, const ::Ice::Byte * > &inParams, ::std::vector<::Ice::Byte > &outParams, const ::Ice::Context &context=::Ice::noExplicitContext)
Invokes an operation dynamically.
Definition Proxy.h:626
static const ::std::string & ice_staticId()
Returns the Slice type ID associated with this type.
Definition Proxy.h:530
::std::shared_ptr<::Ice::ObjectPrx > ice_twoway() const
Obtains a proxy that is identical to this proxy, but uses twoway invocations.
bool ice_isConnectionCached() const
Determines whether this proxy caches connections.
::std::shared_ptr<::Ice::ObjectPrx > ice_connectionId(const ::std::string &id) const
Obtains a proxy that is identical to this proxy, except for its connection ID.
bool ice_isSecure() const
Determines whether this proxy uses only secure endpoints.
::Ice::Identity ice_getIdentity() const
Obtains the identity embedded in this proxy.
void ice_flushBatchRequests()
Flushes any pending batched requests for this communicator.
Definition Proxy.h:1081
::std::shared_ptr<::Ice::Connection > ice_getConnection()
Obtains the Connection for this proxy.
Definition Proxy.h:1028
::std::shared_ptr<::Ice::ObjectPrx > ice_endpointSelection(::Ice::EndpointSelectionType type) const
Obtains a proxy that is identical to this proxy, except for the endpoint selection policy.
::std::shared_ptr<::Ice::LocatorPrx > ice_getLocator() const
Obtains the locator for this proxy.
::std::shared_ptr<::Ice::ObjectPrx > ice_facet(const ::std::string &facet) const
Obtains a proxy that is identical to this proxy, except for the facet.
::std::shared_ptr<::Ice::ObjectPrx > ice_oneway() const
Obtains a proxy that is identical to this proxy, but uses oneway invocations.
::std::shared_ptr<::Ice::ObjectPrx > ice_locatorCacheTimeout(::Ice::Int timeout) const
Obtains a proxy that is identical to this proxy, except for the locator cache timeout.
bool ice_isPreferSecure() const
Determines whether this proxy prefers secure endpoints.
::std::function< void()> ice_idsAsync(::std::function< void(::std::vector<::std::string >)> response, ::std::function< void(::std::exception_ptr)> ex=nullptr, ::std::function< void(bool)> sent=nullptr, const ::Ice::Context &context=::Ice::noExplicitContext)
Returns the Slice type IDs of the interfaces supported by the target object of this proxy.
Definition Proxy.h:454
::std::shared_ptr<::Ice::Connection > ice_getCachedConnection() const
Obtains the cached Connection for this proxy.
::Ice::EndpointSelectionType ice_getEndpointSelection() const
Obtains the endpoint selection policy for this proxy (randomly or ordered).
::std::function< void()> ice_idAsync(::std::function< void(::std::string)> response, ::std::function< void(::std::exception_ptr)> ex=nullptr, ::std::function< void(bool)> sent=nullptr, const ::Ice::Context &context=::Ice::noExplicitContext)
Returns the Slice type ID of the most-derived interface supported by the target object of this proxy.
Definition Proxy.h:500
::std::shared_ptr<::Ice::ObjectPrx > ice_secure(bool b) const
Obtains a proxy that is identical to this proxy, except for how it selects endpoints.
::std::string ice_id(const ::Ice::Context &context=::Ice::noExplicitContext)
Returns the Slice type ID of the most-derived interface supported by the target object of this proxy.
Definition Proxy.h:486
bool ice_isA(const ::std::string &typeId, const ::Ice::Context &context=::Ice::noExplicitContext)
Tests whether this object supports a specific Slice interface.
Definition Proxy.h:345
::Ice::Int ice_getInvocationTimeout() const
Obtains the invocation timeout of this proxy.
::std::string ice_getConnectionId() const
Obtains the connection ID of this proxy.
std::function< void()> ice_flushBatchRequestsAsync(::std::function< void(::std::exception_ptr)> ex, ::std::function< void(bool)> sent=nullptr)
Flushes asynchronously any pending batched requests for this communicator.
Definition Proxy.h:1093
auto ice_invokeAsync(const ::std::string &operation, ::Ice::OperationMode mode, const ::std::pair< const ::Ice::Byte *, const ::Ice::Byte * > &inParams, const ::Ice::Context &context=::Ice::noExplicitContext) -> decltype(std::declval< P<::Ice::Object::Ice_invokeResult > >().get_future())
Invokes an operation dynamically.
Definition Proxy.h:650
bool ice_isBatchOneway() const
Determines whether this proxy uses batch oneway invocations.
::std::shared_ptr<::Ice::ObjectPrx > ice_timeout(int timeout) const
Obtains a proxy that is identical to this proxy, except for its connection timeout setting which over...
::Ice::Context ice_getContext() const
Obtains the per-proxy context for this proxy.
::std::shared_ptr<::Ice::ObjectPrx > ice_locator(const ::std::shared_ptr<::Ice::LocatorPrx > &locator) const
Obtains a proxy that is identical to this proxy, except for the locator.
::std::shared_ptr<::Ice::ObjectPrx > ice_batchOneway() const
Obtains a proxy that is identical to this proxy, but uses batch oneway invocations.
auto ice_idAsync(const ::Ice::Context &context=::Ice::noExplicitContext) -> decltype(std::declval< P<::std::string > >().get_future())
Returns the Slice type ID of the most-derived interface supported by the target object of this proxy.
Definition Proxy.h:515
Interface for output streams used to create a sequence of bytes from Slice types.
Definition OutputStream.h:28
Helper template that supplies proxy factory functions.
Definition Proxy.h:1204
::std::shared_ptr< Prx > ice_datagram() const
Obtains a proxy that is identical to this proxy, but uses datagram invocations.
Definition Proxy.h:1361
::std::shared_ptr< Prx > ice_compress(bool b) const
Obtains a proxy that is identical to this proxy, except for its compression setting which overrides t...
Definition Proxy.h:1381
::std::shared_ptr< Prx > ice_encodingVersion(const ::Ice::EncodingVersion &version) const
Obtains a proxy that is identical to this proxy, except for the encoding used to marshal parameters.
Definition Proxy.h:1425
::std::shared_ptr< Prx > ice_context(const ::Ice::Context &context) const
Obtains a proxy that is identical to this proxy, except for the per-proxy context.
Definition Proxy.h:1212
::std::shared_ptr< Prx > ice_batchOneway() const
Obtains a proxy that is identical to this proxy, but uses batch oneway invocations.
Definition Proxy.h:1352
::std::shared_ptr< Prx > ice_adapterId(const ::std::string &id) const
Obtains a proxy that is identical to this proxy, except for the adapter ID.
Definition Proxy.h:1222
::std::shared_ptr< Prx > ice_preferSecure(bool b) const
Obtains a proxy that is identical to this proxy, except for its endpoint selection policy.
Definition Proxy.h:1285
::std::shared_ptr< Prx > ice_locator(const ::std::shared_ptr<::Ice::LocatorPrx > &locator) const
Obtains a proxy that is identical to this proxy, except for the locator.
Definition Proxy.h:1305
::std::shared_ptr< Prx > ice_batchDatagram() const
Obtains a proxy that is identical to this proxy, but uses batch datagram invocations.
Definition Proxy.h:1370
::std::shared_ptr< Prx > ice_endpoints(const ::Ice::EndpointSeq &endpoints) const
Obtains a proxy that is identical to this proxy, except for the endpoints.
Definition Proxy.h:1232
::std::shared_ptr< Prx > ice_connectionId(const ::std::string &id) const
Obtains a proxy that is identical to this proxy, except for its connection ID.
Definition Proxy.h:1403
::std::shared_ptr< Prx > ice_invocationTimeout(int timeout) const
Obtains a proxy that is identical to this proxy, except for the invocation timeout.
Definition Proxy.h:1325
::std::shared_ptr< Prx > ice_fixed(const ::std::shared_ptr<::Ice::Connection > &connection) const
Obtains a proxy that is identical to this proxy, except it's a fixed proxy bound the given connection...
Definition Proxy.h:1414
::std::shared_ptr< Prx > ice_oneway() const
Obtains a proxy that is identical to this proxy, but uses oneway invocations.
Definition Proxy.h:1343
::std::shared_ptr< Prx > ice_connectionCached(bool b) const
Obtains a proxy that is identical to this proxy, except for connection caching.
Definition Proxy.h:1252
::std::shared_ptr< Prx > ice_collocationOptimized(bool b) const
Obtains a proxy that is identical to this proxy, except for collocation optimization.
Definition Proxy.h:1315
::std::shared_ptr< Prx > ice_locatorCacheTimeout(int timeout) const
Obtains a proxy that is identical to this proxy, except for the locator cache timeout.
Definition Proxy.h:1242
::std::shared_ptr< Prx > ice_twoway() const
Obtains a proxy that is identical to this proxy, but uses twoway invocations.
Definition Proxy.h:1334
::std::shared_ptr< Prx > ice_timeout(int timeout) const
Obtains a proxy that is identical to this proxy, except for its connection timeout setting which over...
Definition Proxy.h:1392
::std::shared_ptr< Prx > ice_router(const ::std::shared_ptr<::Ice::RouterPrx > &router) const
Obtains a proxy that is identical to this proxy, except for the router.
Definition Proxy.h:1295
::std::shared_ptr< Prx > ice_secure(bool b) const
Obtains a proxy that is identical to this proxy, except for how it selects endpoints.
Definition Proxy.h:1273
::std::shared_ptr< Prx > ice_endpointSelection(::Ice::EndpointSelectionType type) const
Obtains a proxy that is identical to this proxy, except for the endpoint selection policy.
Definition Proxy.h:1262
The Ice router interface.
Definition Router.h:242
std::experimental::Ice::optional< T > Optional
For compatibility with the Ice C++98 mapping, do not use in new code:
Definition Optional.h:1100
Definition BuiltinSequences.h:56
const Context noExplicitContext
Marker value used to indicate that no explicit context was passed to a proxy invocation.
EndpointSelectionType
Determines the order in which the Ice run time uses the endpoints in a proxy when establishing a conn...
Definition EndpointTypes.h:63
int Int
The mapping for the Slice int type.
Definition Config.h:54
::std::vector<::std::shared_ptr< Endpoint > > EndpointSeq
A sequence of endpoints.
Definition EndpointF.h:73
bool proxyIdentityAndFacetEqual(const ::std::shared_ptr< ObjectPrx > &lhs, const ::std::shared_ptr< ObjectPrx > &rhs)
Compares the object identities and facets of two proxies.
bool operator>(const C &lhs, const C &rhs)
Relational operator for generated structs and classes.
Definition Comparable.h:160
::std::vector< Byte > ByteSeq
A sequence of bytes.
Definition BuiltinSequences.h:66
std::experimental::Ice::optional< T > optional
Ice::optional is a placeholder for std::optional.
Definition Optional.h:1065
OperationMode
Determines the retry behavior an invocation in case of a (potentially) recoverable error.
Definition Current.h:74
::std::map<::std::string, ::std::string > Context
A request context.
Definition Current.h:68
::std::shared_ptr< P > checkedCast(const ::std::shared_ptr< T > &b, const ::Ice::Context &context=Ice::noExplicitContext)
Downcasts a proxy after confirming the target object's type via a remote invocation.
Definition Proxy.h:1604
bool proxyIdentityLess(const ::std::shared_ptr< ObjectPrx > &lhs, const ::std::shared_ptr< ObjectPrx > &rhs)
Compares the object identities of two proxies.
bool operator<(const C &lhs, const C &rhs)
Relational operator for generated structs and classes.
Definition Comparable.h:136
bool proxyIdentityEqual(const ::std::shared_ptr< ObjectPrx > &lhs, const ::std::shared_ptr< ObjectPrx > &rhs)
Compares the object identities of two proxies.
bool operator<=(const C &lhs, const C &rhs)
Relational operator for generated structs and classes.
Definition Comparable.h:148
unsigned char Byte
The mapping for the Slice byte type.
Definition Config.h:50
bool operator>=(const C &lhs, const C &rhs)
Relational operator for generated structs and classes.
Definition Comparable.h:172
bool operator==(const C &lhs, const C &rhs)
Relational operator for generated structs and classes.
Definition Comparable.h:184
std::ostream & operator<<(std::ostream &out, const ProtocolVersion &version)
Definition Protocol.h:179
bool operator!=(const C &lhs, const C &rhs)
Relational operator for generated structs and classes.
Definition Comparable.h:196
IceUtil::Exception Exception
Definition Exception.h:22
bool proxyIdentityAndFacetLess(const ::std::shared_ptr< ObjectPrx > &lhs, const ::std::shared_ptr< ObjectPrx > &rhs)
Compares the object identities and facets of two proxies.
::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:1557
A version structure for the encoding version.
Definition Version.h:82
The identity of an Ice object.
Definition Identity.h:67
Holds the results of a call to ice_invoke.
Definition Object.h:168
A functor that compares the object identities and facets of two proxies.
Definition Proxy.h:1537
bool operator()(const ::std::shared_ptr< ObjectPrx > &lhs, const ::std::shared_ptr< ObjectPrx > &rhs) const
Definition Proxy.h:1538
A functor that compares the object identities and facets of two proxies.
Definition Proxy.h:1521
bool operator()(const ::std::shared_ptr< ObjectPrx > &lhs, const ::std::shared_ptr< ObjectPrx > &rhs) const
Definition Proxy.h:1522
A functor that compares the object identities of two proxies.
Definition Proxy.h:1505
bool operator()(const ::std::shared_ptr< ObjectPrx > &lhs, const ::std::shared_ptr< ObjectPrx > &rhs) const
Definition Proxy.h:1506
A functor that compares the object identities of two proxies.
Definition Proxy.h:1489
bool operator()(const ::std::shared_ptr< ObjectPrx > &lhs, const ::std::shared_ptr< ObjectPrx > &rhs) const
Definition Proxy.h:1490