// **********************************************************************
|
//
|
// Copyright (c) 2003-2017 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.0
|
//
|
// <auto-generated>
|
//
|
// Generated from file `FaceSearchServer.ice'
|
//
|
// Warning: do not edit this file.
|
//
|
// </auto-generated>
|
//
|
|
#ifndef __FaceSearchServer_h__
|
#define __FaceSearchServer_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 <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 < 0
|
# error Ice patch level mismatch!
|
# endif
|
#endif
|
|
#ifdef ICE_CPP11_MAPPING // C++11 mapping
|
|
namespace FaceSearch
|
{
|
|
class FaceFeatureSearchServer;
|
class FaceFeatureSearchServerPrx;
|
|
}
|
|
namespace FaceSearch
|
{
|
|
using Data = ::std::vector<::Ice::Byte>;
|
|
struct FaceResult
|
{
|
long long int id;
|
::std::string uuid;
|
::std::string tableName;
|
float confidence;
|
::std::string imgUrl;
|
::std::string idcard;
|
::std::string alarmRet;
|
|
std::tuple<const long long int&, const ::std::string&, const ::std::string&, const float&, const ::std::string&, const ::std::string&, const ::std::string&> ice_tuple() const
|
{
|
return std::tie(id, uuid, tableName, confidence, imgUrl, idcard, alarmRet);
|
}
|
};
|
|
using FaceResults = ::std::vector<::FaceSearch::FaceResult>;
|
|
using Ice::operator<;
|
using Ice::operator<=;
|
using Ice::operator>;
|
using Ice::operator>=;
|
using Ice::operator==;
|
using Ice::operator!=;
|
|
}
|
|
namespace FaceSearch
|
{
|
|
class FaceFeatureSearchServer : public virtual ::Ice::Object
|
{
|
public:
|
|
using ProxyType = FaceFeatureSearchServerPrx;
|
|
virtual bool ice_isA(::std::string, const ::Ice::Current&) const override;
|
virtual ::std::vector<::std::string> ice_ids(const ::Ice::Current&) const override;
|
virtual ::std::string ice_id(const ::Ice::Current&) const override;
|
|
static const ::std::string& ice_staticId();
|
|
virtual ::FaceSearch::FaceResults faceSearchMax(::FaceSearch::Data, ::std::string, const ::Ice::Current&) = 0;
|
bool _iceD_faceSearchMax(::IceInternal::Incoming&, const ::Ice::Current&);
|
|
virtual ::FaceSearch::FaceResults faceSearchTopN(::FaceSearch::Data, ::std::string, int, float, const ::Ice::Current&) = 0;
|
bool _iceD_faceSearchTopN(::IceInternal::Incoming&, const ::Ice::Current&);
|
|
virtual bool _iceDispatch(::IceInternal::Incoming&, const ::Ice::Current&) override;
|
};
|
|
}
|
|
namespace FaceSearch
|
{
|
|
class FaceFeatureSearchServerPrx : public virtual ::Ice::Proxy<FaceFeatureSearchServerPrx, ::Ice::ObjectPrx>
|
{
|
public:
|
|
::FaceSearch::FaceResults faceSearchMax(const ::FaceSearch::Data& iceP_feature, const ::std::string& iceP_info, const ::Ice::Context& context = Ice::noExplicitContext)
|
{
|
return _makePromiseOutgoing<::FaceSearch::FaceResults>(true, this, &FaceSearch::FaceFeatureSearchServerPrx::_iceI_faceSearchMax, iceP_feature, iceP_info, context).get();
|
}
|
|
template<template<typename> class P = ::std::promise>
|
auto faceSearchMaxAsync(const ::FaceSearch::Data& iceP_feature, const ::std::string& iceP_info, const ::Ice::Context& context = Ice::noExplicitContext)
|
-> decltype(::std::declval<P<::FaceSearch::FaceResults>>().get_future())
|
{
|
return _makePromiseOutgoing<::FaceSearch::FaceResults, P>(false, this, &FaceSearch::FaceFeatureSearchServerPrx::_iceI_faceSearchMax, iceP_feature, iceP_info, context);
|
}
|
|
::std::function<void()>
|
faceSearchMaxAsync(const ::FaceSearch::Data& iceP_feature, const ::std::string& iceP_info,
|
::std::function<void(::FaceSearch::FaceResults)> response,
|
::std::function<void(::std::exception_ptr)> ex = nullptr,
|
::std::function<void(bool)> sent = nullptr,
|
const ::Ice::Context& context = Ice::noExplicitContext)
|
{
|
return _makeLamdaOutgoing<::FaceSearch::FaceResults>(response, ex, sent, this, &FaceSearch::FaceFeatureSearchServerPrx::_iceI_faceSearchMax, iceP_feature, iceP_info, context);
|
}
|
|
void _iceI_faceSearchMax(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::FaceSearch::FaceResults>>&, const ::FaceSearch::Data&, const ::std::string&, const ::Ice::Context&);
|
|
::FaceSearch::FaceResults faceSearchTopN(const ::FaceSearch::Data& iceP_feature, const ::std::string& iceP_info, int iceP_topN, float iceP_score, const ::Ice::Context& context = Ice::noExplicitContext)
|
{
|
return _makePromiseOutgoing<::FaceSearch::FaceResults>(true, this, &FaceSearch::FaceFeatureSearchServerPrx::_iceI_faceSearchTopN, iceP_feature, iceP_info, iceP_topN, iceP_score, context).get();
|
}
|
|
template<template<typename> class P = ::std::promise>
|
auto faceSearchTopNAsync(const ::FaceSearch::Data& iceP_feature, const ::std::string& iceP_info, int iceP_topN, float iceP_score, const ::Ice::Context& context = Ice::noExplicitContext)
|
-> decltype(::std::declval<P<::FaceSearch::FaceResults>>().get_future())
|
{
|
return _makePromiseOutgoing<::FaceSearch::FaceResults, P>(false, this, &FaceSearch::FaceFeatureSearchServerPrx::_iceI_faceSearchTopN, iceP_feature, iceP_info, iceP_topN, iceP_score, context);
|
}
|
|
::std::function<void()>
|
faceSearchTopNAsync(const ::FaceSearch::Data& iceP_feature, const ::std::string& iceP_info, int iceP_topN, float iceP_score,
|
::std::function<void(::FaceSearch::FaceResults)> response,
|
::std::function<void(::std::exception_ptr)> ex = nullptr,
|
::std::function<void(bool)> sent = nullptr,
|
const ::Ice::Context& context = Ice::noExplicitContext)
|
{
|
return _makeLamdaOutgoing<::FaceSearch::FaceResults>(response, ex, sent, this, &FaceSearch::FaceFeatureSearchServerPrx::_iceI_faceSearchTopN, iceP_feature, iceP_info, iceP_topN, iceP_score, context);
|
}
|
|
void _iceI_faceSearchTopN(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::FaceSearch::FaceResults>>&, const ::FaceSearch::Data&, const ::std::string&, int, float, const ::Ice::Context&);
|
|
static const ::std::string& ice_staticId();
|
|
protected:
|
|
FaceFeatureSearchServerPrx() = default;
|
friend ::std::shared_ptr<FaceFeatureSearchServerPrx> IceInternal::createProxy<FaceFeatureSearchServerPrx>();
|
|
virtual ::std::shared_ptr<::Ice::ObjectPrx> _newInstance() const override;
|
};
|
|
}
|
|
namespace Ice
|
{
|
|
template<>
|
struct StreamableTraits<::FaceSearch::FaceResult>
|
{
|
static const StreamHelperCategory helper = StreamHelperCategoryStruct;
|
static const int minWireSize = 17;
|
static const bool fixedLength = false;
|
};
|
|
template<typename S>
|
struct StreamReader<::FaceSearch::FaceResult, S>
|
{
|
static void read(S* istr, ::FaceSearch::FaceResult& v)
|
{
|
istr->readAll(v.id, v.uuid, v.tableName, v.confidence, v.imgUrl, v.idcard, v.alarmRet);
|
}
|
};
|
|
}
|
|
namespace FaceSearch
|
{
|
|
using FaceFeatureSearchServerPtr = ::std::shared_ptr<FaceFeatureSearchServer>;
|
using FaceFeatureSearchServerPrxPtr = ::std::shared_ptr<FaceFeatureSearchServerPrx>;
|
|
}
|
|
#else // C++98 mapping
|
|
namespace IceProxy
|
{
|
|
namespace FaceSearch
|
{
|
|
class FaceFeatureSearchServer;
|
void _readProxy(::Ice::InputStream*, ::IceInternal::ProxyHandle< ::IceProxy::FaceSearch::FaceFeatureSearchServer>&);
|
::IceProxy::Ice::Object* upCast(::IceProxy::FaceSearch::FaceFeatureSearchServer*);
|
|
}
|
|
}
|
|
namespace FaceSearch
|
{
|
|
class FaceFeatureSearchServer;
|
::Ice::Object* upCast(::FaceSearch::FaceFeatureSearchServer*);
|
typedef ::IceInternal::Handle< ::FaceSearch::FaceFeatureSearchServer> FaceFeatureSearchServerPtr;
|
typedef ::IceInternal::ProxyHandle< ::IceProxy::FaceSearch::FaceFeatureSearchServer> FaceFeatureSearchServerPrx;
|
typedef FaceFeatureSearchServerPrx FaceFeatureSearchServerPrxPtr;
|
void _icePatchObjectPtr(FaceFeatureSearchServerPtr&, const ::Ice::ObjectPtr&);
|
|
}
|
|
namespace FaceSearch
|
{
|
|
typedef ::std::vector< ::Ice::Byte> Data;
|
|
struct FaceResult
|
{
|
::Ice::Long id;
|
::std::string uuid;
|
::std::string tableName;
|
::Ice::Float confidence;
|
::std::string imgUrl;
|
::std::string idcard;
|
::std::string alarmRet;
|
};
|
|
typedef ::std::vector< ::FaceSearch::FaceResult> FaceResults;
|
|
}
|
|
namespace FaceSearch
|
{
|
|
class Callback_FaceFeatureSearchServer_faceSearchMax_Base : public virtual ::IceInternal::CallbackBase { };
|
typedef ::IceUtil::Handle< Callback_FaceFeatureSearchServer_faceSearchMax_Base> Callback_FaceFeatureSearchServer_faceSearchMaxPtr;
|
|
class Callback_FaceFeatureSearchServer_faceSearchTopN_Base : public virtual ::IceInternal::CallbackBase { };
|
typedef ::IceUtil::Handle< Callback_FaceFeatureSearchServer_faceSearchTopN_Base> Callback_FaceFeatureSearchServer_faceSearchTopNPtr;
|
|
}
|
|
namespace IceProxy
|
{
|
|
namespace FaceSearch
|
{
|
|
class FaceFeatureSearchServer : public virtual ::Ice::Proxy<FaceFeatureSearchServer, ::IceProxy::Ice::Object>
|
{
|
public:
|
|
::FaceSearch::FaceResults faceSearchMax(const ::FaceSearch::Data& iceP_feature, const ::std::string& iceP_info, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
{
|
return end_faceSearchMax(_iceI_begin_faceSearchMax(iceP_feature, iceP_info, context, ::IceInternal::dummyCallback, 0, true));
|
}
|
|
::Ice::AsyncResultPtr begin_faceSearchMax(const ::FaceSearch::Data& iceP_feature, const ::std::string& iceP_info, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
{
|
return _iceI_begin_faceSearchMax(iceP_feature, iceP_info, context, ::IceInternal::dummyCallback, 0);
|
}
|
|
::Ice::AsyncResultPtr begin_faceSearchMax(const ::FaceSearch::Data& iceP_feature, const ::std::string& iceP_info, const ::Ice::CallbackPtr& del, const ::Ice::LocalObjectPtr& cookie = 0)
|
{
|
return _iceI_begin_faceSearchMax(iceP_feature, iceP_info, ::Ice::noExplicitContext, del, cookie);
|
}
|
|
::Ice::AsyncResultPtr begin_faceSearchMax(const ::FaceSearch::Data& iceP_feature, const ::std::string& iceP_info, const ::Ice::Context& context, const ::Ice::CallbackPtr& del, const ::Ice::LocalObjectPtr& cookie = 0)
|
{
|
return _iceI_begin_faceSearchMax(iceP_feature, iceP_info, context, del, cookie);
|
}
|
|
::Ice::AsyncResultPtr begin_faceSearchMax(const ::FaceSearch::Data& iceP_feature, const ::std::string& iceP_info, const ::FaceSearch::Callback_FaceFeatureSearchServer_faceSearchMaxPtr& del, const ::Ice::LocalObjectPtr& cookie = 0)
|
{
|
return _iceI_begin_faceSearchMax(iceP_feature, iceP_info, ::Ice::noExplicitContext, del, cookie);
|
}
|
|
::Ice::AsyncResultPtr begin_faceSearchMax(const ::FaceSearch::Data& iceP_feature, const ::std::string& iceP_info, const ::Ice::Context& context, const ::FaceSearch::Callback_FaceFeatureSearchServer_faceSearchMaxPtr& del, const ::Ice::LocalObjectPtr& cookie = 0)
|
{
|
return _iceI_begin_faceSearchMax(iceP_feature, iceP_info, context, del, cookie);
|
}
|
|
::FaceSearch::FaceResults end_faceSearchMax(const ::Ice::AsyncResultPtr&);
|
|
private:
|
|
::Ice::AsyncResultPtr _iceI_begin_faceSearchMax(const ::FaceSearch::Data&, const ::std::string&, const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0, bool sync = false);
|
|
public:
|
|
::FaceSearch::FaceResults faceSearchTopN(const ::FaceSearch::Data& iceP_feature, const ::std::string& iceP_info, ::Ice::Int iceP_topN, ::Ice::Float iceP_score, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
{
|
return end_faceSearchTopN(_iceI_begin_faceSearchTopN(iceP_feature, iceP_info, iceP_topN, iceP_score, context, ::IceInternal::dummyCallback, 0, true));
|
}
|
|
::Ice::AsyncResultPtr begin_faceSearchTopN(const ::FaceSearch::Data& iceP_feature, const ::std::string& iceP_info, ::Ice::Int iceP_topN, ::Ice::Float iceP_score, const ::Ice::Context& context = ::Ice::noExplicitContext)
|
{
|
return _iceI_begin_faceSearchTopN(iceP_feature, iceP_info, iceP_topN, iceP_score, context, ::IceInternal::dummyCallback, 0);
|
}
|
|
::Ice::AsyncResultPtr begin_faceSearchTopN(const ::FaceSearch::Data& iceP_feature, const ::std::string& iceP_info, ::Ice::Int iceP_topN, ::Ice::Float iceP_score, const ::Ice::CallbackPtr& del, const ::Ice::LocalObjectPtr& cookie = 0)
|
{
|
return _iceI_begin_faceSearchTopN(iceP_feature, iceP_info, iceP_topN, iceP_score, ::Ice::noExplicitContext, del, cookie);
|
}
|
|
::Ice::AsyncResultPtr begin_faceSearchTopN(const ::FaceSearch::Data& iceP_feature, const ::std::string& iceP_info, ::Ice::Int iceP_topN, ::Ice::Float iceP_score, const ::Ice::Context& context, const ::Ice::CallbackPtr& del, const ::Ice::LocalObjectPtr& cookie = 0)
|
{
|
return _iceI_begin_faceSearchTopN(iceP_feature, iceP_info, iceP_topN, iceP_score, context, del, cookie);
|
}
|
|
::Ice::AsyncResultPtr begin_faceSearchTopN(const ::FaceSearch::Data& iceP_feature, const ::std::string& iceP_info, ::Ice::Int iceP_topN, ::Ice::Float iceP_score, const ::FaceSearch::Callback_FaceFeatureSearchServer_faceSearchTopNPtr& del, const ::Ice::LocalObjectPtr& cookie = 0)
|
{
|
return _iceI_begin_faceSearchTopN(iceP_feature, iceP_info, iceP_topN, iceP_score, ::Ice::noExplicitContext, del, cookie);
|
}
|
|
::Ice::AsyncResultPtr begin_faceSearchTopN(const ::FaceSearch::Data& iceP_feature, const ::std::string& iceP_info, ::Ice::Int iceP_topN, ::Ice::Float iceP_score, const ::Ice::Context& context, const ::FaceSearch::Callback_FaceFeatureSearchServer_faceSearchTopNPtr& del, const ::Ice::LocalObjectPtr& cookie = 0)
|
{
|
return _iceI_begin_faceSearchTopN(iceP_feature, iceP_info, iceP_topN, iceP_score, context, del, cookie);
|
}
|
|
::FaceSearch::FaceResults end_faceSearchTopN(const ::Ice::AsyncResultPtr&);
|
|
private:
|
|
::Ice::AsyncResultPtr _iceI_begin_faceSearchTopN(const ::FaceSearch::Data&, const ::std::string&, ::Ice::Int, ::Ice::Float, const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0, bool sync = false);
|
|
public:
|
|
static const ::std::string& ice_staticId();
|
|
protected:
|
|
virtual ::IceProxy::Ice::Object* _newInstance() const;
|
};
|
|
}
|
|
}
|
|
namespace FaceSearch
|
{
|
|
class FaceFeatureSearchServer : public virtual ::Ice::Object
|
{
|
public:
|
|
typedef FaceFeatureSearchServerPrx ProxyType;
|
typedef FaceFeatureSearchServerPtr PointerType;
|
|
virtual ~FaceFeatureSearchServer();
|
|
virtual bool ice_isA(const ::std::string&, const ::Ice::Current& = ::Ice::emptyCurrent) const;
|
virtual ::std::vector< ::std::string> ice_ids(const ::Ice::Current& = ::Ice::emptyCurrent) const;
|
virtual const ::std::string& ice_id(const ::Ice::Current& = ::Ice::emptyCurrent) const;
|
|
static const ::std::string& ice_staticId();
|
|
virtual ::FaceSearch::FaceResults faceSearchMax(const ::FaceSearch::Data&, const ::std::string&, const ::Ice::Current& = ::Ice::emptyCurrent) = 0;
|
bool _iceD_faceSearchMax(::IceInternal::Incoming&, const ::Ice::Current&);
|
|
virtual ::FaceSearch::FaceResults faceSearchTopN(const ::FaceSearch::Data&, const ::std::string&, ::Ice::Int, ::Ice::Float, const ::Ice::Current& = ::Ice::emptyCurrent) = 0;
|
bool _iceD_faceSearchTopN(::IceInternal::Incoming&, const ::Ice::Current&);
|
|
virtual bool _iceDispatch(::IceInternal::Incoming&, const ::Ice::Current&);
|
|
protected:
|
|
virtual void _iceWriteImpl(::Ice::OutputStream*) const;
|
virtual void _iceReadImpl(::Ice::InputStream*);
|
};
|
|
inline bool operator==(const FaceFeatureSearchServer& lhs, const FaceFeatureSearchServer& rhs)
|
{
|
return static_cast<const ::Ice::Object&>(lhs) == static_cast<const ::Ice::Object&>(rhs);
|
}
|
|
inline bool operator<(const FaceFeatureSearchServer& lhs, const FaceFeatureSearchServer& rhs)
|
{
|
return static_cast<const ::Ice::Object&>(lhs) < static_cast<const ::Ice::Object&>(rhs);
|
}
|
|
}
|
|
namespace Ice
|
{
|
|
template<>
|
struct StreamableTraits< ::FaceSearch::FaceResult>
|
{
|
static const StreamHelperCategory helper = StreamHelperCategoryStruct;
|
static const int minWireSize = 17;
|
static const bool fixedLength = false;
|
};
|
|
template<typename S>
|
struct StreamWriter< ::FaceSearch::FaceResult, S>
|
{
|
static void write(S* ostr, const ::FaceSearch::FaceResult& v)
|
{
|
ostr->write(v.id);
|
ostr->write(v.uuid);
|
ostr->write(v.tableName);
|
ostr->write(v.confidence);
|
ostr->write(v.imgUrl);
|
ostr->write(v.idcard);
|
ostr->write(v.alarmRet);
|
}
|
};
|
|
template<typename S>
|
struct StreamReader< ::FaceSearch::FaceResult, S>
|
{
|
static void read(S* istr, ::FaceSearch::FaceResult& v)
|
{
|
istr->read(v.id);
|
istr->read(v.uuid);
|
istr->read(v.tableName);
|
istr->read(v.confidence);
|
istr->read(v.imgUrl);
|
istr->read(v.idcard);
|
istr->read(v.alarmRet);
|
}
|
};
|
|
}
|
|
namespace FaceSearch
|
{
|
|
template<class T>
|
class CallbackNC_FaceFeatureSearchServer_faceSearchMax : public Callback_FaceFeatureSearchServer_faceSearchMax_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 ::FaceSearch::FaceResults&);
|
|
CallbackNC_FaceFeatureSearchServer_faceSearchMax(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
|
: ::IceInternal::TwowayCallbackNC<T>(obj, cb != 0, excb, sentcb), _response(cb)
|
{
|
}
|
|
virtual void completed(const ::Ice::AsyncResultPtr& result) const
|
{
|
::FaceSearch::FaceFeatureSearchServerPrx proxy = ::FaceSearch::FaceFeatureSearchServerPrx::uncheckedCast(result->getProxy());
|
::FaceSearch::FaceResults ret;
|
try
|
{
|
ret = proxy->end_faceSearchMax(result);
|
}
|
catch(const ::Ice::Exception& ex)
|
{
|
::IceInternal::CallbackNC<T>::exception(result, ex);
|
return;
|
}
|
if(_response)
|
{
|
(::IceInternal::CallbackNC<T>::_callback.get()->*_response)(ret);
|
}
|
}
|
|
private:
|
|
Response _response;
|
};
|
|
template<class T> Callback_FaceFeatureSearchServer_faceSearchMaxPtr
|
newCallback_FaceFeatureSearchServer_faceSearchMax(const IceUtil::Handle<T>& instance, void (T::*cb)(const ::FaceSearch::FaceResults&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
{
|
return new CallbackNC_FaceFeatureSearchServer_faceSearchMax<T>(instance, cb, excb, sentcb);
|
}
|
|
template<class T> Callback_FaceFeatureSearchServer_faceSearchMaxPtr
|
newCallback_FaceFeatureSearchServer_faceSearchMax(T* instance, void (T::*cb)(const ::FaceSearch::FaceResults&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
{
|
return new CallbackNC_FaceFeatureSearchServer_faceSearchMax<T>(instance, cb, excb, sentcb);
|
}
|
|
template<class T, typename CT>
|
class Callback_FaceFeatureSearchServer_faceSearchMax : public Callback_FaceFeatureSearchServer_faceSearchMax_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 ::FaceSearch::FaceResults&, const CT&);
|
|
Callback_FaceFeatureSearchServer_faceSearchMax(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
|
: ::IceInternal::TwowayCallback<T, CT>(obj, cb != 0, excb, sentcb), _response(cb)
|
{
|
}
|
|
virtual void completed(const ::Ice::AsyncResultPtr& result) const
|
{
|
::FaceSearch::FaceFeatureSearchServerPrx proxy = ::FaceSearch::FaceFeatureSearchServerPrx::uncheckedCast(result->getProxy());
|
::FaceSearch::FaceResults ret;
|
try
|
{
|
ret = proxy->end_faceSearchMax(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()));
|
}
|
}
|
|
private:
|
|
Response _response;
|
};
|
|
template<class T, typename CT> Callback_FaceFeatureSearchServer_faceSearchMaxPtr
|
newCallback_FaceFeatureSearchServer_faceSearchMax(const IceUtil::Handle<T>& instance, void (T::*cb)(const ::FaceSearch::FaceResults&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
|
{
|
return new Callback_FaceFeatureSearchServer_faceSearchMax<T, CT>(instance, cb, excb, sentcb);
|
}
|
|
template<class T, typename CT> Callback_FaceFeatureSearchServer_faceSearchMaxPtr
|
newCallback_FaceFeatureSearchServer_faceSearchMax(T* instance, void (T::*cb)(const ::FaceSearch::FaceResults&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
|
{
|
return new Callback_FaceFeatureSearchServer_faceSearchMax<T, CT>(instance, cb, excb, sentcb);
|
}
|
|
template<class T>
|
class CallbackNC_FaceFeatureSearchServer_faceSearchTopN : public Callback_FaceFeatureSearchServer_faceSearchTopN_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 ::FaceSearch::FaceResults&);
|
|
CallbackNC_FaceFeatureSearchServer_faceSearchTopN(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
|
: ::IceInternal::TwowayCallbackNC<T>(obj, cb != 0, excb, sentcb), _response(cb)
|
{
|
}
|
|
virtual void completed(const ::Ice::AsyncResultPtr& result) const
|
{
|
::FaceSearch::FaceFeatureSearchServerPrx proxy = ::FaceSearch::FaceFeatureSearchServerPrx::uncheckedCast(result->getProxy());
|
::FaceSearch::FaceResults ret;
|
try
|
{
|
ret = proxy->end_faceSearchTopN(result);
|
}
|
catch(const ::Ice::Exception& ex)
|
{
|
::IceInternal::CallbackNC<T>::exception(result, ex);
|
return;
|
}
|
if(_response)
|
{
|
(::IceInternal::CallbackNC<T>::_callback.get()->*_response)(ret);
|
}
|
}
|
|
private:
|
|
Response _response;
|
};
|
|
template<class T> Callback_FaceFeatureSearchServer_faceSearchTopNPtr
|
newCallback_FaceFeatureSearchServer_faceSearchTopN(const IceUtil::Handle<T>& instance, void (T::*cb)(const ::FaceSearch::FaceResults&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
{
|
return new CallbackNC_FaceFeatureSearchServer_faceSearchTopN<T>(instance, cb, excb, sentcb);
|
}
|
|
template<class T> Callback_FaceFeatureSearchServer_faceSearchTopNPtr
|
newCallback_FaceFeatureSearchServer_faceSearchTopN(T* instance, void (T::*cb)(const ::FaceSearch::FaceResults&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
|
{
|
return new CallbackNC_FaceFeatureSearchServer_faceSearchTopN<T>(instance, cb, excb, sentcb);
|
}
|
|
template<class T, typename CT>
|
class Callback_FaceFeatureSearchServer_faceSearchTopN : public Callback_FaceFeatureSearchServer_faceSearchTopN_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 ::FaceSearch::FaceResults&, const CT&);
|
|
Callback_FaceFeatureSearchServer_faceSearchTopN(const TPtr& obj, Response cb, Exception excb, Sent sentcb)
|
: ::IceInternal::TwowayCallback<T, CT>(obj, cb != 0, excb, sentcb), _response(cb)
|
{
|
}
|
|
virtual void completed(const ::Ice::AsyncResultPtr& result) const
|
{
|
::FaceSearch::FaceFeatureSearchServerPrx proxy = ::FaceSearch::FaceFeatureSearchServerPrx::uncheckedCast(result->getProxy());
|
::FaceSearch::FaceResults ret;
|
try
|
{
|
ret = proxy->end_faceSearchTopN(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()));
|
}
|
}
|
|
private:
|
|
Response _response;
|
};
|
|
template<class T, typename CT> Callback_FaceFeatureSearchServer_faceSearchTopNPtr
|
newCallback_FaceFeatureSearchServer_faceSearchTopN(const IceUtil::Handle<T>& instance, void (T::*cb)(const ::FaceSearch::FaceResults&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
|
{
|
return new Callback_FaceFeatureSearchServer_faceSearchTopN<T, CT>(instance, cb, excb, sentcb);
|
}
|
|
template<class T, typename CT> Callback_FaceFeatureSearchServer_faceSearchTopNPtr
|
newCallback_FaceFeatureSearchServer_faceSearchTopN(T* instance, void (T::*cb)(const ::FaceSearch::FaceResults&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
|
{
|
return new Callback_FaceFeatureSearchServer_faceSearchTopN<T, CT>(instance, cb, excb, sentcb);
|
}
|
|
}
|
|
#endif
|
|
#include <IceUtil/PopDisableWarnings.h>
|
#endif
|