1239 lines
50 KiB
C
1239 lines
50 KiB
C
|
|
// **********************************************************************
|
||
|
|
//
|
||
|
|
// Copyright (c) 2003-2018 ZeroC, Inc. All rights reserved.
|
||
|
|
//
|
||
|
|
// This copy of Ice is licensed to you under the terms described in the
|
||
|
|
// ICE_LICENSE file included in this distribution.
|
||
|
|
//
|
||
|
|
// **********************************************************************
|
||
|
|
//
|
||
|
|
// Ice version 3.7.1
|
||
|
|
//
|
||
|
|
// <auto-generated>
|
||
|
|
//
|
||
|
|
// Generated from file `CallBackICE.ice'
|
||
|
|
//
|
||
|
|
// Warning: do not edit this file.
|
||
|
|
//
|
||
|
|
// </auto-generated>
|
||
|
|
//
|
||
|
|
|
||
|
|
#ifndef __CallBackICE_h__
|
||
|
|
#define __CallBackICE_h__
|
||
|
|
|
||
|
|
#include <IceUtil/PushDisableWarnings.h>
|
||
|
|
#include <Ice/ProxyF.h>
|
||
|
|
#include <Ice/ObjectF.h>
|
||
|
|
#include <Ice/ValueF.h>
|
||
|
|
#include <Ice/Exception.h>
|
||
|
|
#include <Ice/LocalObject.h>
|
||
|
|
#include <Ice/StreamHelpers.h>
|
||
|
|
#include <Ice/Comparable.h>
|
||
|
|
#include <Ice/Proxy.h>
|
||
|
|
#include <Ice/Object.h>
|
||
|
|
#include <Ice/GCObject.h>
|
||
|
|
#include <Ice/Value.h>
|
||
|
|
#include <Ice/Incoming.h>
|
||
|
|
#include <Ice/FactoryTableInit.h>
|
||
|
|
#include <IceUtil/ScopedArray.h>
|
||
|
|
#include <Ice/Optional.h>
|
||
|
|
#include <Ice/BuiltinSequences.h>
|
||
|
|
#include <IceUtil/UndefSysMacros.h>
|
||
|
|
|
||
|
|
#ifndef ICE_IGNORE_VERSION
|
||
|
|
# if ICE_INT_VERSION / 100 != 307
|
||
|
|
# error Ice version mismatch!
|
||
|
|
# endif
|
||
|
|
# if ICE_INT_VERSION % 100 > 50
|
||
|
|
# error Beta header file detected
|
||
|
|
# endif
|
||
|
|
# if ICE_INT_VERSION % 100 < 1
|
||
|
|
# error Ice patch level mismatch!
|
||
|
|
# endif
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#ifdef ICE_CPP11_MAPPING // C++11 mapping
|
||
|
|
|
||
|
|
namespace baosight
|
||
|
|
{
|
||
|
|
|
||
|
|
class CallBackICE;
|
||
|
|
class CallBackICEPrx;
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
namespace baosight
|
||
|
|
{
|
||
|
|
|
||
|
|
class CallBackICE : public virtual ::Ice::Object
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
|
||
|
|
using ProxyType = CallBackICEPrx;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Determines whether this object supports an interface with the given Slice type ID.
|
||
|
|
* @param id The fully-scoped Slice type ID.
|
||
|
|
* @param current The Current object for the invocation.
|
||
|
|
* @return True if this object supports the interface, false, otherwise.
|
||
|
|
*/
|
||
|
|
virtual bool ice_isA(::std::string id, const ::Ice::Current& current) const override;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Obtains a list of the Slice type IDs representing the interfaces supported by this object.
|
||
|
|
* @param current The Current object for the invocation.
|
||
|
|
* @return A list of fully-scoped type IDs.
|
||
|
|
*/
|
||
|
|
virtual ::std::vector<::std::string> ice_ids(const ::Ice::Current& current) const override;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Obtains a Slice type ID representing the most-derived interface supported by this object.
|
||
|
|
* @param current The Current object for the invocation.
|
||
|
|
* @return A fully-scoped type ID.
|
||
|
|
*/
|
||
|
|
virtual ::std::string ice_id(const ::Ice::Current& current) const override;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Obtains the Slice type ID corresponding to this class.
|
||
|
|
* @return A fully-scoped type ID.
|
||
|
|
*/
|
||
|
|
static const ::std::string& ice_staticId();
|
||
|
|
|
||
|
|
virtual int SendDataShort(int eventNo, ::Ice::ByteSeq seq, int length, const ::Ice::Current& current) = 0;
|
||
|
|
/// \cond INTERNAL
|
||
|
|
bool _iceD_SendDataShort(::IceInternal::Incoming&, const ::Ice::Current&);
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
virtual ::Ice::ByteSeq MsgCallBack(int eventNo, ::Ice::ByteSeq seq, const ::Ice::Current& current) = 0;
|
||
|
|
/// \cond INTERNAL
|
||
|
|
bool _iceD_MsgCallBack(::IceInternal::Incoming&, const ::Ice::Current&);
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
virtual int SendDataLong(int eventNo, ::Ice::ByteSeq seq, int length, ::std::string sender, ::std::string reciver, ::std::string aditional, const ::Ice::Current& current) = 0;
|
||
|
|
/// \cond INTERNAL
|
||
|
|
bool _iceD_SendDataLong(::IceInternal::Incoming&, const ::Ice::Current&);
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
virtual void TimeNotify(int eventNo, ::Ice::ByteSeq seq, const ::Ice::Current& current) = 0;
|
||
|
|
/// \cond INTERNAL
|
||
|
|
bool _iceD_TimeNotify(::IceInternal::Incoming&, const ::Ice::Current&);
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
/// \cond INTERNAL
|
||
|
|
virtual bool _iceDispatch(::IceInternal::Incoming&, const ::Ice::Current&) override;
|
||
|
|
/// \endcond
|
||
|
|
};
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
namespace baosight
|
||
|
|
{
|
||
|
|
|
||
|
|
class CallBackICEPrx : public virtual ::Ice::Proxy<CallBackICEPrx, ::Ice::ObjectPrx>
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
|
||
|
|
int SendDataShort(int eventNo, const ::Ice::ByteSeq& seq, int length, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
return _makePromiseOutgoing<int>(true, this, &CallBackICEPrx::_iceI_SendDataShort, eventNo, seq, length, context).get();
|
||
|
|
}
|
||
|
|
|
||
|
|
template<template<typename> class P = ::std::promise>
|
||
|
|
auto SendDataShortAsync(int eventNo, const ::Ice::ByteSeq& seq, int length, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
-> decltype(::std::declval<P<int>>().get_future())
|
||
|
|
{
|
||
|
|
return _makePromiseOutgoing<int, P>(false, this, &CallBackICEPrx::_iceI_SendDataShort, eventNo, seq, length, context);
|
||
|
|
}
|
||
|
|
|
||
|
|
::std::function<void()>
|
||
|
|
SendDataShortAsync(int eventNo, const ::Ice::ByteSeq& seq, int length,
|
||
|
|
::std::function<void(int)> response,
|
||
|
|
::std::function<void(::std::exception_ptr)> ex = nullptr,
|
||
|
|
::std::function<void(bool)> sent = nullptr,
|
||
|
|
const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
return _makeLamdaOutgoing<int>(response, ex, sent, this, &CallBackICEPrx::_iceI_SendDataShort, eventNo, seq, length, context);
|
||
|
|
}
|
||
|
|
|
||
|
|
/// \cond INTERNAL
|
||
|
|
void _iceI_SendDataShort(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<int>>&, int, const ::Ice::ByteSeq&, int, const ::Ice::Context&);
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
::Ice::ByteSeq MsgCallBack(int eventNo, const ::Ice::ByteSeq& seq, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
return _makePromiseOutgoing<::Ice::ByteSeq>(true, this, &CallBackICEPrx::_iceI_MsgCallBack, eventNo, seq, context).get();
|
||
|
|
}
|
||
|
|
|
||
|
|
template<template<typename> class P = ::std::promise>
|
||
|
|
auto MsgCallBackAsync(int eventNo, const ::Ice::ByteSeq& seq, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
-> decltype(::std::declval<P<::Ice::ByteSeq>>().get_future())
|
||
|
|
{
|
||
|
|
return _makePromiseOutgoing<::Ice::ByteSeq, P>(false, this, &CallBackICEPrx::_iceI_MsgCallBack, eventNo, seq, context);
|
||
|
|
}
|
||
|
|
|
||
|
|
::std::function<void()>
|
||
|
|
MsgCallBackAsync(int eventNo, const ::Ice::ByteSeq& seq,
|
||
|
|
::std::function<void(::Ice::ByteSeq)> response,
|
||
|
|
::std::function<void(::std::exception_ptr)> ex = nullptr,
|
||
|
|
::std::function<void(bool)> sent = nullptr,
|
||
|
|
const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
return _makeLamdaOutgoing<::Ice::ByteSeq>(response, ex, sent, this, &CallBackICEPrx::_iceI_MsgCallBack, eventNo, seq, context);
|
||
|
|
}
|
||
|
|
|
||
|
|
/// \cond INTERNAL
|
||
|
|
void _iceI_MsgCallBack(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::Ice::ByteSeq>>&, int, const ::Ice::ByteSeq&, const ::Ice::Context&);
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
int SendDataLong(int eventNo, const ::Ice::ByteSeq& seq, int length, const ::std::string& sender, const ::std::string& reciver, const ::std::string& aditional, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
return _makePromiseOutgoing<int>(true, this, &CallBackICEPrx::_iceI_SendDataLong, eventNo, seq, length, sender, reciver, aditional, context).get();
|
||
|
|
}
|
||
|
|
|
||
|
|
template<template<typename> class P = ::std::promise>
|
||
|
|
auto SendDataLongAsync(int eventNo, const ::Ice::ByteSeq& seq, int length, const ::std::string& sender, const ::std::string& reciver, const ::std::string& aditional, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
-> decltype(::std::declval<P<int>>().get_future())
|
||
|
|
{
|
||
|
|
return _makePromiseOutgoing<int, P>(false, this, &CallBackICEPrx::_iceI_SendDataLong, eventNo, seq, length, sender, reciver, aditional, context);
|
||
|
|
}
|
||
|
|
|
||
|
|
::std::function<void()>
|
||
|
|
SendDataLongAsync(int eventNo, const ::Ice::ByteSeq& seq, int length, const ::std::string& sender, const ::std::string& reciver, const ::std::string& aditional,
|
||
|
|
::std::function<void(int)> response,
|
||
|
|
::std::function<void(::std::exception_ptr)> ex = nullptr,
|
||
|
|
::std::function<void(bool)> sent = nullptr,
|
||
|
|
const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
return _makeLamdaOutgoing<int>(response, ex, sent, this, &CallBackICEPrx::_iceI_SendDataLong, eventNo, seq, length, sender, reciver, aditional, context);
|
||
|
|
}
|
||
|
|
|
||
|
|
/// \cond INTERNAL
|
||
|
|
void _iceI_SendDataLong(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<int>>&, int, const ::Ice::ByteSeq&, int, const ::std::string&, const ::std::string&, const ::std::string&, const ::Ice::Context&);
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
void TimeNotify(int eventNo, const ::Ice::ByteSeq& seq, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
_makePromiseOutgoing<void>(true, this, &CallBackICEPrx::_iceI_TimeNotify, eventNo, seq, context).get();
|
||
|
|
}
|
||
|
|
|
||
|
|
template<template<typename> class P = ::std::promise>
|
||
|
|
auto TimeNotifyAsync(int eventNo, const ::Ice::ByteSeq& seq, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
-> decltype(::std::declval<P<void>>().get_future())
|
||
|
|
{
|
||
|
|
return _makePromiseOutgoing<void, P>(false, this, &CallBackICEPrx::_iceI_TimeNotify, eventNo, seq, context);
|
||
|
|
}
|
||
|
|
|
||
|
|
::std::function<void()>
|
||
|
|
TimeNotifyAsync(int eventNo, const ::Ice::ByteSeq& seq,
|
||
|
|
::std::function<void()> response,
|
||
|
|
::std::function<void(::std::exception_ptr)> ex = nullptr,
|
||
|
|
::std::function<void(bool)> sent = nullptr,
|
||
|
|
const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
return _makeLamdaOutgoing<void>(response, ex, sent, this, &CallBackICEPrx::_iceI_TimeNotify, eventNo, seq, context);
|
||
|
|
}
|
||
|
|
|
||
|
|
/// \cond INTERNAL
|
||
|
|
void _iceI_TimeNotify(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<void>>&, int, const ::Ice::ByteSeq&, const ::Ice::Context&);
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Obtains the Slice type ID of this interface.
|
||
|
|
* @return The fully-scoped type ID.
|
||
|
|
*/
|
||
|
|
static const ::std::string& ice_staticId();
|
||
|
|
|
||
|
|
protected:
|
||
|
|
|
||
|
|
/// \cond INTERNAL
|
||
|
|
CallBackICEPrx() = default;
|
||
|
|
friend ::std::shared_ptr<CallBackICEPrx> IceInternal::createProxy<CallBackICEPrx>();
|
||
|
|
|
||
|
|
virtual ::std::shared_ptr<::Ice::ObjectPrx> _newInstance() const override;
|
||
|
|
/// \endcond
|
||
|
|
};
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
/// \cond STREAM
|
||
|
|
namespace Ice
|
||
|
|
{
|
||
|
|
|
||
|
|
}
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
/// \cond INTERNAL
|
||
|
|
namespace baosight
|
||
|
|
{
|
||
|
|
|
||
|
|
using CallBackICEPtr = ::std::shared_ptr<CallBackICE>;
|
||
|
|
using CallBackICEPrxPtr = ::std::shared_ptr<CallBackICEPrx>;
|
||
|
|
|
||
|
|
}
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
#else // C++98 mapping
|
||
|
|
|
||
|
|
namespace IceProxy
|
||
|
|
{
|
||
|
|
|
||
|
|
namespace baosight
|
||
|
|
{
|
||
|
|
|
||
|
|
class CallBackICE;
|
||
|
|
/// \cond INTERNAL
|
||
|
|
void _readProxy(::Ice::InputStream*, ::IceInternal::ProxyHandle< ::IceProxy::baosight::CallBackICE>&);
|
||
|
|
::IceProxy::Ice::Object* upCast(::IceProxy::baosight::CallBackICE*);
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
namespace baosight
|
||
|
|
{
|
||
|
|
|
||
|
|
class CallBackICE;
|
||
|
|
/// \cond INTERNAL
|
||
|
|
::Ice::Object* upCast(CallBackICE*);
|
||
|
|
/// \endcond
|
||
|
|
typedef ::IceInternal::Handle< CallBackICE> CallBackICEPtr;
|
||
|
|
typedef ::IceInternal::ProxyHandle< ::IceProxy::baosight::CallBackICE> CallBackICEPrx;
|
||
|
|
typedef CallBackICEPrx CallBackICEPrxPtr;
|
||
|
|
/// \cond INTERNAL
|
||
|
|
void _icePatchObjectPtr(CallBackICEPtr&, const ::Ice::ObjectPtr&);
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
namespace baosight
|
||
|
|
{
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Base class for asynchronous callback wrapper classes used for calls to
|
||
|
|
* IceProxy::baosight::CallBackICE::begin_SendDataShort.
|
||
|
|
* Create a wrapper instance by calling ::baosight::newCallback_CallBackICE_SendDataShort.
|
||
|
|
*/
|
||
|
|
class Callback_CallBackICE_SendDataShort_Base : public virtual ::IceInternal::CallbackBase { };
|
||
|
|
typedef ::IceUtil::Handle< Callback_CallBackICE_SendDataShort_Base> Callback_CallBackICE_SendDataShortPtr;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Base class for asynchronous callback wrapper classes used for calls to
|
||
|
|
* IceProxy::baosight::CallBackICE::begin_MsgCallBack.
|
||
|
|
* Create a wrapper instance by calling ::baosight::newCallback_CallBackICE_MsgCallBack.
|
||
|
|
*/
|
||
|
|
class Callback_CallBackICE_MsgCallBack_Base : public virtual ::IceInternal::CallbackBase { };
|
||
|
|
typedef ::IceUtil::Handle< Callback_CallBackICE_MsgCallBack_Base> Callback_CallBackICE_MsgCallBackPtr;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Base class for asynchronous callback wrapper classes used for calls to
|
||
|
|
* IceProxy::baosight::CallBackICE::begin_SendDataLong.
|
||
|
|
* Create a wrapper instance by calling ::baosight::newCallback_CallBackICE_SendDataLong.
|
||
|
|
*/
|
||
|
|
class Callback_CallBackICE_SendDataLong_Base : public virtual ::IceInternal::CallbackBase { };
|
||
|
|
typedef ::IceUtil::Handle< Callback_CallBackICE_SendDataLong_Base> Callback_CallBackICE_SendDataLongPtr;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Base class for asynchronous callback wrapper classes used for calls to
|
||
|
|
* IceProxy::baosight::CallBackICE::begin_TimeNotify.
|
||
|
|
* Create a wrapper instance by calling ::baosight::newCallback_CallBackICE_TimeNotify.
|
||
|
|
*/
|
||
|
|
class Callback_CallBackICE_TimeNotify_Base : public virtual ::IceInternal::CallbackBase { };
|
||
|
|
typedef ::IceUtil::Handle< Callback_CallBackICE_TimeNotify_Base> Callback_CallBackICE_TimeNotifyPtr;
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
namespace IceProxy
|
||
|
|
{
|
||
|
|
|
||
|
|
namespace baosight
|
||
|
|
{
|
||
|
|
|
||
|
|
class CallBackICE : public virtual ::Ice::Proxy<CallBackICE, ::IceProxy::Ice::Object>
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
|
||
|
|
::Ice::Int SendDataShort(::Ice::Int eventNo, const ::Ice::ByteSeq& seq, ::Ice::Int length, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
return end_SendDataShort(_iceI_begin_SendDataShort(eventNo, seq, length, context, ::IceInternal::dummyCallback, 0, true));
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_SendDataShort(::Ice::Int eventNo, const ::Ice::ByteSeq& seq, ::Ice::Int length, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
return _iceI_begin_SendDataShort(eventNo, seq, length, context, ::IceInternal::dummyCallback, 0);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_SendDataShort(::Ice::Int eventNo, const ::Ice::ByteSeq& seq, ::Ice::Int length, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_SendDataShort(eventNo, seq, length, ::Ice::noExplicitContext, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_SendDataShort(::Ice::Int eventNo, const ::Ice::ByteSeq& seq, ::Ice::Int length, const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_SendDataShort(eventNo, seq, length, context, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_SendDataShort(::Ice::Int eventNo, const ::Ice::ByteSeq& seq, ::Ice::Int length, const ::baosight::Callback_CallBackICE_SendDataShortPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_SendDataShort(eventNo, seq, length, ::Ice::noExplicitContext, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_SendDataShort(::Ice::Int eventNo, const ::Ice::ByteSeq& seq, ::Ice::Int length, const ::Ice::Context& context, const ::baosight::Callback_CallBackICE_SendDataShortPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_SendDataShort(eventNo, seq, length, context, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::Int end_SendDataShort(const ::Ice::AsyncResultPtr& result);
|
||
|
|
|
||
|
|
private:
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr _iceI_begin_SendDataShort(::Ice::Int, const ::Ice::ByteSeq&, ::Ice::Int, const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0, bool sync = false);
|
||
|
|
|
||
|
|
public:
|
||
|
|
|
||
|
|
::Ice::ByteSeq MsgCallBack(::Ice::Int eventNo, const ::Ice::ByteSeq& seq, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
return end_MsgCallBack(_iceI_begin_MsgCallBack(eventNo, seq, context, ::IceInternal::dummyCallback, 0, true));
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_MsgCallBack(::Ice::Int eventNo, const ::Ice::ByteSeq& seq, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
return _iceI_begin_MsgCallBack(eventNo, seq, context, ::IceInternal::dummyCallback, 0);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_MsgCallBack(::Ice::Int eventNo, const ::Ice::ByteSeq& seq, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_MsgCallBack(eventNo, seq, ::Ice::noExplicitContext, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_MsgCallBack(::Ice::Int eventNo, const ::Ice::ByteSeq& seq, const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_MsgCallBack(eventNo, seq, context, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_MsgCallBack(::Ice::Int eventNo, const ::Ice::ByteSeq& seq, const ::baosight::Callback_CallBackICE_MsgCallBackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_MsgCallBack(eventNo, seq, ::Ice::noExplicitContext, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_MsgCallBack(::Ice::Int eventNo, const ::Ice::ByteSeq& seq, const ::Ice::Context& context, const ::baosight::Callback_CallBackICE_MsgCallBackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_MsgCallBack(eventNo, seq, context, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::ByteSeq end_MsgCallBack(const ::Ice::AsyncResultPtr& result);
|
||
|
|
|
||
|
|
private:
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr _iceI_begin_MsgCallBack(::Ice::Int, const ::Ice::ByteSeq&, const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0, bool sync = false);
|
||
|
|
|
||
|
|
public:
|
||
|
|
|
||
|
|
::Ice::Int SendDataLong(::Ice::Int eventNo, const ::Ice::ByteSeq& seq, ::Ice::Int length, const ::std::string& sender, const ::std::string& reciver, const ::std::string& aditional, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
return end_SendDataLong(_iceI_begin_SendDataLong(eventNo, seq, length, sender, reciver, aditional, context, ::IceInternal::dummyCallback, 0, true));
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_SendDataLong(::Ice::Int eventNo, const ::Ice::ByteSeq& seq, ::Ice::Int length, const ::std::string& sender, const ::std::string& reciver, const ::std::string& aditional, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
return _iceI_begin_SendDataLong(eventNo, seq, length, sender, reciver, aditional, context, ::IceInternal::dummyCallback, 0);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_SendDataLong(::Ice::Int eventNo, const ::Ice::ByteSeq& seq, ::Ice::Int length, const ::std::string& sender, const ::std::string& reciver, const ::std::string& aditional, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_SendDataLong(eventNo, seq, length, sender, reciver, aditional, ::Ice::noExplicitContext, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_SendDataLong(::Ice::Int eventNo, const ::Ice::ByteSeq& seq, ::Ice::Int length, const ::std::string& sender, const ::std::string& reciver, const ::std::string& aditional, const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_SendDataLong(eventNo, seq, length, sender, reciver, aditional, context, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_SendDataLong(::Ice::Int eventNo, const ::Ice::ByteSeq& seq, ::Ice::Int length, const ::std::string& sender, const ::std::string& reciver, const ::std::string& aditional, const ::baosight::Callback_CallBackICE_SendDataLongPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_SendDataLong(eventNo, seq, length, sender, reciver, aditional, ::Ice::noExplicitContext, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_SendDataLong(::Ice::Int eventNo, const ::Ice::ByteSeq& seq, ::Ice::Int length, const ::std::string& sender, const ::std::string& reciver, const ::std::string& aditional, const ::Ice::Context& context, const ::baosight::Callback_CallBackICE_SendDataLongPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_SendDataLong(eventNo, seq, length, sender, reciver, aditional, context, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::Int end_SendDataLong(const ::Ice::AsyncResultPtr& result);
|
||
|
|
|
||
|
|
private:
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr _iceI_begin_SendDataLong(::Ice::Int, const ::Ice::ByteSeq&, ::Ice::Int, const ::std::string&, const ::std::string&, const ::std::string&, const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0, bool sync = false);
|
||
|
|
|
||
|
|
public:
|
||
|
|
|
||
|
|
void TimeNotify(::Ice::Int eventNo, const ::Ice::ByteSeq& seq, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
end_TimeNotify(_iceI_begin_TimeNotify(eventNo, seq, context, ::IceInternal::dummyCallback, 0, true));
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_TimeNotify(::Ice::Int eventNo, const ::Ice::ByteSeq& seq, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
return _iceI_begin_TimeNotify(eventNo, seq, context, ::IceInternal::dummyCallback, 0);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_TimeNotify(::Ice::Int eventNo, const ::Ice::ByteSeq& seq, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_TimeNotify(eventNo, seq, ::Ice::noExplicitContext, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_TimeNotify(::Ice::Int eventNo, const ::Ice::ByteSeq& seq, const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_TimeNotify(eventNo, seq, context, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_TimeNotify(::Ice::Int eventNo, const ::Ice::ByteSeq& seq, const ::baosight::Callback_CallBackICE_TimeNotifyPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_TimeNotify(eventNo, seq, ::Ice::noExplicitContext, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_TimeNotify(::Ice::Int eventNo, const ::Ice::ByteSeq& seq, const ::Ice::Context& context, const ::baosight::Callback_CallBackICE_TimeNotifyPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_TimeNotify(eventNo, seq, context, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
void end_TimeNotify(const ::Ice::AsyncResultPtr& result);
|
||
|
|
|
||
|
|
private:
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr _iceI_begin_TimeNotify(::Ice::Int, const ::Ice::ByteSeq&, const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0, bool sync = false);
|
||
|
|
|
||
|
|
public:
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Obtains the Slice type ID corresponding to this interface.
|
||
|
|
* @return A fully-scoped type ID.
|
||
|
|
*/
|
||
|
|
static const ::std::string& ice_staticId();
|
||
|
|
|
||
|
|
protected:
|
||
|
|
/// \cond INTERNAL
|
||
|
|
|
||
|
|
virtual ::IceProxy::Ice::Object* _newInstance() const;
|
||
|
|
/// \endcond
|
||
|
|
};
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
namespace baosight
|
||
|
|
{
|
||
|
|
|
||
|
|
class CallBackICE : public virtual ::Ice::Object
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
|
||
|
|
typedef CallBackICEPrx ProxyType;
|
||
|
|
typedef CallBackICEPtr PointerType;
|
||
|
|
|
||
|
|
virtual ~CallBackICE();
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Determines whether this object supports an interface with the given Slice type ID.
|
||
|
|
* @param id The fully-scoped Slice type ID.
|
||
|
|
* @param current The Current object for the invocation.
|
||
|
|
* @return True if this object supports the interface, false, otherwise.
|
||
|
|
*/
|
||
|
|
virtual bool ice_isA(const ::std::string& id, const ::Ice::Current& current = ::Ice::emptyCurrent) const;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Obtains a list of the Slice type IDs representing the interfaces supported by this object.
|
||
|
|
* @param current The Current object for the invocation.
|
||
|
|
* @return A list of fully-scoped type IDs.
|
||
|
|
*/
|
||
|
|
virtual ::std::vector< ::std::string> ice_ids(const ::Ice::Current& current = ::Ice::emptyCurrent) const;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Obtains a Slice type ID representing the most-derived interface supported by this object.
|
||
|
|
* @param current The Current object for the invocation.
|
||
|
|
* @return A fully-scoped type ID.
|
||
|
|
*/
|
||
|
|
virtual const ::std::string& ice_id(const ::Ice::Current& current = ::Ice::emptyCurrent) const;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Obtains the Slice type ID corresponding to this class.
|
||
|
|
* @return A fully-scoped type ID.
|
||
|
|
*/
|
||
|
|
static const ::std::string& ice_staticId();
|
||
|
|
|
||
|
|
virtual ::Ice::Int SendDataShort(::Ice::Int eventNo, const ::Ice::ByteSeq& seq, ::Ice::Int length, const ::Ice::Current& current = ::Ice::emptyCurrent) = 0;
|
||
|
|
/// \cond INTERNAL
|
||
|
|
bool _iceD_SendDataShort(::IceInternal::Incoming&, const ::Ice::Current&);
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
virtual ::Ice::ByteSeq MsgCallBack(::Ice::Int eventNo, const ::Ice::ByteSeq& seq, const ::Ice::Current& current = ::Ice::emptyCurrent) = 0;
|
||
|
|
/// \cond INTERNAL
|
||
|
|
bool _iceD_MsgCallBack(::IceInternal::Incoming&, const ::Ice::Current&);
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
virtual ::Ice::Int SendDataLong(::Ice::Int eventNo, const ::Ice::ByteSeq& seq, ::Ice::Int length, const ::std::string& sender, const ::std::string& reciver, const ::std::string& aditional, const ::Ice::Current& current = ::Ice::emptyCurrent) = 0;
|
||
|
|
/// \cond INTERNAL
|
||
|
|
bool _iceD_SendDataLong(::IceInternal::Incoming&, const ::Ice::Current&);
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
virtual void TimeNotify(::Ice::Int eventNo, const ::Ice::ByteSeq& seq, const ::Ice::Current& current = ::Ice::emptyCurrent) = 0;
|
||
|
|
/// \cond INTERNAL
|
||
|
|
bool _iceD_TimeNotify(::IceInternal::Incoming&, const ::Ice::Current&);
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
/// \cond INTERNAL
|
||
|
|
virtual bool _iceDispatch(::IceInternal::Incoming&, const ::Ice::Current&);
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
protected:
|
||
|
|
|
||
|
|
/// \cond STREAM
|
||
|
|
virtual void _iceWriteImpl(::Ice::OutputStream*) const;
|
||
|
|
virtual void _iceReadImpl(::Ice::InputStream*);
|
||
|
|
/// \endcond
|
||
|
|
};
|
||
|
|
|
||
|
|
/// \cond INTERNAL
|
||
|
|
inline bool operator==(const CallBackICE& lhs, const CallBackICE& rhs)
|
||
|
|
{
|
||
|
|
return static_cast<const ::Ice::Object&>(lhs) == static_cast<const ::Ice::Object&>(rhs);
|
||
|
|
}
|
||
|
|
|
||
|
|
inline bool operator<(const CallBackICE& lhs, const CallBackICE& rhs)
|
||
|
|
{
|
||
|
|
return static_cast<const ::Ice::Object&>(lhs) < static_cast<const ::Ice::Object&>(rhs);
|
||
|
|
}
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
/// \cond STREAM
|
||
|
|
namespace Ice
|
||
|
|
{
|
||
|
|
|
||
|
|
}
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
namespace baosight
|
||
|
|
{
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Type-safe asynchronous callback wrapper class used for calls to
|
||
|
|
* IceProxy::baosight::CallBackICE::begin_SendDataShort.
|
||
|
|
* Create a wrapper instance by calling ::baosight::newCallback_CallBackICE_SendDataShort.
|
||
|
|
*/
|
||
|
|
template<class T>
|
||
|
|
class CallbackNC_CallBackICE_SendDataShort : public Callback_CallBackICE_SendDataShort_Base, public ::IceInternal::TwowayCallbackNC<T>
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
|
||
|
|
typedef IceUtil::Handle<T> TPtr;
|
||
|
|
|
||
|
|
typedef void (T::*Exception)(const ::Ice::Exception&);
|
||
|
|
typedef void (T::*Sent)(bool);
|
||
|
|
typedef void (T::*Response)(::Ice::Int);
|
||
|
|
|
||
|
|
CallbackNC_CallBackICE_SendDataShort(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
|
||
|
|
: ::IceInternal::TwowayCallbackNC<T>(obj, cb != 0, excb, sentcb), _response(cb)
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
/// \cond INTERNAL
|
||
|
|
virtual void completed(const ::Ice::AsyncResultPtr& result) const
|
||
|
|
{
|
||
|
|
CallBackICEPrx proxy = CallBackICEPrx::uncheckedCast(result->getProxy());
|
||
|
|
::Ice::Int ret;
|
||
|
|
try
|
||
|
|
{
|
||
|
|
ret = proxy->end_SendDataShort(result);
|
||
|
|
}
|
||
|
|
catch(const ::Ice::Exception& ex)
|
||
|
|
{
|
||
|
|
::IceInternal::CallbackNC<T>::exception(result, ex);
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
if(_response)
|
||
|
|
{
|
||
|
|
(::IceInternal::CallbackNC<T>::_callback.get()->*_response)(ret);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
private:
|
||
|
|
|
||
|
|
Response _response;
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Creates a callback wrapper instance that delegates to your object.
|
||
|
|
* @param instance The callback object.
|
||
|
|
* @param cb The success method of the callback object.
|
||
|
|
* @param excb The exception method of the callback object.
|
||
|
|
* @param sentcb The sent method of the callback object.
|
||
|
|
* @return An object that can be passed to an asynchronous invocation of IceProxy::baosight::CallBackICE::begin_SendDataShort.
|
||
|
|
*/
|
||
|
|
template<class T> Callback_CallBackICE_SendDataShortPtr
|
||
|
|
newCallback_CallBackICE_SendDataShort(const IceUtil::Handle<T>& instance, void (T::*cb)(::Ice::Int), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
||
|
|
{
|
||
|
|
return new CallbackNC_CallBackICE_SendDataShort<T>(instance, cb, excb, sentcb);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Creates a callback wrapper instance that delegates to your object.
|
||
|
|
* @param instance The callback object.
|
||
|
|
* @param cb The success method of the callback object.
|
||
|
|
* @param excb The exception method of the callback object.
|
||
|
|
* @param sentcb The sent method of the callback object.
|
||
|
|
* @return An object that can be passed to an asynchronous invocation of IceProxy::baosight::CallBackICE::begin_SendDataShort.
|
||
|
|
*/
|
||
|
|
template<class T> Callback_CallBackICE_SendDataShortPtr
|
||
|
|
newCallback_CallBackICE_SendDataShort(T* instance, void (T::*cb)(::Ice::Int), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
||
|
|
{
|
||
|
|
return new CallbackNC_CallBackICE_SendDataShort<T>(instance, cb, excb, sentcb);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Type-safe asynchronous callback wrapper class with cookie support used for calls to
|
||
|
|
* IceProxy::baosight::CallBackICE::begin_SendDataShort.
|
||
|
|
* Create a wrapper instance by calling ::baosight::newCallback_CallBackICE_SendDataShort.
|
||
|
|
*/
|
||
|
|
template<class T, typename CT>
|
||
|
|
class Callback_CallBackICE_SendDataShort : public Callback_CallBackICE_SendDataShort_Base, public ::IceInternal::TwowayCallback<T, CT>
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
|
||
|
|
typedef IceUtil::Handle<T> TPtr;
|
||
|
|
|
||
|
|
typedef void (T::*Exception)(const ::Ice::Exception& , const CT&);
|
||
|
|
typedef void (T::*Sent)(bool , const CT&);
|
||
|
|
typedef void (T::*Response)(::Ice::Int, const CT&);
|
||
|
|
|
||
|
|
Callback_CallBackICE_SendDataShort(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
|
||
|
|
: ::IceInternal::TwowayCallback<T, CT>(obj, cb != 0, excb, sentcb), _response(cb)
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
/// \cond INTERNAL
|
||
|
|
virtual void completed(const ::Ice::AsyncResultPtr& result) const
|
||
|
|
{
|
||
|
|
CallBackICEPrx proxy = CallBackICEPrx::uncheckedCast(result->getProxy());
|
||
|
|
::Ice::Int ret;
|
||
|
|
try
|
||
|
|
{
|
||
|
|
ret = proxy->end_SendDataShort(result);
|
||
|
|
}
|
||
|
|
catch(const ::Ice::Exception& ex)
|
||
|
|
{
|
||
|
|
::IceInternal::Callback<T, CT>::exception(result, ex);
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
if(_response)
|
||
|
|
{
|
||
|
|
(::IceInternal::Callback<T, CT>::_callback.get()->*_response)(ret, CT::dynamicCast(result->getCookie()));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
private:
|
||
|
|
|
||
|
|
Response _response;
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Creates a callback wrapper instance that delegates to your object.
|
||
|
|
* Use this overload when your callback methods receive a cookie value.
|
||
|
|
* @param instance The callback object.
|
||
|
|
* @param cb The success method of the callback object.
|
||
|
|
* @param excb The exception method of the callback object.
|
||
|
|
* @param sentcb The sent method of the callback object.
|
||
|
|
* @return An object that can be passed to an asynchronous invocation of IceProxy::baosight::CallBackICE::begin_SendDataShort.
|
||
|
|
*/
|
||
|
|
template<class T, typename CT> Callback_CallBackICE_SendDataShortPtr
|
||
|
|
newCallback_CallBackICE_SendDataShort(const IceUtil::Handle<T>& instance, void (T::*cb)(::Ice::Int, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
|
||
|
|
{
|
||
|
|
return new Callback_CallBackICE_SendDataShort<T, CT>(instance, cb, excb, sentcb);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Creates a callback wrapper instance that delegates to your object.
|
||
|
|
* Use this overload when your callback methods receive a cookie value.
|
||
|
|
* @param instance The callback object.
|
||
|
|
* @param cb The success method of the callback object.
|
||
|
|
* @param excb The exception method of the callback object.
|
||
|
|
* @param sentcb The sent method of the callback object.
|
||
|
|
* @return An object that can be passed to an asynchronous invocation of IceProxy::baosight::CallBackICE::begin_SendDataShort.
|
||
|
|
*/
|
||
|
|
template<class T, typename CT> Callback_CallBackICE_SendDataShortPtr
|
||
|
|
newCallback_CallBackICE_SendDataShort(T* instance, void (T::*cb)(::Ice::Int, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
|
||
|
|
{
|
||
|
|
return new Callback_CallBackICE_SendDataShort<T, CT>(instance, cb, excb, sentcb);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Type-safe asynchronous callback wrapper class used for calls to
|
||
|
|
* IceProxy::baosight::CallBackICE::begin_MsgCallBack.
|
||
|
|
* Create a wrapper instance by calling ::baosight::newCallback_CallBackICE_MsgCallBack.
|
||
|
|
*/
|
||
|
|
template<class T>
|
||
|
|
class CallbackNC_CallBackICE_MsgCallBack : public Callback_CallBackICE_MsgCallBack_Base, public ::IceInternal::TwowayCallbackNC<T>
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
|
||
|
|
typedef IceUtil::Handle<T> TPtr;
|
||
|
|
|
||
|
|
typedef void (T::*Exception)(const ::Ice::Exception&);
|
||
|
|
typedef void (T::*Sent)(bool);
|
||
|
|
typedef void (T::*Response)(const ::Ice::ByteSeq&);
|
||
|
|
|
||
|
|
CallbackNC_CallBackICE_MsgCallBack(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
|
||
|
|
: ::IceInternal::TwowayCallbackNC<T>(obj, cb != 0, excb, sentcb), _response(cb)
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
/// \cond INTERNAL
|
||
|
|
virtual void completed(const ::Ice::AsyncResultPtr& result) const
|
||
|
|
{
|
||
|
|
CallBackICEPrx proxy = CallBackICEPrx::uncheckedCast(result->getProxy());
|
||
|
|
::Ice::ByteSeq ret;
|
||
|
|
try
|
||
|
|
{
|
||
|
|
ret = proxy->end_MsgCallBack(result);
|
||
|
|
}
|
||
|
|
catch(const ::Ice::Exception& ex)
|
||
|
|
{
|
||
|
|
::IceInternal::CallbackNC<T>::exception(result, ex);
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
if(_response)
|
||
|
|
{
|
||
|
|
(::IceInternal::CallbackNC<T>::_callback.get()->*_response)(ret);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
private:
|
||
|
|
|
||
|
|
Response _response;
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Creates a callback wrapper instance that delegates to your object.
|
||
|
|
* @param instance The callback object.
|
||
|
|
* @param cb The success method of the callback object.
|
||
|
|
* @param excb The exception method of the callback object.
|
||
|
|
* @param sentcb The sent method of the callback object.
|
||
|
|
* @return An object that can be passed to an asynchronous invocation of IceProxy::baosight::CallBackICE::begin_MsgCallBack.
|
||
|
|
*/
|
||
|
|
template<class T> Callback_CallBackICE_MsgCallBackPtr
|
||
|
|
newCallback_CallBackICE_MsgCallBack(const IceUtil::Handle<T>& instance, void (T::*cb)(const ::Ice::ByteSeq&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
||
|
|
{
|
||
|
|
return new CallbackNC_CallBackICE_MsgCallBack<T>(instance, cb, excb, sentcb);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Creates a callback wrapper instance that delegates to your object.
|
||
|
|
* @param instance The callback object.
|
||
|
|
* @param cb The success method of the callback object.
|
||
|
|
* @param excb The exception method of the callback object.
|
||
|
|
* @param sentcb The sent method of the callback object.
|
||
|
|
* @return An object that can be passed to an asynchronous invocation of IceProxy::baosight::CallBackICE::begin_MsgCallBack.
|
||
|
|
*/
|
||
|
|
template<class T> Callback_CallBackICE_MsgCallBackPtr
|
||
|
|
newCallback_CallBackICE_MsgCallBack(T* instance, void (T::*cb)(const ::Ice::ByteSeq&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
||
|
|
{
|
||
|
|
return new CallbackNC_CallBackICE_MsgCallBack<T>(instance, cb, excb, sentcb);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Type-safe asynchronous callback wrapper class with cookie support used for calls to
|
||
|
|
* IceProxy::baosight::CallBackICE::begin_MsgCallBack.
|
||
|
|
* Create a wrapper instance by calling ::baosight::newCallback_CallBackICE_MsgCallBack.
|
||
|
|
*/
|
||
|
|
template<class T, typename CT>
|
||
|
|
class Callback_CallBackICE_MsgCallBack : public Callback_CallBackICE_MsgCallBack_Base, public ::IceInternal::TwowayCallback<T, CT>
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
|
||
|
|
typedef IceUtil::Handle<T> TPtr;
|
||
|
|
|
||
|
|
typedef void (T::*Exception)(const ::Ice::Exception& , const CT&);
|
||
|
|
typedef void (T::*Sent)(bool , const CT&);
|
||
|
|
typedef void (T::*Response)(const ::Ice::ByteSeq&, const CT&);
|
||
|
|
|
||
|
|
Callback_CallBackICE_MsgCallBack(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
|
||
|
|
: ::IceInternal::TwowayCallback<T, CT>(obj, cb != 0, excb, sentcb), _response(cb)
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
/// \cond INTERNAL
|
||
|
|
virtual void completed(const ::Ice::AsyncResultPtr& result) const
|
||
|
|
{
|
||
|
|
CallBackICEPrx proxy = CallBackICEPrx::uncheckedCast(result->getProxy());
|
||
|
|
::Ice::ByteSeq ret;
|
||
|
|
try
|
||
|
|
{
|
||
|
|
ret = proxy->end_MsgCallBack(result);
|
||
|
|
}
|
||
|
|
catch(const ::Ice::Exception& ex)
|
||
|
|
{
|
||
|
|
::IceInternal::Callback<T, CT>::exception(result, ex);
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
if(_response)
|
||
|
|
{
|
||
|
|
(::IceInternal::Callback<T, CT>::_callback.get()->*_response)(ret, CT::dynamicCast(result->getCookie()));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
private:
|
||
|
|
|
||
|
|
Response _response;
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Creates a callback wrapper instance that delegates to your object.
|
||
|
|
* Use this overload when your callback methods receive a cookie value.
|
||
|
|
* @param instance The callback object.
|
||
|
|
* @param cb The success method of the callback object.
|
||
|
|
* @param excb The exception method of the callback object.
|
||
|
|
* @param sentcb The sent method of the callback object.
|
||
|
|
* @return An object that can be passed to an asynchronous invocation of IceProxy::baosight::CallBackICE::begin_MsgCallBack.
|
||
|
|
*/
|
||
|
|
template<class T, typename CT> Callback_CallBackICE_MsgCallBackPtr
|
||
|
|
newCallback_CallBackICE_MsgCallBack(const IceUtil::Handle<T>& instance, void (T::*cb)(const ::Ice::ByteSeq&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
|
||
|
|
{
|
||
|
|
return new Callback_CallBackICE_MsgCallBack<T, CT>(instance, cb, excb, sentcb);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Creates a callback wrapper instance that delegates to your object.
|
||
|
|
* Use this overload when your callback methods receive a cookie value.
|
||
|
|
* @param instance The callback object.
|
||
|
|
* @param cb The success method of the callback object.
|
||
|
|
* @param excb The exception method of the callback object.
|
||
|
|
* @param sentcb The sent method of the callback object.
|
||
|
|
* @return An object that can be passed to an asynchronous invocation of IceProxy::baosight::CallBackICE::begin_MsgCallBack.
|
||
|
|
*/
|
||
|
|
template<class T, typename CT> Callback_CallBackICE_MsgCallBackPtr
|
||
|
|
newCallback_CallBackICE_MsgCallBack(T* instance, void (T::*cb)(const ::Ice::ByteSeq&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
|
||
|
|
{
|
||
|
|
return new Callback_CallBackICE_MsgCallBack<T, CT>(instance, cb, excb, sentcb);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Type-safe asynchronous callback wrapper class used for calls to
|
||
|
|
* IceProxy::baosight::CallBackICE::begin_SendDataLong.
|
||
|
|
* Create a wrapper instance by calling ::baosight::newCallback_CallBackICE_SendDataLong.
|
||
|
|
*/
|
||
|
|
template<class T>
|
||
|
|
class CallbackNC_CallBackICE_SendDataLong : public Callback_CallBackICE_SendDataLong_Base, public ::IceInternal::TwowayCallbackNC<T>
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
|
||
|
|
typedef IceUtil::Handle<T> TPtr;
|
||
|
|
|
||
|
|
typedef void (T::*Exception)(const ::Ice::Exception&);
|
||
|
|
typedef void (T::*Sent)(bool);
|
||
|
|
typedef void (T::*Response)(::Ice::Int);
|
||
|
|
|
||
|
|
CallbackNC_CallBackICE_SendDataLong(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
|
||
|
|
: ::IceInternal::TwowayCallbackNC<T>(obj, cb != 0, excb, sentcb), _response(cb)
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
/// \cond INTERNAL
|
||
|
|
virtual void completed(const ::Ice::AsyncResultPtr& result) const
|
||
|
|
{
|
||
|
|
CallBackICEPrx proxy = CallBackICEPrx::uncheckedCast(result->getProxy());
|
||
|
|
::Ice::Int ret;
|
||
|
|
try
|
||
|
|
{
|
||
|
|
ret = proxy->end_SendDataLong(result);
|
||
|
|
}
|
||
|
|
catch(const ::Ice::Exception& ex)
|
||
|
|
{
|
||
|
|
::IceInternal::CallbackNC<T>::exception(result, ex);
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
if(_response)
|
||
|
|
{
|
||
|
|
(::IceInternal::CallbackNC<T>::_callback.get()->*_response)(ret);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
private:
|
||
|
|
|
||
|
|
Response _response;
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Creates a callback wrapper instance that delegates to your object.
|
||
|
|
* @param instance The callback object.
|
||
|
|
* @param cb The success method of the callback object.
|
||
|
|
* @param excb The exception method of the callback object.
|
||
|
|
* @param sentcb The sent method of the callback object.
|
||
|
|
* @return An object that can be passed to an asynchronous invocation of IceProxy::baosight::CallBackICE::begin_SendDataLong.
|
||
|
|
*/
|
||
|
|
template<class T> Callback_CallBackICE_SendDataLongPtr
|
||
|
|
newCallback_CallBackICE_SendDataLong(const IceUtil::Handle<T>& instance, void (T::*cb)(::Ice::Int), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
||
|
|
{
|
||
|
|
return new CallbackNC_CallBackICE_SendDataLong<T>(instance, cb, excb, sentcb);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Creates a callback wrapper instance that delegates to your object.
|
||
|
|
* @param instance The callback object.
|
||
|
|
* @param cb The success method of the callback object.
|
||
|
|
* @param excb The exception method of the callback object.
|
||
|
|
* @param sentcb The sent method of the callback object.
|
||
|
|
* @return An object that can be passed to an asynchronous invocation of IceProxy::baosight::CallBackICE::begin_SendDataLong.
|
||
|
|
*/
|
||
|
|
template<class T> Callback_CallBackICE_SendDataLongPtr
|
||
|
|
newCallback_CallBackICE_SendDataLong(T* instance, void (T::*cb)(::Ice::Int), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
||
|
|
{
|
||
|
|
return new CallbackNC_CallBackICE_SendDataLong<T>(instance, cb, excb, sentcb);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Type-safe asynchronous callback wrapper class with cookie support used for calls to
|
||
|
|
* IceProxy::baosight::CallBackICE::begin_SendDataLong.
|
||
|
|
* Create a wrapper instance by calling ::baosight::newCallback_CallBackICE_SendDataLong.
|
||
|
|
*/
|
||
|
|
template<class T, typename CT>
|
||
|
|
class Callback_CallBackICE_SendDataLong : public Callback_CallBackICE_SendDataLong_Base, public ::IceInternal::TwowayCallback<T, CT>
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
|
||
|
|
typedef IceUtil::Handle<T> TPtr;
|
||
|
|
|
||
|
|
typedef void (T::*Exception)(const ::Ice::Exception& , const CT&);
|
||
|
|
typedef void (T::*Sent)(bool , const CT&);
|
||
|
|
typedef void (T::*Response)(::Ice::Int, const CT&);
|
||
|
|
|
||
|
|
Callback_CallBackICE_SendDataLong(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
|
||
|
|
: ::IceInternal::TwowayCallback<T, CT>(obj, cb != 0, excb, sentcb), _response(cb)
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
/// \cond INTERNAL
|
||
|
|
virtual void completed(const ::Ice::AsyncResultPtr& result) const
|
||
|
|
{
|
||
|
|
CallBackICEPrx proxy = CallBackICEPrx::uncheckedCast(result->getProxy());
|
||
|
|
::Ice::Int ret;
|
||
|
|
try
|
||
|
|
{
|
||
|
|
ret = proxy->end_SendDataLong(result);
|
||
|
|
}
|
||
|
|
catch(const ::Ice::Exception& ex)
|
||
|
|
{
|
||
|
|
::IceInternal::Callback<T, CT>::exception(result, ex);
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
if(_response)
|
||
|
|
{
|
||
|
|
(::IceInternal::Callback<T, CT>::_callback.get()->*_response)(ret, CT::dynamicCast(result->getCookie()));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
private:
|
||
|
|
|
||
|
|
Response _response;
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Creates a callback wrapper instance that delegates to your object.
|
||
|
|
* Use this overload when your callback methods receive a cookie value.
|
||
|
|
* @param instance The callback object.
|
||
|
|
* @param cb The success method of the callback object.
|
||
|
|
* @param excb The exception method of the callback object.
|
||
|
|
* @param sentcb The sent method of the callback object.
|
||
|
|
* @return An object that can be passed to an asynchronous invocation of IceProxy::baosight::CallBackICE::begin_SendDataLong.
|
||
|
|
*/
|
||
|
|
template<class T, typename CT> Callback_CallBackICE_SendDataLongPtr
|
||
|
|
newCallback_CallBackICE_SendDataLong(const IceUtil::Handle<T>& instance, void (T::*cb)(::Ice::Int, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
|
||
|
|
{
|
||
|
|
return new Callback_CallBackICE_SendDataLong<T, CT>(instance, cb, excb, sentcb);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Creates a callback wrapper instance that delegates to your object.
|
||
|
|
* Use this overload when your callback methods receive a cookie value.
|
||
|
|
* @param instance The callback object.
|
||
|
|
* @param cb The success method of the callback object.
|
||
|
|
* @param excb The exception method of the callback object.
|
||
|
|
* @param sentcb The sent method of the callback object.
|
||
|
|
* @return An object that can be passed to an asynchronous invocation of IceProxy::baosight::CallBackICE::begin_SendDataLong.
|
||
|
|
*/
|
||
|
|
template<class T, typename CT> Callback_CallBackICE_SendDataLongPtr
|
||
|
|
newCallback_CallBackICE_SendDataLong(T* instance, void (T::*cb)(::Ice::Int, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
|
||
|
|
{
|
||
|
|
return new Callback_CallBackICE_SendDataLong<T, CT>(instance, cb, excb, sentcb);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Type-safe asynchronous callback wrapper class used for calls to
|
||
|
|
* IceProxy::baosight::CallBackICE::begin_TimeNotify.
|
||
|
|
* Create a wrapper instance by calling ::baosight::newCallback_CallBackICE_TimeNotify.
|
||
|
|
*/
|
||
|
|
template<class T>
|
||
|
|
class CallbackNC_CallBackICE_TimeNotify : public Callback_CallBackICE_TimeNotify_Base, public ::IceInternal::OnewayCallbackNC<T>
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
|
||
|
|
typedef IceUtil::Handle<T> TPtr;
|
||
|
|
|
||
|
|
typedef void (T::*Exception)(const ::Ice::Exception&);
|
||
|
|
typedef void (T::*Sent)(bool);
|
||
|
|
typedef void (T::*Response)();
|
||
|
|
|
||
|
|
CallbackNC_CallBackICE_TimeNotify(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
|
||
|
|
: ::IceInternal::OnewayCallbackNC<T>(obj, cb, excb, sentcb)
|
||
|
|
{
|
||
|
|
}
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Creates a callback wrapper instance that delegates to your object.
|
||
|
|
* @param instance The callback object.
|
||
|
|
* @param cb The success method of the callback object.
|
||
|
|
* @param excb The exception method of the callback object.
|
||
|
|
* @param sentcb The sent method of the callback object.
|
||
|
|
* @return An object that can be passed to an asynchronous invocation of IceProxy::baosight::CallBackICE::begin_TimeNotify.
|
||
|
|
*/
|
||
|
|
template<class T> Callback_CallBackICE_TimeNotifyPtr
|
||
|
|
newCallback_CallBackICE_TimeNotify(const IceUtil::Handle<T>& instance, void (T::*cb)(), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
||
|
|
{
|
||
|
|
return new CallbackNC_CallBackICE_TimeNotify<T>(instance, cb, excb, sentcb);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Creates a callback wrapper instance that delegates to your object.
|
||
|
|
* @param instance The callback object.
|
||
|
|
* @param excb The exception method of the callback object.
|
||
|
|
* @param sentcb The sent method of the callback object.
|
||
|
|
* @return An object that can be passed to an asynchronous invocation of IceProxy::baosight::CallBackICE::begin_TimeNotify.
|
||
|
|
*/
|
||
|
|
template<class T> Callback_CallBackICE_TimeNotifyPtr
|
||
|
|
newCallback_CallBackICE_TimeNotify(const IceUtil::Handle<T>& instance, void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
||
|
|
{
|
||
|
|
return new CallbackNC_CallBackICE_TimeNotify<T>(instance, 0, excb, sentcb);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Creates a callback wrapper instance that delegates to your object.
|
||
|
|
* @param instance The callback object.
|
||
|
|
* @param cb The success method of the callback object.
|
||
|
|
* @param excb The exception method of the callback object.
|
||
|
|
* @param sentcb The sent method of the callback object.
|
||
|
|
* @return An object that can be passed to an asynchronous invocation of IceProxy::baosight::CallBackICE::begin_TimeNotify.
|
||
|
|
*/
|
||
|
|
template<class T> Callback_CallBackICE_TimeNotifyPtr
|
||
|
|
newCallback_CallBackICE_TimeNotify(T* instance, void (T::*cb)(), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
||
|
|
{
|
||
|
|
return new CallbackNC_CallBackICE_TimeNotify<T>(instance, cb, excb, sentcb);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Creates a callback wrapper instance that delegates to your object.
|
||
|
|
* @param instance The callback object.
|
||
|
|
* @param excb The exception method of the callback object.
|
||
|
|
* @param sentcb The sent method of the callback object.
|
||
|
|
* @return An object that can be passed to an asynchronous invocation of IceProxy::baosight::CallBackICE::begin_TimeNotify.
|
||
|
|
*/
|
||
|
|
template<class T> Callback_CallBackICE_TimeNotifyPtr
|
||
|
|
newCallback_CallBackICE_TimeNotify(T* instance, void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
||
|
|
{
|
||
|
|
return new CallbackNC_CallBackICE_TimeNotify<T>(instance, 0, excb, sentcb);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Type-safe asynchronous callback wrapper class with cookie support used for calls to
|
||
|
|
* IceProxy::baosight::CallBackICE::begin_TimeNotify.
|
||
|
|
* Create a wrapper instance by calling ::baosight::newCallback_CallBackICE_TimeNotify.
|
||
|
|
*/
|
||
|
|
template<class T, typename CT>
|
||
|
|
class Callback_CallBackICE_TimeNotify : public Callback_CallBackICE_TimeNotify_Base, public ::IceInternal::OnewayCallback<T, CT>
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
|
||
|
|
typedef IceUtil::Handle<T> TPtr;
|
||
|
|
|
||
|
|
typedef void (T::*Exception)(const ::Ice::Exception& , const CT&);
|
||
|
|
typedef void (T::*Sent)(bool , const CT&);
|
||
|
|
typedef void (T::*Response)(const CT&);
|
||
|
|
|
||
|
|
Callback_CallBackICE_TimeNotify(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
|
||
|
|
: ::IceInternal::OnewayCallback<T, CT>(obj, cb, excb, sentcb)
|
||
|
|
{
|
||
|
|
}
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Creates a callback wrapper instance that delegates to your object.
|
||
|
|
* Use this overload when your callback methods receive a cookie value.
|
||
|
|
* @param instance The callback object.
|
||
|
|
* @param cb The success method of the callback object.
|
||
|
|
* @param excb The exception method of the callback object.
|
||
|
|
* @param sentcb The sent method of the callback object.
|
||
|
|
* @return An object that can be passed to an asynchronous invocation of IceProxy::baosight::CallBackICE::begin_TimeNotify.
|
||
|
|
*/
|
||
|
|
template<class T, typename CT> Callback_CallBackICE_TimeNotifyPtr
|
||
|
|
newCallback_CallBackICE_TimeNotify(const IceUtil::Handle<T>& instance, void (T::*cb)(const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
|
||
|
|
{
|
||
|
|
return new Callback_CallBackICE_TimeNotify<T, CT>(instance, cb, excb, sentcb);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Creates a callback wrapper instance that delegates to your object.
|
||
|
|
* Use this overload when your callback methods receive a cookie value.
|
||
|
|
* @param instance The callback object.
|
||
|
|
* @param excb The exception method of the callback object.
|
||
|
|
* @param sentcb The sent method of the callback object.
|
||
|
|
* @return An object that can be passed to an asynchronous invocation of IceProxy::baosight::CallBackICE::begin_TimeNotify.
|
||
|
|
*/
|
||
|
|
template<class T, typename CT> Callback_CallBackICE_TimeNotifyPtr
|
||
|
|
newCallback_CallBackICE_TimeNotify(const IceUtil::Handle<T>& instance, void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
|
||
|
|
{
|
||
|
|
return new Callback_CallBackICE_TimeNotify<T, CT>(instance, 0, excb, sentcb);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Creates a callback wrapper instance that delegates to your object.
|
||
|
|
* Use this overload when your callback methods receive a cookie value.
|
||
|
|
* @param instance The callback object.
|
||
|
|
* @param cb The success method of the callback object.
|
||
|
|
* @param excb The exception method of the callback object.
|
||
|
|
* @param sentcb The sent method of the callback object.
|
||
|
|
* @return An object that can be passed to an asynchronous invocation of IceProxy::baosight::CallBackICE::begin_TimeNotify.
|
||
|
|
*/
|
||
|
|
template<class T, typename CT> Callback_CallBackICE_TimeNotifyPtr
|
||
|
|
newCallback_CallBackICE_TimeNotify(T* instance, void (T::*cb)(const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
|
||
|
|
{
|
||
|
|
return new Callback_CallBackICE_TimeNotify<T, CT>(instance, cb, excb, sentcb);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Creates a callback wrapper instance that delegates to your object.
|
||
|
|
* Use this overload when your callback methods receive a cookie value.
|
||
|
|
* @param instance The callback object.
|
||
|
|
* @param excb The exception method of the callback object.
|
||
|
|
* @param sentcb The sent method of the callback object.
|
||
|
|
* @return An object that can be passed to an asynchronous invocation of IceProxy::baosight::CallBackICE::begin_TimeNotify.
|
||
|
|
*/
|
||
|
|
template<class T, typename CT> Callback_CallBackICE_TimeNotifyPtr
|
||
|
|
newCallback_CallBackICE_TimeNotify(T* instance, void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
|
||
|
|
{
|
||
|
|
return new Callback_CallBackICE_TimeNotify<T, CT>(instance, 0, excb, sentcb);
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#include <IceUtil/PopDisableWarnings.h>
|
||
|
|
#endif
|