2992 lines
117 KiB
C
2992 lines
117 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 `Model2Slice.ice'
|
||
|
|
//
|
||
|
|
// Warning: do not edit this file.
|
||
|
|
//
|
||
|
|
// </auto-generated>
|
||
|
|
//
|
||
|
|
|
||
|
|
#ifndef __Model2Slice_h__
|
||
|
|
#define __Model2Slice_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 <AP/BuildInDictionary.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 iPlature
|
||
|
|
{
|
||
|
|
|
||
|
|
class EventReceiver;
|
||
|
|
class EventReceiverPrx;
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
namespace iPlature
|
||
|
|
{
|
||
|
|
|
||
|
|
struct DRSdkConnectParam
|
||
|
|
{
|
||
|
|
::std::string szServerIp;
|
||
|
|
short nServerPort;
|
||
|
|
::std::string szServerIpBak;
|
||
|
|
short nServerPortBak;
|
||
|
|
bool flag;
|
||
|
|
short nConnectTimeoutMs;
|
||
|
|
short nHeartbeatTimeoutMs;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Obtains a tuple containing all of the exception's data members.
|
||
|
|
* @return The data members in a tuple.
|
||
|
|
*/
|
||
|
|
|
||
|
|
std::tuple<const ::std::string&, const short&, const ::std::string&, const short&, const bool&, const short&, const short&> ice_tuple() const
|
||
|
|
{
|
||
|
|
return std::tie(szServerIp, nServerPort, szServerIpBak, nServerPortBak, flag, nConnectTimeoutMs, nHeartbeatTimeoutMs);
|
||
|
|
}
|
||
|
|
};
|
||
|
|
|
||
|
|
struct DRSdkOption
|
||
|
|
{
|
||
|
|
int nThreadPoolNum;
|
||
|
|
short nRequestWaitTimeoutMs;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Obtains a tuple containing all of the exception's data members.
|
||
|
|
* @return The data members in a tuple.
|
||
|
|
*/
|
||
|
|
|
||
|
|
std::tuple<const int&, const short&> ice_tuple() const
|
||
|
|
{
|
||
|
|
return std::tie(nThreadPoolNum, nRequestWaitTimeoutMs);
|
||
|
|
}
|
||
|
|
};
|
||
|
|
|
||
|
|
using Ice::operator<;
|
||
|
|
using Ice::operator<=;
|
||
|
|
using Ice::operator>;
|
||
|
|
using Ice::operator>=;
|
||
|
|
using Ice::operator==;
|
||
|
|
using Ice::operator!=;
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
namespace iPlature
|
||
|
|
{
|
||
|
|
|
||
|
|
class EventReceiver : public virtual ::Ice::Object
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
|
||
|
|
using ProxyType = EventReceiverPrx;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 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 CacheRelation(const ::Ice::Current& current) = 0;
|
||
|
|
/// \cond INTERNAL
|
||
|
|
bool _iceD_CacheRelation(::IceInternal::Incoming&, const ::Ice::Current&);
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
virtual int Init(DRSdkConnectParam tDRSdkConnectParam, DRSdkOption tDRSdkOption, const ::Ice::Current& current) = 0;
|
||
|
|
/// \cond INTERNAL
|
||
|
|
bool _iceD_Init(::IceInternal::Incoming&, const ::Ice::Current&);
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
virtual int setControlData(::Ice::StringSeq tagNames, ::AP::ByteSeqSeq tagValues, int num, const ::Ice::Current& current) = 0;
|
||
|
|
/// \cond INTERNAL
|
||
|
|
bool _iceD_setControlData(::IceInternal::Incoming&, const ::Ice::Current&);
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
virtual ::AP::ByteSeqSeq readData(::Ice::StringSeq tagNames, const ::Ice::Current& current) = 0;
|
||
|
|
/// \cond INTERNAL
|
||
|
|
bool _iceD_readData(::IceInternal::Incoming&, const ::Ice::Current&);
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
virtual ::std::string GetModelJson(::std::string objName, const ::Ice::Current& current) = 0;
|
||
|
|
/// \cond INTERNAL
|
||
|
|
bool _iceD_GetModelJson(::IceInternal::Incoming&, const ::Ice::Current&);
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
virtual void recvCallBack(::Ice::StringSeq tagNames, ::AP::ByteSeqSeq tagValues, const ::Ice::Current& current) = 0;
|
||
|
|
/// \cond INTERNAL
|
||
|
|
bool _iceD_recvCallBack(::IceInternal::Incoming&, const ::Ice::Current&);
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
virtual int regist(::Ice::StringSeq tagNames, int nIntervalMs, const ::Ice::Current& current) = 0;
|
||
|
|
/// \cond INTERNAL
|
||
|
|
bool _iceD_regist(::IceInternal::Incoming&, const ::Ice::Current&);
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
virtual ::AP::ByteSeqSeq readObjectTyle(::std::string strObjectName, const ::Ice::Current& current) = 0;
|
||
|
|
/// \cond INTERNAL
|
||
|
|
bool _iceD_readObjectTyle(::IceInternal::Incoming&, const ::Ice::Current&);
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
virtual ::AP::ByteSeqSeq readObjValue(::std::string objectName, const ::Ice::Current& current) = 0;
|
||
|
|
/// \cond INTERNAL
|
||
|
|
bool _iceD_readObjValue(::IceInternal::Incoming&, const ::Ice::Current&);
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
virtual int unregist(int nBatchID, const ::Ice::Current& current) = 0;
|
||
|
|
/// \cond INTERNAL
|
||
|
|
bool _iceD_unregist(::IceInternal::Incoming&, const ::Ice::Current&);
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
/// \cond INTERNAL
|
||
|
|
virtual bool _iceDispatch(::IceInternal::Incoming&, const ::Ice::Current&) override;
|
||
|
|
/// \endcond
|
||
|
|
};
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
namespace iPlature
|
||
|
|
{
|
||
|
|
|
||
|
|
class EventReceiverPrx : public virtual ::Ice::Proxy<EventReceiverPrx, ::Ice::ObjectPrx>
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
|
||
|
|
int CacheRelation(const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
return _makePromiseOutgoing<int>(true, this, &EventReceiverPrx::_iceI_CacheRelation, context).get();
|
||
|
|
}
|
||
|
|
|
||
|
|
template<template<typename> class P = ::std::promise>
|
||
|
|
auto CacheRelationAsync(const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
-> decltype(::std::declval<P<int>>().get_future())
|
||
|
|
{
|
||
|
|
return _makePromiseOutgoing<int, P>(false, this, &EventReceiverPrx::_iceI_CacheRelation, context);
|
||
|
|
}
|
||
|
|
|
||
|
|
::std::function<void()>
|
||
|
|
CacheRelationAsync(::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, &EventReceiverPrx::_iceI_CacheRelation, context);
|
||
|
|
}
|
||
|
|
|
||
|
|
/// \cond INTERNAL
|
||
|
|
void _iceI_CacheRelation(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<int>>&, const ::Ice::Context&);
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
int Init(const DRSdkConnectParam& tDRSdkConnectParam, const DRSdkOption& tDRSdkOption, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
return _makePromiseOutgoing<int>(true, this, &EventReceiverPrx::_iceI_Init, tDRSdkConnectParam, tDRSdkOption, context).get();
|
||
|
|
}
|
||
|
|
|
||
|
|
template<template<typename> class P = ::std::promise>
|
||
|
|
auto InitAsync(const DRSdkConnectParam& tDRSdkConnectParam, const DRSdkOption& tDRSdkOption, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
-> decltype(::std::declval<P<int>>().get_future())
|
||
|
|
{
|
||
|
|
return _makePromiseOutgoing<int, P>(false, this, &EventReceiverPrx::_iceI_Init, tDRSdkConnectParam, tDRSdkOption, context);
|
||
|
|
}
|
||
|
|
|
||
|
|
::std::function<void()>
|
||
|
|
InitAsync(const DRSdkConnectParam& tDRSdkConnectParam, const DRSdkOption& tDRSdkOption,
|
||
|
|
::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, &EventReceiverPrx::_iceI_Init, tDRSdkConnectParam, tDRSdkOption, context);
|
||
|
|
}
|
||
|
|
|
||
|
|
/// \cond INTERNAL
|
||
|
|
void _iceI_Init(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<int>>&, const DRSdkConnectParam&, const DRSdkOption&, const ::Ice::Context&);
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
int setControlData(const ::Ice::StringSeq& tagNames, const ::AP::ByteSeqSeq& tagValues, int num, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
return _makePromiseOutgoing<int>(true, this, &EventReceiverPrx::_iceI_setControlData, tagNames, tagValues, num, context).get();
|
||
|
|
}
|
||
|
|
|
||
|
|
template<template<typename> class P = ::std::promise>
|
||
|
|
auto setControlDataAsync(const ::Ice::StringSeq& tagNames, const ::AP::ByteSeqSeq& tagValues, int num, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
-> decltype(::std::declval<P<int>>().get_future())
|
||
|
|
{
|
||
|
|
return _makePromiseOutgoing<int, P>(false, this, &EventReceiverPrx::_iceI_setControlData, tagNames, tagValues, num, context);
|
||
|
|
}
|
||
|
|
|
||
|
|
::std::function<void()>
|
||
|
|
setControlDataAsync(const ::Ice::StringSeq& tagNames, const ::AP::ByteSeqSeq& tagValues, int num,
|
||
|
|
::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, &EventReceiverPrx::_iceI_setControlData, tagNames, tagValues, num, context);
|
||
|
|
}
|
||
|
|
|
||
|
|
/// \cond INTERNAL
|
||
|
|
void _iceI_setControlData(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<int>>&, const ::Ice::StringSeq&, const ::AP::ByteSeqSeq&, int, const ::Ice::Context&);
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
::AP::ByteSeqSeq readData(const ::Ice::StringSeq& tagNames, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
return _makePromiseOutgoing<::AP::ByteSeqSeq>(true, this, &EventReceiverPrx::_iceI_readData, tagNames, context).get();
|
||
|
|
}
|
||
|
|
|
||
|
|
template<template<typename> class P = ::std::promise>
|
||
|
|
auto readDataAsync(const ::Ice::StringSeq& tagNames, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
-> decltype(::std::declval<P<::AP::ByteSeqSeq>>().get_future())
|
||
|
|
{
|
||
|
|
return _makePromiseOutgoing<::AP::ByteSeqSeq, P>(false, this, &EventReceiverPrx::_iceI_readData, tagNames, context);
|
||
|
|
}
|
||
|
|
|
||
|
|
::std::function<void()>
|
||
|
|
readDataAsync(const ::Ice::StringSeq& tagNames,
|
||
|
|
::std::function<void(::AP::ByteSeqSeq)> response,
|
||
|
|
::std::function<void(::std::exception_ptr)> ex = nullptr,
|
||
|
|
::std::function<void(bool)> sent = nullptr,
|
||
|
|
const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
return _makeLamdaOutgoing<::AP::ByteSeqSeq>(response, ex, sent, this, &EventReceiverPrx::_iceI_readData, tagNames, context);
|
||
|
|
}
|
||
|
|
|
||
|
|
/// \cond INTERNAL
|
||
|
|
void _iceI_readData(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::AP::ByteSeqSeq>>&, const ::Ice::StringSeq&, const ::Ice::Context&);
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
::std::string GetModelJson(const ::std::string& objName, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
return _makePromiseOutgoing<::std::string>(true, this, &EventReceiverPrx::_iceI_GetModelJson, objName, context).get();
|
||
|
|
}
|
||
|
|
|
||
|
|
template<template<typename> class P = ::std::promise>
|
||
|
|
auto GetModelJsonAsync(const ::std::string& objName, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
-> decltype(::std::declval<P<::std::string>>().get_future())
|
||
|
|
{
|
||
|
|
return _makePromiseOutgoing<::std::string, P>(false, this, &EventReceiverPrx::_iceI_GetModelJson, objName, context);
|
||
|
|
}
|
||
|
|
|
||
|
|
::std::function<void()>
|
||
|
|
GetModelJsonAsync(const ::std::string& objName,
|
||
|
|
::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)
|
||
|
|
{
|
||
|
|
return _makeLamdaOutgoing<::std::string>(response, ex, sent, this, &EventReceiverPrx::_iceI_GetModelJson, objName, context);
|
||
|
|
}
|
||
|
|
|
||
|
|
/// \cond INTERNAL
|
||
|
|
void _iceI_GetModelJson(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::std::string>>&, const ::std::string&, const ::Ice::Context&);
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
void recvCallBack(const ::Ice::StringSeq& tagNames, const ::AP::ByteSeqSeq& tagValues, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
_makePromiseOutgoing<void>(true, this, &EventReceiverPrx::_iceI_recvCallBack, tagNames, tagValues, context).get();
|
||
|
|
}
|
||
|
|
|
||
|
|
template<template<typename> class P = ::std::promise>
|
||
|
|
auto recvCallBackAsync(const ::Ice::StringSeq& tagNames, const ::AP::ByteSeqSeq& tagValues, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
-> decltype(::std::declval<P<void>>().get_future())
|
||
|
|
{
|
||
|
|
return _makePromiseOutgoing<void, P>(false, this, &EventReceiverPrx::_iceI_recvCallBack, tagNames, tagValues, context);
|
||
|
|
}
|
||
|
|
|
||
|
|
::std::function<void()>
|
||
|
|
recvCallBackAsync(const ::Ice::StringSeq& tagNames, const ::AP::ByteSeqSeq& tagValues,
|
||
|
|
::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, &EventReceiverPrx::_iceI_recvCallBack, tagNames, tagValues, context);
|
||
|
|
}
|
||
|
|
|
||
|
|
/// \cond INTERNAL
|
||
|
|
void _iceI_recvCallBack(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<void>>&, const ::Ice::StringSeq&, const ::AP::ByteSeqSeq&, const ::Ice::Context&);
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
int regist(const ::Ice::StringSeq& tagNames, int nIntervalMs, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
return _makePromiseOutgoing<int>(true, this, &EventReceiverPrx::_iceI_regist, tagNames, nIntervalMs, context).get();
|
||
|
|
}
|
||
|
|
|
||
|
|
template<template<typename> class P = ::std::promise>
|
||
|
|
auto registAsync(const ::Ice::StringSeq& tagNames, int nIntervalMs, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
-> decltype(::std::declval<P<int>>().get_future())
|
||
|
|
{
|
||
|
|
return _makePromiseOutgoing<int, P>(false, this, &EventReceiverPrx::_iceI_regist, tagNames, nIntervalMs, context);
|
||
|
|
}
|
||
|
|
|
||
|
|
::std::function<void()>
|
||
|
|
registAsync(const ::Ice::StringSeq& tagNames, int nIntervalMs,
|
||
|
|
::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, &EventReceiverPrx::_iceI_regist, tagNames, nIntervalMs, context);
|
||
|
|
}
|
||
|
|
|
||
|
|
/// \cond INTERNAL
|
||
|
|
void _iceI_regist(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<int>>&, const ::Ice::StringSeq&, int, const ::Ice::Context&);
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
::AP::ByteSeqSeq readObjectTyle(const ::std::string& strObjectName, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
return _makePromiseOutgoing<::AP::ByteSeqSeq>(true, this, &EventReceiverPrx::_iceI_readObjectTyle, strObjectName, context).get();
|
||
|
|
}
|
||
|
|
|
||
|
|
template<template<typename> class P = ::std::promise>
|
||
|
|
auto readObjectTyleAsync(const ::std::string& strObjectName, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
-> decltype(::std::declval<P<::AP::ByteSeqSeq>>().get_future())
|
||
|
|
{
|
||
|
|
return _makePromiseOutgoing<::AP::ByteSeqSeq, P>(false, this, &EventReceiverPrx::_iceI_readObjectTyle, strObjectName, context);
|
||
|
|
}
|
||
|
|
|
||
|
|
::std::function<void()>
|
||
|
|
readObjectTyleAsync(const ::std::string& strObjectName,
|
||
|
|
::std::function<void(::AP::ByteSeqSeq)> response,
|
||
|
|
::std::function<void(::std::exception_ptr)> ex = nullptr,
|
||
|
|
::std::function<void(bool)> sent = nullptr,
|
||
|
|
const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
return _makeLamdaOutgoing<::AP::ByteSeqSeq>(response, ex, sent, this, &EventReceiverPrx::_iceI_readObjectTyle, strObjectName, context);
|
||
|
|
}
|
||
|
|
|
||
|
|
/// \cond INTERNAL
|
||
|
|
void _iceI_readObjectTyle(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::AP::ByteSeqSeq>>&, const ::std::string&, const ::Ice::Context&);
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
::AP::ByteSeqSeq readObjValue(const ::std::string& objectName, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
return _makePromiseOutgoing<::AP::ByteSeqSeq>(true, this, &EventReceiverPrx::_iceI_readObjValue, objectName, context).get();
|
||
|
|
}
|
||
|
|
|
||
|
|
template<template<typename> class P = ::std::promise>
|
||
|
|
auto readObjValueAsync(const ::std::string& objectName, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
-> decltype(::std::declval<P<::AP::ByteSeqSeq>>().get_future())
|
||
|
|
{
|
||
|
|
return _makePromiseOutgoing<::AP::ByteSeqSeq, P>(false, this, &EventReceiverPrx::_iceI_readObjValue, objectName, context);
|
||
|
|
}
|
||
|
|
|
||
|
|
::std::function<void()>
|
||
|
|
readObjValueAsync(const ::std::string& objectName,
|
||
|
|
::std::function<void(::AP::ByteSeqSeq)> response,
|
||
|
|
::std::function<void(::std::exception_ptr)> ex = nullptr,
|
||
|
|
::std::function<void(bool)> sent = nullptr,
|
||
|
|
const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
return _makeLamdaOutgoing<::AP::ByteSeqSeq>(response, ex, sent, this, &EventReceiverPrx::_iceI_readObjValue, objectName, context);
|
||
|
|
}
|
||
|
|
|
||
|
|
/// \cond INTERNAL
|
||
|
|
void _iceI_readObjValue(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::AP::ByteSeqSeq>>&, const ::std::string&, const ::Ice::Context&);
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
int unregist(int nBatchID, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
return _makePromiseOutgoing<int>(true, this, &EventReceiverPrx::_iceI_unregist, nBatchID, context).get();
|
||
|
|
}
|
||
|
|
|
||
|
|
template<template<typename> class P = ::std::promise>
|
||
|
|
auto unregistAsync(int nBatchID, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
-> decltype(::std::declval<P<int>>().get_future())
|
||
|
|
{
|
||
|
|
return _makePromiseOutgoing<int, P>(false, this, &EventReceiverPrx::_iceI_unregist, nBatchID, context);
|
||
|
|
}
|
||
|
|
|
||
|
|
::std::function<void()>
|
||
|
|
unregistAsync(int nBatchID,
|
||
|
|
::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, &EventReceiverPrx::_iceI_unregist, nBatchID, context);
|
||
|
|
}
|
||
|
|
|
||
|
|
/// \cond INTERNAL
|
||
|
|
void _iceI_unregist(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<int>>&, int, 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
|
||
|
|
EventReceiverPrx() = default;
|
||
|
|
friend ::std::shared_ptr<EventReceiverPrx> IceInternal::createProxy<EventReceiverPrx>();
|
||
|
|
|
||
|
|
virtual ::std::shared_ptr<::Ice::ObjectPrx> _newInstance() const override;
|
||
|
|
/// \endcond
|
||
|
|
};
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
/// \cond STREAM
|
||
|
|
namespace Ice
|
||
|
|
{
|
||
|
|
|
||
|
|
template<>
|
||
|
|
struct StreamableTraits<::iPlature::DRSdkConnectParam>
|
||
|
|
{
|
||
|
|
static const StreamHelperCategory helper = StreamHelperCategoryStruct;
|
||
|
|
static const int minWireSize = 11;
|
||
|
|
static const bool fixedLength = false;
|
||
|
|
};
|
||
|
|
|
||
|
|
template<typename S>
|
||
|
|
struct StreamReader<::iPlature::DRSdkConnectParam, S>
|
||
|
|
{
|
||
|
|
static void read(S* istr, ::iPlature::DRSdkConnectParam& v)
|
||
|
|
{
|
||
|
|
istr->readAll(v.szServerIp, v.nServerPort, v.szServerIpBak, v.nServerPortBak, v.flag, v.nConnectTimeoutMs, v.nHeartbeatTimeoutMs);
|
||
|
|
}
|
||
|
|
};
|
||
|
|
|
||
|
|
template<>
|
||
|
|
struct StreamableTraits<::iPlature::DRSdkOption>
|
||
|
|
{
|
||
|
|
static const StreamHelperCategory helper = StreamHelperCategoryStruct;
|
||
|
|
static const int minWireSize = 6;
|
||
|
|
static const bool fixedLength = true;
|
||
|
|
};
|
||
|
|
|
||
|
|
template<typename S>
|
||
|
|
struct StreamReader<::iPlature::DRSdkOption, S>
|
||
|
|
{
|
||
|
|
static void read(S* istr, ::iPlature::DRSdkOption& v)
|
||
|
|
{
|
||
|
|
istr->readAll(v.nThreadPoolNum, v.nRequestWaitTimeoutMs);
|
||
|
|
}
|
||
|
|
};
|
||
|
|
|
||
|
|
}
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
/// \cond INTERNAL
|
||
|
|
namespace iPlature
|
||
|
|
{
|
||
|
|
|
||
|
|
using EventReceiverPtr = ::std::shared_ptr<EventReceiver>;
|
||
|
|
using EventReceiverPrxPtr = ::std::shared_ptr<EventReceiverPrx>;
|
||
|
|
|
||
|
|
}
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
#else // C++98 mapping
|
||
|
|
|
||
|
|
namespace IceProxy
|
||
|
|
{
|
||
|
|
|
||
|
|
namespace iPlature
|
||
|
|
{
|
||
|
|
|
||
|
|
class EventReceiver;
|
||
|
|
/// \cond INTERNAL
|
||
|
|
void _readProxy(::Ice::InputStream*, ::IceInternal::ProxyHandle< ::IceProxy::iPlature::EventReceiver>&);
|
||
|
|
::IceProxy::Ice::Object* upCast(::IceProxy::iPlature::EventReceiver*);
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
namespace iPlature
|
||
|
|
{
|
||
|
|
|
||
|
|
class EventReceiver;
|
||
|
|
/// \cond INTERNAL
|
||
|
|
::Ice::Object* upCast(EventReceiver*);
|
||
|
|
/// \endcond
|
||
|
|
typedef ::IceInternal::Handle< EventReceiver> EventReceiverPtr;
|
||
|
|
typedef ::IceInternal::ProxyHandle< ::IceProxy::iPlature::EventReceiver> EventReceiverPrx;
|
||
|
|
typedef EventReceiverPrx EventReceiverPrxPtr;
|
||
|
|
/// \cond INTERNAL
|
||
|
|
void _icePatchObjectPtr(EventReceiverPtr&, const ::Ice::ObjectPtr&);
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
namespace iPlature
|
||
|
|
{
|
||
|
|
|
||
|
|
struct DRSdkConnectParam
|
||
|
|
{
|
||
|
|
::std::string szServerIp;
|
||
|
|
::Ice::Short nServerPort;
|
||
|
|
::std::string szServerIpBak;
|
||
|
|
::Ice::Short nServerPortBak;
|
||
|
|
bool flag;
|
||
|
|
::Ice::Short nConnectTimeoutMs;
|
||
|
|
::Ice::Short nHeartbeatTimeoutMs;
|
||
|
|
|
||
|
|
bool operator==(const DRSdkConnectParam& rhs_) const
|
||
|
|
{
|
||
|
|
if(this == &rhs_)
|
||
|
|
{
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
if(szServerIp != rhs_.szServerIp)
|
||
|
|
{
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
if(nServerPort != rhs_.nServerPort)
|
||
|
|
{
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
if(szServerIpBak != rhs_.szServerIpBak)
|
||
|
|
{
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
if(nServerPortBak != rhs_.nServerPortBak)
|
||
|
|
{
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
if(flag != rhs_.flag)
|
||
|
|
{
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
if(nConnectTimeoutMs != rhs_.nConnectTimeoutMs)
|
||
|
|
{
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
if(nHeartbeatTimeoutMs != rhs_.nHeartbeatTimeoutMs)
|
||
|
|
{
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
|
||
|
|
bool operator<(const DRSdkConnectParam& rhs_) const
|
||
|
|
{
|
||
|
|
if(this == &rhs_)
|
||
|
|
{
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
if(szServerIp < rhs_.szServerIp)
|
||
|
|
{
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
else if(rhs_.szServerIp < szServerIp)
|
||
|
|
{
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
if(nServerPort < rhs_.nServerPort)
|
||
|
|
{
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
else if(rhs_.nServerPort < nServerPort)
|
||
|
|
{
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
if(szServerIpBak < rhs_.szServerIpBak)
|
||
|
|
{
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
else if(rhs_.szServerIpBak < szServerIpBak)
|
||
|
|
{
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
if(nServerPortBak < rhs_.nServerPortBak)
|
||
|
|
{
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
else if(rhs_.nServerPortBak < nServerPortBak)
|
||
|
|
{
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
if(flag < rhs_.flag)
|
||
|
|
{
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
else if(rhs_.flag < flag)
|
||
|
|
{
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
if(nConnectTimeoutMs < rhs_.nConnectTimeoutMs)
|
||
|
|
{
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
else if(rhs_.nConnectTimeoutMs < nConnectTimeoutMs)
|
||
|
|
{
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
if(nHeartbeatTimeoutMs < rhs_.nHeartbeatTimeoutMs)
|
||
|
|
{
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
else if(rhs_.nHeartbeatTimeoutMs < nHeartbeatTimeoutMs)
|
||
|
|
{
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
|
||
|
|
bool operator!=(const DRSdkConnectParam& rhs_) const
|
||
|
|
{
|
||
|
|
return !operator==(rhs_);
|
||
|
|
}
|
||
|
|
bool operator<=(const DRSdkConnectParam& rhs_) const
|
||
|
|
{
|
||
|
|
return operator<(rhs_) || operator==(rhs_);
|
||
|
|
}
|
||
|
|
bool operator>(const DRSdkConnectParam& rhs_) const
|
||
|
|
{
|
||
|
|
return !operator<(rhs_) && !operator==(rhs_);
|
||
|
|
}
|
||
|
|
bool operator>=(const DRSdkConnectParam& rhs_) const
|
||
|
|
{
|
||
|
|
return !operator<(rhs_);
|
||
|
|
}
|
||
|
|
};
|
||
|
|
|
||
|
|
struct DRSdkOption
|
||
|
|
{
|
||
|
|
::Ice::Int nThreadPoolNum;
|
||
|
|
::Ice::Short nRequestWaitTimeoutMs;
|
||
|
|
|
||
|
|
bool operator==(const DRSdkOption& rhs_) const
|
||
|
|
{
|
||
|
|
if(this == &rhs_)
|
||
|
|
{
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
if(nThreadPoolNum != rhs_.nThreadPoolNum)
|
||
|
|
{
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
if(nRequestWaitTimeoutMs != rhs_.nRequestWaitTimeoutMs)
|
||
|
|
{
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
|
||
|
|
bool operator<(const DRSdkOption& rhs_) const
|
||
|
|
{
|
||
|
|
if(this == &rhs_)
|
||
|
|
{
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
if(nThreadPoolNum < rhs_.nThreadPoolNum)
|
||
|
|
{
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
else if(rhs_.nThreadPoolNum < nThreadPoolNum)
|
||
|
|
{
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
if(nRequestWaitTimeoutMs < rhs_.nRequestWaitTimeoutMs)
|
||
|
|
{
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
else if(rhs_.nRequestWaitTimeoutMs < nRequestWaitTimeoutMs)
|
||
|
|
{
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
|
||
|
|
bool operator!=(const DRSdkOption& rhs_) const
|
||
|
|
{
|
||
|
|
return !operator==(rhs_);
|
||
|
|
}
|
||
|
|
bool operator<=(const DRSdkOption& rhs_) const
|
||
|
|
{
|
||
|
|
return operator<(rhs_) || operator==(rhs_);
|
||
|
|
}
|
||
|
|
bool operator>(const DRSdkOption& rhs_) const
|
||
|
|
{
|
||
|
|
return !operator<(rhs_) && !operator==(rhs_);
|
||
|
|
}
|
||
|
|
bool operator>=(const DRSdkOption& rhs_) const
|
||
|
|
{
|
||
|
|
return !operator<(rhs_);
|
||
|
|
}
|
||
|
|
};
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
namespace iPlature
|
||
|
|
{
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Base class for asynchronous callback wrapper classes used for calls to
|
||
|
|
* IceProxy::iPlature::EventReceiver::begin_CacheRelation.
|
||
|
|
* Create a wrapper instance by calling ::iPlature::newCallback_EventReceiver_CacheRelation.
|
||
|
|
*/
|
||
|
|
class Callback_EventReceiver_CacheRelation_Base : public virtual ::IceInternal::CallbackBase { };
|
||
|
|
typedef ::IceUtil::Handle< Callback_EventReceiver_CacheRelation_Base> Callback_EventReceiver_CacheRelationPtr;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Base class for asynchronous callback wrapper classes used for calls to
|
||
|
|
* IceProxy::iPlature::EventReceiver::begin_Init.
|
||
|
|
* Create a wrapper instance by calling ::iPlature::newCallback_EventReceiver_Init.
|
||
|
|
*/
|
||
|
|
class Callback_EventReceiver_Init_Base : public virtual ::IceInternal::CallbackBase { };
|
||
|
|
typedef ::IceUtil::Handle< Callback_EventReceiver_Init_Base> Callback_EventReceiver_InitPtr;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Base class for asynchronous callback wrapper classes used for calls to
|
||
|
|
* IceProxy::iPlature::EventReceiver::begin_setControlData.
|
||
|
|
* Create a wrapper instance by calling ::iPlature::newCallback_EventReceiver_setControlData.
|
||
|
|
*/
|
||
|
|
class Callback_EventReceiver_setControlData_Base : public virtual ::IceInternal::CallbackBase { };
|
||
|
|
typedef ::IceUtil::Handle< Callback_EventReceiver_setControlData_Base> Callback_EventReceiver_setControlDataPtr;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Base class for asynchronous callback wrapper classes used for calls to
|
||
|
|
* IceProxy::iPlature::EventReceiver::begin_readData.
|
||
|
|
* Create a wrapper instance by calling ::iPlature::newCallback_EventReceiver_readData.
|
||
|
|
*/
|
||
|
|
class Callback_EventReceiver_readData_Base : public virtual ::IceInternal::CallbackBase { };
|
||
|
|
typedef ::IceUtil::Handle< Callback_EventReceiver_readData_Base> Callback_EventReceiver_readDataPtr;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Base class for asynchronous callback wrapper classes used for calls to
|
||
|
|
* IceProxy::iPlature::EventReceiver::begin_GetModelJson.
|
||
|
|
* Create a wrapper instance by calling ::iPlature::newCallback_EventReceiver_GetModelJson.
|
||
|
|
*/
|
||
|
|
class Callback_EventReceiver_GetModelJson_Base : public virtual ::IceInternal::CallbackBase { };
|
||
|
|
typedef ::IceUtil::Handle< Callback_EventReceiver_GetModelJson_Base> Callback_EventReceiver_GetModelJsonPtr;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Base class for asynchronous callback wrapper classes used for calls to
|
||
|
|
* IceProxy::iPlature::EventReceiver::begin_recvCallBack.
|
||
|
|
* Create a wrapper instance by calling ::iPlature::newCallback_EventReceiver_recvCallBack.
|
||
|
|
*/
|
||
|
|
class Callback_EventReceiver_recvCallBack_Base : public virtual ::IceInternal::CallbackBase { };
|
||
|
|
typedef ::IceUtil::Handle< Callback_EventReceiver_recvCallBack_Base> Callback_EventReceiver_recvCallBackPtr;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Base class for asynchronous callback wrapper classes used for calls to
|
||
|
|
* IceProxy::iPlature::EventReceiver::begin_regist.
|
||
|
|
* Create a wrapper instance by calling ::iPlature::newCallback_EventReceiver_regist.
|
||
|
|
*/
|
||
|
|
class Callback_EventReceiver_regist_Base : public virtual ::IceInternal::CallbackBase { };
|
||
|
|
typedef ::IceUtil::Handle< Callback_EventReceiver_regist_Base> Callback_EventReceiver_registPtr;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Base class for asynchronous callback wrapper classes used for calls to
|
||
|
|
* IceProxy::iPlature::EventReceiver::begin_readObjectTyle.
|
||
|
|
* Create a wrapper instance by calling ::iPlature::newCallback_EventReceiver_readObjectTyle.
|
||
|
|
*/
|
||
|
|
class Callback_EventReceiver_readObjectTyle_Base : public virtual ::IceInternal::CallbackBase { };
|
||
|
|
typedef ::IceUtil::Handle< Callback_EventReceiver_readObjectTyle_Base> Callback_EventReceiver_readObjectTylePtr;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Base class for asynchronous callback wrapper classes used for calls to
|
||
|
|
* IceProxy::iPlature::EventReceiver::begin_readObjValue.
|
||
|
|
* Create a wrapper instance by calling ::iPlature::newCallback_EventReceiver_readObjValue.
|
||
|
|
*/
|
||
|
|
class Callback_EventReceiver_readObjValue_Base : public virtual ::IceInternal::CallbackBase { };
|
||
|
|
typedef ::IceUtil::Handle< Callback_EventReceiver_readObjValue_Base> Callback_EventReceiver_readObjValuePtr;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Base class for asynchronous callback wrapper classes used for calls to
|
||
|
|
* IceProxy::iPlature::EventReceiver::begin_unregist.
|
||
|
|
* Create a wrapper instance by calling ::iPlature::newCallback_EventReceiver_unregist.
|
||
|
|
*/
|
||
|
|
class Callback_EventReceiver_unregist_Base : public virtual ::IceInternal::CallbackBase { };
|
||
|
|
typedef ::IceUtil::Handle< Callback_EventReceiver_unregist_Base> Callback_EventReceiver_unregistPtr;
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
namespace IceProxy
|
||
|
|
{
|
||
|
|
|
||
|
|
namespace iPlature
|
||
|
|
{
|
||
|
|
|
||
|
|
class EventReceiver : public virtual ::Ice::Proxy<EventReceiver, ::IceProxy::Ice::Object>
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
|
||
|
|
::Ice::Int CacheRelation(const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
return end_CacheRelation(_iceI_begin_CacheRelation(context, ::IceInternal::dummyCallback, 0, true));
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_CacheRelation(const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
return _iceI_begin_CacheRelation(context, ::IceInternal::dummyCallback, 0);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_CacheRelation(const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_CacheRelation(::Ice::noExplicitContext, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_CacheRelation(const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_CacheRelation(context, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_CacheRelation(const ::iPlature::Callback_EventReceiver_CacheRelationPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_CacheRelation(::Ice::noExplicitContext, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_CacheRelation(const ::Ice::Context& context, const ::iPlature::Callback_EventReceiver_CacheRelationPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_CacheRelation(context, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::Int end_CacheRelation(const ::Ice::AsyncResultPtr& result);
|
||
|
|
|
||
|
|
private:
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr _iceI_begin_CacheRelation(const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0, bool sync = false);
|
||
|
|
|
||
|
|
public:
|
||
|
|
|
||
|
|
::Ice::Int Init(const ::iPlature::DRSdkConnectParam& tDRSdkConnectParam, const ::iPlature::DRSdkOption& tDRSdkOption, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
return end_Init(_iceI_begin_Init(tDRSdkConnectParam, tDRSdkOption, context, ::IceInternal::dummyCallback, 0, true));
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_Init(const ::iPlature::DRSdkConnectParam& tDRSdkConnectParam, const ::iPlature::DRSdkOption& tDRSdkOption, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
return _iceI_begin_Init(tDRSdkConnectParam, tDRSdkOption, context, ::IceInternal::dummyCallback, 0);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_Init(const ::iPlature::DRSdkConnectParam& tDRSdkConnectParam, const ::iPlature::DRSdkOption& tDRSdkOption, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_Init(tDRSdkConnectParam, tDRSdkOption, ::Ice::noExplicitContext, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_Init(const ::iPlature::DRSdkConnectParam& tDRSdkConnectParam, const ::iPlature::DRSdkOption& tDRSdkOption, const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_Init(tDRSdkConnectParam, tDRSdkOption, context, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_Init(const ::iPlature::DRSdkConnectParam& tDRSdkConnectParam, const ::iPlature::DRSdkOption& tDRSdkOption, const ::iPlature::Callback_EventReceiver_InitPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_Init(tDRSdkConnectParam, tDRSdkOption, ::Ice::noExplicitContext, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_Init(const ::iPlature::DRSdkConnectParam& tDRSdkConnectParam, const ::iPlature::DRSdkOption& tDRSdkOption, const ::Ice::Context& context, const ::iPlature::Callback_EventReceiver_InitPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_Init(tDRSdkConnectParam, tDRSdkOption, context, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::Int end_Init(const ::Ice::AsyncResultPtr& result);
|
||
|
|
|
||
|
|
private:
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr _iceI_begin_Init(const ::iPlature::DRSdkConnectParam&, const ::iPlature::DRSdkOption&, const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0, bool sync = false);
|
||
|
|
|
||
|
|
public:
|
||
|
|
|
||
|
|
::Ice::Int setControlData(const ::Ice::StringSeq& tagNames, const ::AP::ByteSeqSeq& tagValues, ::Ice::Int num, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
return end_setControlData(_iceI_begin_setControlData(tagNames, tagValues, num, context, ::IceInternal::dummyCallback, 0, true));
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_setControlData(const ::Ice::StringSeq& tagNames, const ::AP::ByteSeqSeq& tagValues, ::Ice::Int num, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
return _iceI_begin_setControlData(tagNames, tagValues, num, context, ::IceInternal::dummyCallback, 0);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_setControlData(const ::Ice::StringSeq& tagNames, const ::AP::ByteSeqSeq& tagValues, ::Ice::Int num, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_setControlData(tagNames, tagValues, num, ::Ice::noExplicitContext, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_setControlData(const ::Ice::StringSeq& tagNames, const ::AP::ByteSeqSeq& tagValues, ::Ice::Int num, const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_setControlData(tagNames, tagValues, num, context, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_setControlData(const ::Ice::StringSeq& tagNames, const ::AP::ByteSeqSeq& tagValues, ::Ice::Int num, const ::iPlature::Callback_EventReceiver_setControlDataPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_setControlData(tagNames, tagValues, num, ::Ice::noExplicitContext, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_setControlData(const ::Ice::StringSeq& tagNames, const ::AP::ByteSeqSeq& tagValues, ::Ice::Int num, const ::Ice::Context& context, const ::iPlature::Callback_EventReceiver_setControlDataPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_setControlData(tagNames, tagValues, num, context, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::Int end_setControlData(const ::Ice::AsyncResultPtr& result);
|
||
|
|
|
||
|
|
private:
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr _iceI_begin_setControlData(const ::Ice::StringSeq&, const ::AP::ByteSeqSeq&, ::Ice::Int, const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0, bool sync = false);
|
||
|
|
|
||
|
|
public:
|
||
|
|
|
||
|
|
::AP::ByteSeqSeq readData(const ::Ice::StringSeq& tagNames, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
return end_readData(_iceI_begin_readData(tagNames, context, ::IceInternal::dummyCallback, 0, true));
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_readData(const ::Ice::StringSeq& tagNames, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
return _iceI_begin_readData(tagNames, context, ::IceInternal::dummyCallback, 0);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_readData(const ::Ice::StringSeq& tagNames, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_readData(tagNames, ::Ice::noExplicitContext, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_readData(const ::Ice::StringSeq& tagNames, const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_readData(tagNames, context, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_readData(const ::Ice::StringSeq& tagNames, const ::iPlature::Callback_EventReceiver_readDataPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_readData(tagNames, ::Ice::noExplicitContext, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_readData(const ::Ice::StringSeq& tagNames, const ::Ice::Context& context, const ::iPlature::Callback_EventReceiver_readDataPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_readData(tagNames, context, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::AP::ByteSeqSeq end_readData(const ::Ice::AsyncResultPtr& result);
|
||
|
|
|
||
|
|
private:
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr _iceI_begin_readData(const ::Ice::StringSeq&, const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0, bool sync = false);
|
||
|
|
|
||
|
|
public:
|
||
|
|
|
||
|
|
::std::string GetModelJson(const ::std::string& objName, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
return end_GetModelJson(_iceI_begin_GetModelJson(objName, context, ::IceInternal::dummyCallback, 0, true));
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_GetModelJson(const ::std::string& objName, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
return _iceI_begin_GetModelJson(objName, context, ::IceInternal::dummyCallback, 0);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_GetModelJson(const ::std::string& objName, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_GetModelJson(objName, ::Ice::noExplicitContext, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_GetModelJson(const ::std::string& objName, const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_GetModelJson(objName, context, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_GetModelJson(const ::std::string& objName, const ::iPlature::Callback_EventReceiver_GetModelJsonPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_GetModelJson(objName, ::Ice::noExplicitContext, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_GetModelJson(const ::std::string& objName, const ::Ice::Context& context, const ::iPlature::Callback_EventReceiver_GetModelJsonPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_GetModelJson(objName, context, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::std::string end_GetModelJson(const ::Ice::AsyncResultPtr& result);
|
||
|
|
|
||
|
|
private:
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr _iceI_begin_GetModelJson(const ::std::string&, const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0, bool sync = false);
|
||
|
|
|
||
|
|
public:
|
||
|
|
|
||
|
|
void recvCallBack(const ::Ice::StringSeq& tagNames, const ::AP::ByteSeqSeq& tagValues, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
end_recvCallBack(_iceI_begin_recvCallBack(tagNames, tagValues, context, ::IceInternal::dummyCallback, 0, true));
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_recvCallBack(const ::Ice::StringSeq& tagNames, const ::AP::ByteSeqSeq& tagValues, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
return _iceI_begin_recvCallBack(tagNames, tagValues, context, ::IceInternal::dummyCallback, 0);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_recvCallBack(const ::Ice::StringSeq& tagNames, const ::AP::ByteSeqSeq& tagValues, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_recvCallBack(tagNames, tagValues, ::Ice::noExplicitContext, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_recvCallBack(const ::Ice::StringSeq& tagNames, const ::AP::ByteSeqSeq& tagValues, const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_recvCallBack(tagNames, tagValues, context, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_recvCallBack(const ::Ice::StringSeq& tagNames, const ::AP::ByteSeqSeq& tagValues, const ::iPlature::Callback_EventReceiver_recvCallBackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_recvCallBack(tagNames, tagValues, ::Ice::noExplicitContext, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_recvCallBack(const ::Ice::StringSeq& tagNames, const ::AP::ByteSeqSeq& tagValues, const ::Ice::Context& context, const ::iPlature::Callback_EventReceiver_recvCallBackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_recvCallBack(tagNames, tagValues, context, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
void end_recvCallBack(const ::Ice::AsyncResultPtr& result);
|
||
|
|
|
||
|
|
private:
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr _iceI_begin_recvCallBack(const ::Ice::StringSeq&, const ::AP::ByteSeqSeq&, const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0, bool sync = false);
|
||
|
|
|
||
|
|
public:
|
||
|
|
|
||
|
|
::Ice::Int regist(const ::Ice::StringSeq& tagNames, ::Ice::Int nIntervalMs, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
return end_regist(_iceI_begin_regist(tagNames, nIntervalMs, context, ::IceInternal::dummyCallback, 0, true));
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_regist(const ::Ice::StringSeq& tagNames, ::Ice::Int nIntervalMs, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
return _iceI_begin_regist(tagNames, nIntervalMs, context, ::IceInternal::dummyCallback, 0);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_regist(const ::Ice::StringSeq& tagNames, ::Ice::Int nIntervalMs, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_regist(tagNames, nIntervalMs, ::Ice::noExplicitContext, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_regist(const ::Ice::StringSeq& tagNames, ::Ice::Int nIntervalMs, const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_regist(tagNames, nIntervalMs, context, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_regist(const ::Ice::StringSeq& tagNames, ::Ice::Int nIntervalMs, const ::iPlature::Callback_EventReceiver_registPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_regist(tagNames, nIntervalMs, ::Ice::noExplicitContext, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_regist(const ::Ice::StringSeq& tagNames, ::Ice::Int nIntervalMs, const ::Ice::Context& context, const ::iPlature::Callback_EventReceiver_registPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_regist(tagNames, nIntervalMs, context, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::Int end_regist(const ::Ice::AsyncResultPtr& result);
|
||
|
|
|
||
|
|
private:
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr _iceI_begin_regist(const ::Ice::StringSeq&, ::Ice::Int, const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0, bool sync = false);
|
||
|
|
|
||
|
|
public:
|
||
|
|
|
||
|
|
::AP::ByteSeqSeq readObjectTyle(const ::std::string& strObjectName, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
return end_readObjectTyle(_iceI_begin_readObjectTyle(strObjectName, context, ::IceInternal::dummyCallback, 0, true));
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_readObjectTyle(const ::std::string& strObjectName, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
return _iceI_begin_readObjectTyle(strObjectName, context, ::IceInternal::dummyCallback, 0);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_readObjectTyle(const ::std::string& strObjectName, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_readObjectTyle(strObjectName, ::Ice::noExplicitContext, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_readObjectTyle(const ::std::string& strObjectName, const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_readObjectTyle(strObjectName, context, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_readObjectTyle(const ::std::string& strObjectName, const ::iPlature::Callback_EventReceiver_readObjectTylePtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_readObjectTyle(strObjectName, ::Ice::noExplicitContext, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_readObjectTyle(const ::std::string& strObjectName, const ::Ice::Context& context, const ::iPlature::Callback_EventReceiver_readObjectTylePtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_readObjectTyle(strObjectName, context, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::AP::ByteSeqSeq end_readObjectTyle(const ::Ice::AsyncResultPtr& result);
|
||
|
|
|
||
|
|
private:
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr _iceI_begin_readObjectTyle(const ::std::string&, const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0, bool sync = false);
|
||
|
|
|
||
|
|
public:
|
||
|
|
|
||
|
|
::AP::ByteSeqSeq readObjValue(const ::std::string& objectName, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
return end_readObjValue(_iceI_begin_readObjValue(objectName, context, ::IceInternal::dummyCallback, 0, true));
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_readObjValue(const ::std::string& objectName, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
return _iceI_begin_readObjValue(objectName, context, ::IceInternal::dummyCallback, 0);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_readObjValue(const ::std::string& objectName, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_readObjValue(objectName, ::Ice::noExplicitContext, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_readObjValue(const ::std::string& objectName, const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_readObjValue(objectName, context, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_readObjValue(const ::std::string& objectName, const ::iPlature::Callback_EventReceiver_readObjValuePtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_readObjValue(objectName, ::Ice::noExplicitContext, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_readObjValue(const ::std::string& objectName, const ::Ice::Context& context, const ::iPlature::Callback_EventReceiver_readObjValuePtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_readObjValue(objectName, context, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::AP::ByteSeqSeq end_readObjValue(const ::Ice::AsyncResultPtr& result);
|
||
|
|
|
||
|
|
private:
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr _iceI_begin_readObjValue(const ::std::string&, const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0, bool sync = false);
|
||
|
|
|
||
|
|
public:
|
||
|
|
|
||
|
|
::Ice::Int unregist(::Ice::Int nBatchID, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
return end_unregist(_iceI_begin_unregist(nBatchID, context, ::IceInternal::dummyCallback, 0, true));
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_unregist(::Ice::Int nBatchID, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
||
|
|
{
|
||
|
|
return _iceI_begin_unregist(nBatchID, context, ::IceInternal::dummyCallback, 0);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_unregist(::Ice::Int nBatchID, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_unregist(nBatchID, ::Ice::noExplicitContext, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_unregist(::Ice::Int nBatchID, const ::Ice::Context& context, const ::Ice::CallbackPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_unregist(nBatchID, context, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_unregist(::Ice::Int nBatchID, const ::iPlature::Callback_EventReceiver_unregistPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_unregist(nBatchID, ::Ice::noExplicitContext, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr begin_unregist(::Ice::Int nBatchID, const ::Ice::Context& context, const ::iPlature::Callback_EventReceiver_unregistPtr& cb, const ::Ice::LocalObjectPtr& cookie = 0)
|
||
|
|
{
|
||
|
|
return _iceI_begin_unregist(nBatchID, context, cb, cookie);
|
||
|
|
}
|
||
|
|
|
||
|
|
::Ice::Int end_unregist(const ::Ice::AsyncResultPtr& result);
|
||
|
|
|
||
|
|
private:
|
||
|
|
|
||
|
|
::Ice::AsyncResultPtr _iceI_begin_unregist(::Ice::Int, 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 iPlature
|
||
|
|
{
|
||
|
|
|
||
|
|
class EventReceiver : public virtual ::Ice::Object
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
|
||
|
|
typedef EventReceiverPrx ProxyType;
|
||
|
|
typedef EventReceiverPtr PointerType;
|
||
|
|
|
||
|
|
virtual ~EventReceiver();
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 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 CacheRelation(const ::Ice::Current& current = ::Ice::emptyCurrent) = 0;
|
||
|
|
/// \cond INTERNAL
|
||
|
|
bool _iceD_CacheRelation(::IceInternal::Incoming&, const ::Ice::Current&);
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
virtual ::Ice::Int Init(const DRSdkConnectParam& tDRSdkConnectParam, const DRSdkOption& tDRSdkOption, const ::Ice::Current& current = ::Ice::emptyCurrent) = 0;
|
||
|
|
/// \cond INTERNAL
|
||
|
|
bool _iceD_Init(::IceInternal::Incoming&, const ::Ice::Current&);
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
virtual ::Ice::Int setControlData(const ::Ice::StringSeq& tagNames, const ::AP::ByteSeqSeq& tagValues, ::Ice::Int num, const ::Ice::Current& current = ::Ice::emptyCurrent) = 0;
|
||
|
|
/// \cond INTERNAL
|
||
|
|
bool _iceD_setControlData(::IceInternal::Incoming&, const ::Ice::Current&);
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
virtual ::AP::ByteSeqSeq readData(const ::Ice::StringSeq& tagNames, const ::Ice::Current& current = ::Ice::emptyCurrent) = 0;
|
||
|
|
/// \cond INTERNAL
|
||
|
|
bool _iceD_readData(::IceInternal::Incoming&, const ::Ice::Current&);
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
virtual ::std::string GetModelJson(const ::std::string& objName, const ::Ice::Current& current = ::Ice::emptyCurrent) = 0;
|
||
|
|
/// \cond INTERNAL
|
||
|
|
bool _iceD_GetModelJson(::IceInternal::Incoming&, const ::Ice::Current&);
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
virtual void recvCallBack(const ::Ice::StringSeq& tagNames, const ::AP::ByteSeqSeq& tagValues, const ::Ice::Current& current = ::Ice::emptyCurrent) = 0;
|
||
|
|
/// \cond INTERNAL
|
||
|
|
bool _iceD_recvCallBack(::IceInternal::Incoming&, const ::Ice::Current&);
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
virtual ::Ice::Int regist(const ::Ice::StringSeq& tagNames, ::Ice::Int nIntervalMs, const ::Ice::Current& current = ::Ice::emptyCurrent) = 0;
|
||
|
|
/// \cond INTERNAL
|
||
|
|
bool _iceD_regist(::IceInternal::Incoming&, const ::Ice::Current&);
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
virtual ::AP::ByteSeqSeq readObjectTyle(const ::std::string& strObjectName, const ::Ice::Current& current = ::Ice::emptyCurrent) = 0;
|
||
|
|
/// \cond INTERNAL
|
||
|
|
bool _iceD_readObjectTyle(::IceInternal::Incoming&, const ::Ice::Current&);
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
virtual ::AP::ByteSeqSeq readObjValue(const ::std::string& objectName, const ::Ice::Current& current = ::Ice::emptyCurrent) = 0;
|
||
|
|
/// \cond INTERNAL
|
||
|
|
bool _iceD_readObjValue(::IceInternal::Incoming&, const ::Ice::Current&);
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
virtual ::Ice::Int unregist(::Ice::Int nBatchID, const ::Ice::Current& current = ::Ice::emptyCurrent) = 0;
|
||
|
|
/// \cond INTERNAL
|
||
|
|
bool _iceD_unregist(::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 EventReceiver& lhs, const EventReceiver& rhs)
|
||
|
|
{
|
||
|
|
return static_cast<const ::Ice::Object&>(lhs) == static_cast<const ::Ice::Object&>(rhs);
|
||
|
|
}
|
||
|
|
|
||
|
|
inline bool operator<(const EventReceiver& lhs, const EventReceiver& rhs)
|
||
|
|
{
|
||
|
|
return static_cast<const ::Ice::Object&>(lhs) < static_cast<const ::Ice::Object&>(rhs);
|
||
|
|
}
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
/// \cond STREAM
|
||
|
|
namespace Ice
|
||
|
|
{
|
||
|
|
|
||
|
|
template<>
|
||
|
|
struct StreamableTraits< ::iPlature::DRSdkConnectParam>
|
||
|
|
{
|
||
|
|
static const StreamHelperCategory helper = StreamHelperCategoryStruct;
|
||
|
|
static const int minWireSize = 11;
|
||
|
|
static const bool fixedLength = false;
|
||
|
|
};
|
||
|
|
|
||
|
|
template<typename S>
|
||
|
|
struct StreamWriter< ::iPlature::DRSdkConnectParam, S>
|
||
|
|
{
|
||
|
|
static void write(S* ostr, const ::iPlature::DRSdkConnectParam& v)
|
||
|
|
{
|
||
|
|
ostr->write(v.szServerIp);
|
||
|
|
ostr->write(v.nServerPort);
|
||
|
|
ostr->write(v.szServerIpBak);
|
||
|
|
ostr->write(v.nServerPortBak);
|
||
|
|
ostr->write(v.flag);
|
||
|
|
ostr->write(v.nConnectTimeoutMs);
|
||
|
|
ostr->write(v.nHeartbeatTimeoutMs);
|
||
|
|
}
|
||
|
|
};
|
||
|
|
|
||
|
|
template<typename S>
|
||
|
|
struct StreamReader< ::iPlature::DRSdkConnectParam, S>
|
||
|
|
{
|
||
|
|
static void read(S* istr, ::iPlature::DRSdkConnectParam& v)
|
||
|
|
{
|
||
|
|
istr->read(v.szServerIp);
|
||
|
|
istr->read(v.nServerPort);
|
||
|
|
istr->read(v.szServerIpBak);
|
||
|
|
istr->read(v.nServerPortBak);
|
||
|
|
istr->read(v.flag);
|
||
|
|
istr->read(v.nConnectTimeoutMs);
|
||
|
|
istr->read(v.nHeartbeatTimeoutMs);
|
||
|
|
}
|
||
|
|
};
|
||
|
|
|
||
|
|
template<>
|
||
|
|
struct StreamableTraits< ::iPlature::DRSdkOption>
|
||
|
|
{
|
||
|
|
static const StreamHelperCategory helper = StreamHelperCategoryStruct;
|
||
|
|
static const int minWireSize = 6;
|
||
|
|
static const bool fixedLength = true;
|
||
|
|
};
|
||
|
|
|
||
|
|
template<typename S>
|
||
|
|
struct StreamWriter< ::iPlature::DRSdkOption, S>
|
||
|
|
{
|
||
|
|
static void write(S* ostr, const ::iPlature::DRSdkOption& v)
|
||
|
|
{
|
||
|
|
ostr->write(v.nThreadPoolNum);
|
||
|
|
ostr->write(v.nRequestWaitTimeoutMs);
|
||
|
|
}
|
||
|
|
};
|
||
|
|
|
||
|
|
template<typename S>
|
||
|
|
struct StreamReader< ::iPlature::DRSdkOption, S>
|
||
|
|
{
|
||
|
|
static void read(S* istr, ::iPlature::DRSdkOption& v)
|
||
|
|
{
|
||
|
|
istr->read(v.nThreadPoolNum);
|
||
|
|
istr->read(v.nRequestWaitTimeoutMs);
|
||
|
|
}
|
||
|
|
};
|
||
|
|
|
||
|
|
}
|
||
|
|
/// \endcond
|
||
|
|
|
||
|
|
namespace iPlature
|
||
|
|
{
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Type-safe asynchronous callback wrapper class used for calls to
|
||
|
|
* IceProxy::iPlature::EventReceiver::begin_CacheRelation.
|
||
|
|
* Create a wrapper instance by calling ::iPlature::newCallback_EventReceiver_CacheRelation.
|
||
|
|
*/
|
||
|
|
template<class T>
|
||
|
|
class CallbackNC_EventReceiver_CacheRelation : public Callback_EventReceiver_CacheRelation_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_EventReceiver_CacheRelation(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
|
||
|
|
{
|
||
|
|
EventReceiverPrx proxy = EventReceiverPrx::uncheckedCast(result->getProxy());
|
||
|
|
::Ice::Int ret;
|
||
|
|
try
|
||
|
|
{
|
||
|
|
ret = proxy->end_CacheRelation(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::iPlature::EventReceiver::begin_CacheRelation.
|
||
|
|
*/
|
||
|
|
template<class T> Callback_EventReceiver_CacheRelationPtr
|
||
|
|
newCallback_EventReceiver_CacheRelation(const IceUtil::Handle<T>& instance, void (T::*cb)(::Ice::Int), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
||
|
|
{
|
||
|
|
return new CallbackNC_EventReceiver_CacheRelation<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::iPlature::EventReceiver::begin_CacheRelation.
|
||
|
|
*/
|
||
|
|
template<class T> Callback_EventReceiver_CacheRelationPtr
|
||
|
|
newCallback_EventReceiver_CacheRelation(T* instance, void (T::*cb)(::Ice::Int), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
||
|
|
{
|
||
|
|
return new CallbackNC_EventReceiver_CacheRelation<T>(instance, cb, excb, sentcb);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Type-safe asynchronous callback wrapper class with cookie support used for calls to
|
||
|
|
* IceProxy::iPlature::EventReceiver::begin_CacheRelation.
|
||
|
|
* Create a wrapper instance by calling ::iPlature::newCallback_EventReceiver_CacheRelation.
|
||
|
|
*/
|
||
|
|
template<class T, typename CT>
|
||
|
|
class Callback_EventReceiver_CacheRelation : public Callback_EventReceiver_CacheRelation_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_EventReceiver_CacheRelation(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
|
||
|
|
{
|
||
|
|
EventReceiverPrx proxy = EventReceiverPrx::uncheckedCast(result->getProxy());
|
||
|
|
::Ice::Int ret;
|
||
|
|
try
|
||
|
|
{
|
||
|
|
ret = proxy->end_CacheRelation(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::iPlature::EventReceiver::begin_CacheRelation.
|
||
|
|
*/
|
||
|
|
template<class T, typename CT> Callback_EventReceiver_CacheRelationPtr
|
||
|
|
newCallback_EventReceiver_CacheRelation(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_EventReceiver_CacheRelation<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::iPlature::EventReceiver::begin_CacheRelation.
|
||
|
|
*/
|
||
|
|
template<class T, typename CT> Callback_EventReceiver_CacheRelationPtr
|
||
|
|
newCallback_EventReceiver_CacheRelation(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_EventReceiver_CacheRelation<T, CT>(instance, cb, excb, sentcb);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Type-safe asynchronous callback wrapper class used for calls to
|
||
|
|
* IceProxy::iPlature::EventReceiver::begin_Init.
|
||
|
|
* Create a wrapper instance by calling ::iPlature::newCallback_EventReceiver_Init.
|
||
|
|
*/
|
||
|
|
template<class T>
|
||
|
|
class CallbackNC_EventReceiver_Init : public Callback_EventReceiver_Init_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_EventReceiver_Init(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
|
||
|
|
{
|
||
|
|
EventReceiverPrx proxy = EventReceiverPrx::uncheckedCast(result->getProxy());
|
||
|
|
::Ice::Int ret;
|
||
|
|
try
|
||
|
|
{
|
||
|
|
ret = proxy->end_Init(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::iPlature::EventReceiver::begin_Init.
|
||
|
|
*/
|
||
|
|
template<class T> Callback_EventReceiver_InitPtr
|
||
|
|
newCallback_EventReceiver_Init(const IceUtil::Handle<T>& instance, void (T::*cb)(::Ice::Int), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
||
|
|
{
|
||
|
|
return new CallbackNC_EventReceiver_Init<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::iPlature::EventReceiver::begin_Init.
|
||
|
|
*/
|
||
|
|
template<class T> Callback_EventReceiver_InitPtr
|
||
|
|
newCallback_EventReceiver_Init(T* instance, void (T::*cb)(::Ice::Int), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
||
|
|
{
|
||
|
|
return new CallbackNC_EventReceiver_Init<T>(instance, cb, excb, sentcb);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Type-safe asynchronous callback wrapper class with cookie support used for calls to
|
||
|
|
* IceProxy::iPlature::EventReceiver::begin_Init.
|
||
|
|
* Create a wrapper instance by calling ::iPlature::newCallback_EventReceiver_Init.
|
||
|
|
*/
|
||
|
|
template<class T, typename CT>
|
||
|
|
class Callback_EventReceiver_Init : public Callback_EventReceiver_Init_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_EventReceiver_Init(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
|
||
|
|
{
|
||
|
|
EventReceiverPrx proxy = EventReceiverPrx::uncheckedCast(result->getProxy());
|
||
|
|
::Ice::Int ret;
|
||
|
|
try
|
||
|
|
{
|
||
|
|
ret = proxy->end_Init(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::iPlature::EventReceiver::begin_Init.
|
||
|
|
*/
|
||
|
|
template<class T, typename CT> Callback_EventReceiver_InitPtr
|
||
|
|
newCallback_EventReceiver_Init(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_EventReceiver_Init<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::iPlature::EventReceiver::begin_Init.
|
||
|
|
*/
|
||
|
|
template<class T, typename CT> Callback_EventReceiver_InitPtr
|
||
|
|
newCallback_EventReceiver_Init(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_EventReceiver_Init<T, CT>(instance, cb, excb, sentcb);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Type-safe asynchronous callback wrapper class used for calls to
|
||
|
|
* IceProxy::iPlature::EventReceiver::begin_setControlData.
|
||
|
|
* Create a wrapper instance by calling ::iPlature::newCallback_EventReceiver_setControlData.
|
||
|
|
*/
|
||
|
|
template<class T>
|
||
|
|
class CallbackNC_EventReceiver_setControlData : public Callback_EventReceiver_setControlData_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_EventReceiver_setControlData(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
|
||
|
|
{
|
||
|
|
EventReceiverPrx proxy = EventReceiverPrx::uncheckedCast(result->getProxy());
|
||
|
|
::Ice::Int ret;
|
||
|
|
try
|
||
|
|
{
|
||
|
|
ret = proxy->end_setControlData(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::iPlature::EventReceiver::begin_setControlData.
|
||
|
|
*/
|
||
|
|
template<class T> Callback_EventReceiver_setControlDataPtr
|
||
|
|
newCallback_EventReceiver_setControlData(const IceUtil::Handle<T>& instance, void (T::*cb)(::Ice::Int), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
||
|
|
{
|
||
|
|
return new CallbackNC_EventReceiver_setControlData<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::iPlature::EventReceiver::begin_setControlData.
|
||
|
|
*/
|
||
|
|
template<class T> Callback_EventReceiver_setControlDataPtr
|
||
|
|
newCallback_EventReceiver_setControlData(T* instance, void (T::*cb)(::Ice::Int), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
||
|
|
{
|
||
|
|
return new CallbackNC_EventReceiver_setControlData<T>(instance, cb, excb, sentcb);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Type-safe asynchronous callback wrapper class with cookie support used for calls to
|
||
|
|
* IceProxy::iPlature::EventReceiver::begin_setControlData.
|
||
|
|
* Create a wrapper instance by calling ::iPlature::newCallback_EventReceiver_setControlData.
|
||
|
|
*/
|
||
|
|
template<class T, typename CT>
|
||
|
|
class Callback_EventReceiver_setControlData : public Callback_EventReceiver_setControlData_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_EventReceiver_setControlData(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
|
||
|
|
{
|
||
|
|
EventReceiverPrx proxy = EventReceiverPrx::uncheckedCast(result->getProxy());
|
||
|
|
::Ice::Int ret;
|
||
|
|
try
|
||
|
|
{
|
||
|
|
ret = proxy->end_setControlData(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::iPlature::EventReceiver::begin_setControlData.
|
||
|
|
*/
|
||
|
|
template<class T, typename CT> Callback_EventReceiver_setControlDataPtr
|
||
|
|
newCallback_EventReceiver_setControlData(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_EventReceiver_setControlData<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::iPlature::EventReceiver::begin_setControlData.
|
||
|
|
*/
|
||
|
|
template<class T, typename CT> Callback_EventReceiver_setControlDataPtr
|
||
|
|
newCallback_EventReceiver_setControlData(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_EventReceiver_setControlData<T, CT>(instance, cb, excb, sentcb);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Type-safe asynchronous callback wrapper class used for calls to
|
||
|
|
* IceProxy::iPlature::EventReceiver::begin_readData.
|
||
|
|
* Create a wrapper instance by calling ::iPlature::newCallback_EventReceiver_readData.
|
||
|
|
*/
|
||
|
|
template<class T>
|
||
|
|
class CallbackNC_EventReceiver_readData : public Callback_EventReceiver_readData_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 ::AP::ByteSeqSeq&);
|
||
|
|
|
||
|
|
CallbackNC_EventReceiver_readData(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
|
||
|
|
{
|
||
|
|
EventReceiverPrx proxy = EventReceiverPrx::uncheckedCast(result->getProxy());
|
||
|
|
::AP::ByteSeqSeq ret;
|
||
|
|
try
|
||
|
|
{
|
||
|
|
ret = proxy->end_readData(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::iPlature::EventReceiver::begin_readData.
|
||
|
|
*/
|
||
|
|
template<class T> Callback_EventReceiver_readDataPtr
|
||
|
|
newCallback_EventReceiver_readData(const IceUtil::Handle<T>& instance, void (T::*cb)(const ::AP::ByteSeqSeq&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
||
|
|
{
|
||
|
|
return new CallbackNC_EventReceiver_readData<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::iPlature::EventReceiver::begin_readData.
|
||
|
|
*/
|
||
|
|
template<class T> Callback_EventReceiver_readDataPtr
|
||
|
|
newCallback_EventReceiver_readData(T* instance, void (T::*cb)(const ::AP::ByteSeqSeq&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
||
|
|
{
|
||
|
|
return new CallbackNC_EventReceiver_readData<T>(instance, cb, excb, sentcb);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Type-safe asynchronous callback wrapper class with cookie support used for calls to
|
||
|
|
* IceProxy::iPlature::EventReceiver::begin_readData.
|
||
|
|
* Create a wrapper instance by calling ::iPlature::newCallback_EventReceiver_readData.
|
||
|
|
*/
|
||
|
|
template<class T, typename CT>
|
||
|
|
class Callback_EventReceiver_readData : public Callback_EventReceiver_readData_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 ::AP::ByteSeqSeq&, const CT&);
|
||
|
|
|
||
|
|
Callback_EventReceiver_readData(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
|
||
|
|
{
|
||
|
|
EventReceiverPrx proxy = EventReceiverPrx::uncheckedCast(result->getProxy());
|
||
|
|
::AP::ByteSeqSeq ret;
|
||
|
|
try
|
||
|
|
{
|
||
|
|
ret = proxy->end_readData(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::iPlature::EventReceiver::begin_readData.
|
||
|
|
*/
|
||
|
|
template<class T, typename CT> Callback_EventReceiver_readDataPtr
|
||
|
|
newCallback_EventReceiver_readData(const IceUtil::Handle<T>& instance, void (T::*cb)(const ::AP::ByteSeqSeq&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
|
||
|
|
{
|
||
|
|
return new Callback_EventReceiver_readData<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::iPlature::EventReceiver::begin_readData.
|
||
|
|
*/
|
||
|
|
template<class T, typename CT> Callback_EventReceiver_readDataPtr
|
||
|
|
newCallback_EventReceiver_readData(T* instance, void (T::*cb)(const ::AP::ByteSeqSeq&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
|
||
|
|
{
|
||
|
|
return new Callback_EventReceiver_readData<T, CT>(instance, cb, excb, sentcb);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Type-safe asynchronous callback wrapper class used for calls to
|
||
|
|
* IceProxy::iPlature::EventReceiver::begin_GetModelJson.
|
||
|
|
* Create a wrapper instance by calling ::iPlature::newCallback_EventReceiver_GetModelJson.
|
||
|
|
*/
|
||
|
|
template<class T>
|
||
|
|
class CallbackNC_EventReceiver_GetModelJson : public Callback_EventReceiver_GetModelJson_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 ::std::string&);
|
||
|
|
|
||
|
|
CallbackNC_EventReceiver_GetModelJson(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
|
||
|
|
{
|
||
|
|
EventReceiverPrx proxy = EventReceiverPrx::uncheckedCast(result->getProxy());
|
||
|
|
::std::string ret;
|
||
|
|
try
|
||
|
|
{
|
||
|
|
ret = proxy->end_GetModelJson(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::iPlature::EventReceiver::begin_GetModelJson.
|
||
|
|
*/
|
||
|
|
template<class T> Callback_EventReceiver_GetModelJsonPtr
|
||
|
|
newCallback_EventReceiver_GetModelJson(const IceUtil::Handle<T>& instance, void (T::*cb)(const ::std::string&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
||
|
|
{
|
||
|
|
return new CallbackNC_EventReceiver_GetModelJson<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::iPlature::EventReceiver::begin_GetModelJson.
|
||
|
|
*/
|
||
|
|
template<class T> Callback_EventReceiver_GetModelJsonPtr
|
||
|
|
newCallback_EventReceiver_GetModelJson(T* instance, void (T::*cb)(const ::std::string&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
||
|
|
{
|
||
|
|
return new CallbackNC_EventReceiver_GetModelJson<T>(instance, cb, excb, sentcb);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Type-safe asynchronous callback wrapper class with cookie support used for calls to
|
||
|
|
* IceProxy::iPlature::EventReceiver::begin_GetModelJson.
|
||
|
|
* Create a wrapper instance by calling ::iPlature::newCallback_EventReceiver_GetModelJson.
|
||
|
|
*/
|
||
|
|
template<class T, typename CT>
|
||
|
|
class Callback_EventReceiver_GetModelJson : public Callback_EventReceiver_GetModelJson_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 ::std::string&, const CT&);
|
||
|
|
|
||
|
|
Callback_EventReceiver_GetModelJson(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
|
||
|
|
{
|
||
|
|
EventReceiverPrx proxy = EventReceiverPrx::uncheckedCast(result->getProxy());
|
||
|
|
::std::string ret;
|
||
|
|
try
|
||
|
|
{
|
||
|
|
ret = proxy->end_GetModelJson(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::iPlature::EventReceiver::begin_GetModelJson.
|
||
|
|
*/
|
||
|
|
template<class T, typename CT> Callback_EventReceiver_GetModelJsonPtr
|
||
|
|
newCallback_EventReceiver_GetModelJson(const IceUtil::Handle<T>& instance, void (T::*cb)(const ::std::string&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
|
||
|
|
{
|
||
|
|
return new Callback_EventReceiver_GetModelJson<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::iPlature::EventReceiver::begin_GetModelJson.
|
||
|
|
*/
|
||
|
|
template<class T, typename CT> Callback_EventReceiver_GetModelJsonPtr
|
||
|
|
newCallback_EventReceiver_GetModelJson(T* instance, void (T::*cb)(const ::std::string&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
|
||
|
|
{
|
||
|
|
return new Callback_EventReceiver_GetModelJson<T, CT>(instance, cb, excb, sentcb);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Type-safe asynchronous callback wrapper class used for calls to
|
||
|
|
* IceProxy::iPlature::EventReceiver::begin_recvCallBack.
|
||
|
|
* Create a wrapper instance by calling ::iPlature::newCallback_EventReceiver_recvCallBack.
|
||
|
|
*/
|
||
|
|
template<class T>
|
||
|
|
class CallbackNC_EventReceiver_recvCallBack : public Callback_EventReceiver_recvCallBack_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_EventReceiver_recvCallBack(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::iPlature::EventReceiver::begin_recvCallBack.
|
||
|
|
*/
|
||
|
|
template<class T> Callback_EventReceiver_recvCallBackPtr
|
||
|
|
newCallback_EventReceiver_recvCallBack(const IceUtil::Handle<T>& instance, void (T::*cb)(), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
||
|
|
{
|
||
|
|
return new CallbackNC_EventReceiver_recvCallBack<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::iPlature::EventReceiver::begin_recvCallBack.
|
||
|
|
*/
|
||
|
|
template<class T> Callback_EventReceiver_recvCallBackPtr
|
||
|
|
newCallback_EventReceiver_recvCallBack(const IceUtil::Handle<T>& instance, void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
||
|
|
{
|
||
|
|
return new CallbackNC_EventReceiver_recvCallBack<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::iPlature::EventReceiver::begin_recvCallBack.
|
||
|
|
*/
|
||
|
|
template<class T> Callback_EventReceiver_recvCallBackPtr
|
||
|
|
newCallback_EventReceiver_recvCallBack(T* instance, void (T::*cb)(), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
||
|
|
{
|
||
|
|
return new CallbackNC_EventReceiver_recvCallBack<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::iPlature::EventReceiver::begin_recvCallBack.
|
||
|
|
*/
|
||
|
|
template<class T> Callback_EventReceiver_recvCallBackPtr
|
||
|
|
newCallback_EventReceiver_recvCallBack(T* instance, void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
||
|
|
{
|
||
|
|
return new CallbackNC_EventReceiver_recvCallBack<T>(instance, 0, excb, sentcb);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Type-safe asynchronous callback wrapper class with cookie support used for calls to
|
||
|
|
* IceProxy::iPlature::EventReceiver::begin_recvCallBack.
|
||
|
|
* Create a wrapper instance by calling ::iPlature::newCallback_EventReceiver_recvCallBack.
|
||
|
|
*/
|
||
|
|
template<class T, typename CT>
|
||
|
|
class Callback_EventReceiver_recvCallBack : public Callback_EventReceiver_recvCallBack_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_EventReceiver_recvCallBack(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::iPlature::EventReceiver::begin_recvCallBack.
|
||
|
|
*/
|
||
|
|
template<class T, typename CT> Callback_EventReceiver_recvCallBackPtr
|
||
|
|
newCallback_EventReceiver_recvCallBack(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_EventReceiver_recvCallBack<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::iPlature::EventReceiver::begin_recvCallBack.
|
||
|
|
*/
|
||
|
|
template<class T, typename CT> Callback_EventReceiver_recvCallBackPtr
|
||
|
|
newCallback_EventReceiver_recvCallBack(const IceUtil::Handle<T>& instance, void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
|
||
|
|
{
|
||
|
|
return new Callback_EventReceiver_recvCallBack<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::iPlature::EventReceiver::begin_recvCallBack.
|
||
|
|
*/
|
||
|
|
template<class T, typename CT> Callback_EventReceiver_recvCallBackPtr
|
||
|
|
newCallback_EventReceiver_recvCallBack(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_EventReceiver_recvCallBack<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::iPlature::EventReceiver::begin_recvCallBack.
|
||
|
|
*/
|
||
|
|
template<class T, typename CT> Callback_EventReceiver_recvCallBackPtr
|
||
|
|
newCallback_EventReceiver_recvCallBack(T* instance, void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
|
||
|
|
{
|
||
|
|
return new Callback_EventReceiver_recvCallBack<T, CT>(instance, 0, excb, sentcb);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Type-safe asynchronous callback wrapper class used for calls to
|
||
|
|
* IceProxy::iPlature::EventReceiver::begin_regist.
|
||
|
|
* Create a wrapper instance by calling ::iPlature::newCallback_EventReceiver_regist.
|
||
|
|
*/
|
||
|
|
template<class T>
|
||
|
|
class CallbackNC_EventReceiver_regist : public Callback_EventReceiver_regist_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_EventReceiver_regist(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
|
||
|
|
{
|
||
|
|
EventReceiverPrx proxy = EventReceiverPrx::uncheckedCast(result->getProxy());
|
||
|
|
::Ice::Int ret;
|
||
|
|
try
|
||
|
|
{
|
||
|
|
ret = proxy->end_regist(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::iPlature::EventReceiver::begin_regist.
|
||
|
|
*/
|
||
|
|
template<class T> Callback_EventReceiver_registPtr
|
||
|
|
newCallback_EventReceiver_regist(const IceUtil::Handle<T>& instance, void (T::*cb)(::Ice::Int), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
||
|
|
{
|
||
|
|
return new CallbackNC_EventReceiver_regist<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::iPlature::EventReceiver::begin_regist.
|
||
|
|
*/
|
||
|
|
template<class T> Callback_EventReceiver_registPtr
|
||
|
|
newCallback_EventReceiver_regist(T* instance, void (T::*cb)(::Ice::Int), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
||
|
|
{
|
||
|
|
return new CallbackNC_EventReceiver_regist<T>(instance, cb, excb, sentcb);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Type-safe asynchronous callback wrapper class with cookie support used for calls to
|
||
|
|
* IceProxy::iPlature::EventReceiver::begin_regist.
|
||
|
|
* Create a wrapper instance by calling ::iPlature::newCallback_EventReceiver_regist.
|
||
|
|
*/
|
||
|
|
template<class T, typename CT>
|
||
|
|
class Callback_EventReceiver_regist : public Callback_EventReceiver_regist_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_EventReceiver_regist(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
|
||
|
|
{
|
||
|
|
EventReceiverPrx proxy = EventReceiverPrx::uncheckedCast(result->getProxy());
|
||
|
|
::Ice::Int ret;
|
||
|
|
try
|
||
|
|
{
|
||
|
|
ret = proxy->end_regist(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::iPlature::EventReceiver::begin_regist.
|
||
|
|
*/
|
||
|
|
template<class T, typename CT> Callback_EventReceiver_registPtr
|
||
|
|
newCallback_EventReceiver_regist(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_EventReceiver_regist<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::iPlature::EventReceiver::begin_regist.
|
||
|
|
*/
|
||
|
|
template<class T, typename CT> Callback_EventReceiver_registPtr
|
||
|
|
newCallback_EventReceiver_regist(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_EventReceiver_regist<T, CT>(instance, cb, excb, sentcb);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Type-safe asynchronous callback wrapper class used for calls to
|
||
|
|
* IceProxy::iPlature::EventReceiver::begin_readObjectTyle.
|
||
|
|
* Create a wrapper instance by calling ::iPlature::newCallback_EventReceiver_readObjectTyle.
|
||
|
|
*/
|
||
|
|
template<class T>
|
||
|
|
class CallbackNC_EventReceiver_readObjectTyle : public Callback_EventReceiver_readObjectTyle_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 ::AP::ByteSeqSeq&);
|
||
|
|
|
||
|
|
CallbackNC_EventReceiver_readObjectTyle(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
|
||
|
|
{
|
||
|
|
EventReceiverPrx proxy = EventReceiverPrx::uncheckedCast(result->getProxy());
|
||
|
|
::AP::ByteSeqSeq ret;
|
||
|
|
try
|
||
|
|
{
|
||
|
|
ret = proxy->end_readObjectTyle(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::iPlature::EventReceiver::begin_readObjectTyle.
|
||
|
|
*/
|
||
|
|
template<class T> Callback_EventReceiver_readObjectTylePtr
|
||
|
|
newCallback_EventReceiver_readObjectTyle(const IceUtil::Handle<T>& instance, void (T::*cb)(const ::AP::ByteSeqSeq&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
||
|
|
{
|
||
|
|
return new CallbackNC_EventReceiver_readObjectTyle<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::iPlature::EventReceiver::begin_readObjectTyle.
|
||
|
|
*/
|
||
|
|
template<class T> Callback_EventReceiver_readObjectTylePtr
|
||
|
|
newCallback_EventReceiver_readObjectTyle(T* instance, void (T::*cb)(const ::AP::ByteSeqSeq&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
||
|
|
{
|
||
|
|
return new CallbackNC_EventReceiver_readObjectTyle<T>(instance, cb, excb, sentcb);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Type-safe asynchronous callback wrapper class with cookie support used for calls to
|
||
|
|
* IceProxy::iPlature::EventReceiver::begin_readObjectTyle.
|
||
|
|
* Create a wrapper instance by calling ::iPlature::newCallback_EventReceiver_readObjectTyle.
|
||
|
|
*/
|
||
|
|
template<class T, typename CT>
|
||
|
|
class Callback_EventReceiver_readObjectTyle : public Callback_EventReceiver_readObjectTyle_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 ::AP::ByteSeqSeq&, const CT&);
|
||
|
|
|
||
|
|
Callback_EventReceiver_readObjectTyle(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
|
||
|
|
{
|
||
|
|
EventReceiverPrx proxy = EventReceiverPrx::uncheckedCast(result->getProxy());
|
||
|
|
::AP::ByteSeqSeq ret;
|
||
|
|
try
|
||
|
|
{
|
||
|
|
ret = proxy->end_readObjectTyle(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::iPlature::EventReceiver::begin_readObjectTyle.
|
||
|
|
*/
|
||
|
|
template<class T, typename CT> Callback_EventReceiver_readObjectTylePtr
|
||
|
|
newCallback_EventReceiver_readObjectTyle(const IceUtil::Handle<T>& instance, void (T::*cb)(const ::AP::ByteSeqSeq&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
|
||
|
|
{
|
||
|
|
return new Callback_EventReceiver_readObjectTyle<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::iPlature::EventReceiver::begin_readObjectTyle.
|
||
|
|
*/
|
||
|
|
template<class T, typename CT> Callback_EventReceiver_readObjectTylePtr
|
||
|
|
newCallback_EventReceiver_readObjectTyle(T* instance, void (T::*cb)(const ::AP::ByteSeqSeq&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
|
||
|
|
{
|
||
|
|
return new Callback_EventReceiver_readObjectTyle<T, CT>(instance, cb, excb, sentcb);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Type-safe asynchronous callback wrapper class used for calls to
|
||
|
|
* IceProxy::iPlature::EventReceiver::begin_readObjValue.
|
||
|
|
* Create a wrapper instance by calling ::iPlature::newCallback_EventReceiver_readObjValue.
|
||
|
|
*/
|
||
|
|
template<class T>
|
||
|
|
class CallbackNC_EventReceiver_readObjValue : public Callback_EventReceiver_readObjValue_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 ::AP::ByteSeqSeq&);
|
||
|
|
|
||
|
|
CallbackNC_EventReceiver_readObjValue(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
|
||
|
|
{
|
||
|
|
EventReceiverPrx proxy = EventReceiverPrx::uncheckedCast(result->getProxy());
|
||
|
|
::AP::ByteSeqSeq ret;
|
||
|
|
try
|
||
|
|
{
|
||
|
|
ret = proxy->end_readObjValue(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::iPlature::EventReceiver::begin_readObjValue.
|
||
|
|
*/
|
||
|
|
template<class T> Callback_EventReceiver_readObjValuePtr
|
||
|
|
newCallback_EventReceiver_readObjValue(const IceUtil::Handle<T>& instance, void (T::*cb)(const ::AP::ByteSeqSeq&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
||
|
|
{
|
||
|
|
return new CallbackNC_EventReceiver_readObjValue<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::iPlature::EventReceiver::begin_readObjValue.
|
||
|
|
*/
|
||
|
|
template<class T> Callback_EventReceiver_readObjValuePtr
|
||
|
|
newCallback_EventReceiver_readObjValue(T* instance, void (T::*cb)(const ::AP::ByteSeqSeq&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
||
|
|
{
|
||
|
|
return new CallbackNC_EventReceiver_readObjValue<T>(instance, cb, excb, sentcb);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Type-safe asynchronous callback wrapper class with cookie support used for calls to
|
||
|
|
* IceProxy::iPlature::EventReceiver::begin_readObjValue.
|
||
|
|
* Create a wrapper instance by calling ::iPlature::newCallback_EventReceiver_readObjValue.
|
||
|
|
*/
|
||
|
|
template<class T, typename CT>
|
||
|
|
class Callback_EventReceiver_readObjValue : public Callback_EventReceiver_readObjValue_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 ::AP::ByteSeqSeq&, const CT&);
|
||
|
|
|
||
|
|
Callback_EventReceiver_readObjValue(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
|
||
|
|
{
|
||
|
|
EventReceiverPrx proxy = EventReceiverPrx::uncheckedCast(result->getProxy());
|
||
|
|
::AP::ByteSeqSeq ret;
|
||
|
|
try
|
||
|
|
{
|
||
|
|
ret = proxy->end_readObjValue(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::iPlature::EventReceiver::begin_readObjValue.
|
||
|
|
*/
|
||
|
|
template<class T, typename CT> Callback_EventReceiver_readObjValuePtr
|
||
|
|
newCallback_EventReceiver_readObjValue(const IceUtil::Handle<T>& instance, void (T::*cb)(const ::AP::ByteSeqSeq&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
|
||
|
|
{
|
||
|
|
return new Callback_EventReceiver_readObjValue<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::iPlature::EventReceiver::begin_readObjValue.
|
||
|
|
*/
|
||
|
|
template<class T, typename CT> Callback_EventReceiver_readObjValuePtr
|
||
|
|
newCallback_EventReceiver_readObjValue(T* instance, void (T::*cb)(const ::AP::ByteSeqSeq&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
|
||
|
|
{
|
||
|
|
return new Callback_EventReceiver_readObjValue<T, CT>(instance, cb, excb, sentcb);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Type-safe asynchronous callback wrapper class used for calls to
|
||
|
|
* IceProxy::iPlature::EventReceiver::begin_unregist.
|
||
|
|
* Create a wrapper instance by calling ::iPlature::newCallback_EventReceiver_unregist.
|
||
|
|
*/
|
||
|
|
template<class T>
|
||
|
|
class CallbackNC_EventReceiver_unregist : public Callback_EventReceiver_unregist_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_EventReceiver_unregist(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
|
||
|
|
{
|
||
|
|
EventReceiverPrx proxy = EventReceiverPrx::uncheckedCast(result->getProxy());
|
||
|
|
::Ice::Int ret;
|
||
|
|
try
|
||
|
|
{
|
||
|
|
ret = proxy->end_unregist(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::iPlature::EventReceiver::begin_unregist.
|
||
|
|
*/
|
||
|
|
template<class T> Callback_EventReceiver_unregistPtr
|
||
|
|
newCallback_EventReceiver_unregist(const IceUtil::Handle<T>& instance, void (T::*cb)(::Ice::Int), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
||
|
|
{
|
||
|
|
return new CallbackNC_EventReceiver_unregist<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::iPlature::EventReceiver::begin_unregist.
|
||
|
|
*/
|
||
|
|
template<class T> Callback_EventReceiver_unregistPtr
|
||
|
|
newCallback_EventReceiver_unregist(T* instance, void (T::*cb)(::Ice::Int), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
||
|
|
{
|
||
|
|
return new CallbackNC_EventReceiver_unregist<T>(instance, cb, excb, sentcb);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Type-safe asynchronous callback wrapper class with cookie support used for calls to
|
||
|
|
* IceProxy::iPlature::EventReceiver::begin_unregist.
|
||
|
|
* Create a wrapper instance by calling ::iPlature::newCallback_EventReceiver_unregist.
|
||
|
|
*/
|
||
|
|
template<class T, typename CT>
|
||
|
|
class Callback_EventReceiver_unregist : public Callback_EventReceiver_unregist_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_EventReceiver_unregist(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
|
||
|
|
{
|
||
|
|
EventReceiverPrx proxy = EventReceiverPrx::uncheckedCast(result->getProxy());
|
||
|
|
::Ice::Int ret;
|
||
|
|
try
|
||
|
|
{
|
||
|
|
ret = proxy->end_unregist(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::iPlature::EventReceiver::begin_unregist.
|
||
|
|
*/
|
||
|
|
template<class T, typename CT> Callback_EventReceiver_unregistPtr
|
||
|
|
newCallback_EventReceiver_unregist(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_EventReceiver_unregist<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::iPlature::EventReceiver::begin_unregist.
|
||
|
|
*/
|
||
|
|
template<class T, typename CT> Callback_EventReceiver_unregistPtr
|
||
|
|
newCallback_EventReceiver_unregist(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_EventReceiver_unregist<T, CT>(instance, cb, excb, sentcb);
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#include <IceUtil/PopDisableWarnings.h>
|
||
|
|
#endif
|