// ********************************************************************** // // 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 // // // // Generated from file `VptServer.ice' // // Warning: do not edit this file. // // // #ifndef __VptServer_h__ #define __VptServer_h__ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #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 VptDetect { class VptDetectServer; class VptDetectServerPrx; } namespace VptDetect { struct RECT { float left; float top; float width; float height; std::tuple ice_tuple() const { return std::tie(left, top, width, height); } }; struct ClassfyObjRes { int res_index; float res_prob; std::tuple ice_tuple() const { return std::tie(res_index, res_prob); } }; using ResObjs = ::std::vector<::VptDetect::ClassfyObjRes>; struct PersonDetectRes { ::VptDetect::ResObjs res_objs; std::tuple ice_tuple() const { return std::tie(res_objs); } }; struct PerRideCarDetectRes { ::VptDetect::ResObjs res_objs; std::tuple ice_tuple() const { return std::tie(res_objs); } }; struct CarDetectRes { ::std::string vehicle_brand; ::std::string vehicle_subbrand; ::std::string vehicle_issue_year; ::std::string vehicle_type; ::std::string freight_ton; float vehicle_score; int colorLabel; float colorLabelProb; ::VptDetect::RECT carPlateRect; float carPlateRectScore; ::std::string carPlate; float carPlateScore; int carPlatetype; std::tuple ice_tuple() const { return std::tie(vehicle_brand, vehicle_subbrand, vehicle_issue_year, vehicle_type, freight_ton, vehicle_score, colorLabel, colorLabelProb, carPlateRect, carPlateRectScore, carPlate, carPlateScore, carPlatetype); } }; struct VptDetectResult { int sdkDetectType; ::VptDetect::RECT bskRect; ::VptDetect::PersonDetectRes personDetectRes; ::VptDetect::PerRideCarDetectRes perRideCarDetectRes; ::VptDetect::CarDetectRes carDetectRes; std::tuple ice_tuple() const { return std::tie(sdkDetectType, bskRect, personDetectRes, perRideCarDetectRes, carDetectRes); } }; using ObjInfos = ::std::vector<::VptDetect::VptDetectResult>; using stringData = ::std::vector<::std::string>; using stringDatas = ::std::vector<::VptDetect::stringData>; using Ice::operator<; using Ice::operator<=; using Ice::operator>; using Ice::operator>=; using Ice::operator==; using Ice::operator!=; } namespace VptDetect { class VptDetectServer : public virtual ::Ice::Object { public: using ProxyType = VptDetectServerPrx; 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 ::VptDetect::ObjInfos VptDetect(int, int, ::std::string, const ::Ice::Current&) = 0; bool _iceD_VptDetect(::IceInternal::Incoming&, const ::Ice::Current&); virtual ::VptDetect::stringDatas getStr(int, const ::Ice::Current&) = 0; bool _iceD_getStr(::IceInternal::Incoming&, const ::Ice::Current&); virtual ::VptDetect::stringData getTypeStr(const ::Ice::Current&) = 0; bool _iceD_getTypeStr(::IceInternal::Incoming&, const ::Ice::Current&); virtual ::VptDetect::stringData getColorLabel(const ::Ice::Current&) = 0; bool _iceD_getColorLabel(::IceInternal::Incoming&, const ::Ice::Current&); virtual ::VptDetect::stringDatas getHpResStr(const ::Ice::Current&) = 0; bool _iceD_getHpResStr(::IceInternal::Incoming&, const ::Ice::Current&); virtual ::VptDetect::stringDatas getHcpResStr(const ::Ice::Current&) = 0; bool _iceD_getHcpResStr(::IceInternal::Incoming&, const ::Ice::Current&); virtual bool _iceDispatch(::IceInternal::Incoming&, const ::Ice::Current&) override; }; } namespace VptDetect { class VptDetectServerPrx : public virtual ::Ice::Proxy { public: ::VptDetect::ObjInfos VptDetect(int iceP_width, int iceP_height, const ::std::string& iceP_shareMemory, const ::Ice::Context& context = Ice::noExplicitContext) { return _makePromiseOutgoing<::VptDetect::ObjInfos>(true, this, &VptDetect::VptDetectServerPrx::_iceI_VptDetect, iceP_width, iceP_height, iceP_shareMemory, context).get(); } template class P = ::std::promise> auto VptDetectAsync(int iceP_width, int iceP_height, const ::std::string& iceP_shareMemory, const ::Ice::Context& context = Ice::noExplicitContext) -> decltype(::std::declval>().get_future()) { return _makePromiseOutgoing<::VptDetect::ObjInfos, P>(false, this, &VptDetect::VptDetectServerPrx::_iceI_VptDetect, iceP_width, iceP_height, iceP_shareMemory, context); } ::std::function VptDetectAsync(int iceP_width, int iceP_height, const ::std::string& iceP_shareMemory, ::std::function response, ::std::function ex = nullptr, ::std::function sent = nullptr, const ::Ice::Context& context = Ice::noExplicitContext) { return _makeLamdaOutgoing<::VptDetect::ObjInfos>(response, ex, sent, this, &VptDetect::VptDetectServerPrx::_iceI_VptDetect, iceP_width, iceP_height, iceP_shareMemory, context); } void _iceI_VptDetect(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::VptDetect::ObjInfos>>&, int, int, const ::std::string&, const ::Ice::Context&); ::VptDetect::stringDatas getStr(int iceP_type, const ::Ice::Context& context = Ice::noExplicitContext) { return _makePromiseOutgoing<::VptDetect::stringDatas>(true, this, &VptDetect::VptDetectServerPrx::_iceI_getStr, iceP_type, context).get(); } template class P = ::std::promise> auto getStrAsync(int iceP_type, const ::Ice::Context& context = Ice::noExplicitContext) -> decltype(::std::declval>().get_future()) { return _makePromiseOutgoing<::VptDetect::stringDatas, P>(false, this, &VptDetect::VptDetectServerPrx::_iceI_getStr, iceP_type, context); } ::std::function getStrAsync(int iceP_type, ::std::function response, ::std::function ex = nullptr, ::std::function sent = nullptr, const ::Ice::Context& context = Ice::noExplicitContext) { return _makeLamdaOutgoing<::VptDetect::stringDatas>(response, ex, sent, this, &VptDetect::VptDetectServerPrx::_iceI_getStr, iceP_type, context); } void _iceI_getStr(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::VptDetect::stringDatas>>&, int, const ::Ice::Context&); ::VptDetect::stringData getTypeStr(const ::Ice::Context& context = Ice::noExplicitContext) { return _makePromiseOutgoing<::VptDetect::stringData>(true, this, &VptDetect::VptDetectServerPrx::_iceI_getTypeStr, context).get(); } template class P = ::std::promise> auto getTypeStrAsync(const ::Ice::Context& context = Ice::noExplicitContext) -> decltype(::std::declval>().get_future()) { return _makePromiseOutgoing<::VptDetect::stringData, P>(false, this, &VptDetect::VptDetectServerPrx::_iceI_getTypeStr, context); } ::std::function getTypeStrAsync(::std::function response, ::std::function ex = nullptr, ::std::function sent = nullptr, const ::Ice::Context& context = Ice::noExplicitContext) { return _makeLamdaOutgoing<::VptDetect::stringData>(response, ex, sent, this, &VptDetect::VptDetectServerPrx::_iceI_getTypeStr, context); } void _iceI_getTypeStr(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::VptDetect::stringData>>&, const ::Ice::Context&); ::VptDetect::stringData getColorLabel(const ::Ice::Context& context = Ice::noExplicitContext) { return _makePromiseOutgoing<::VptDetect::stringData>(true, this, &VptDetect::VptDetectServerPrx::_iceI_getColorLabel, context).get(); } template class P = ::std::promise> auto getColorLabelAsync(const ::Ice::Context& context = Ice::noExplicitContext) -> decltype(::std::declval>().get_future()) { return _makePromiseOutgoing<::VptDetect::stringData, P>(false, this, &VptDetect::VptDetectServerPrx::_iceI_getColorLabel, context); } ::std::function getColorLabelAsync(::std::function response, ::std::function ex = nullptr, ::std::function sent = nullptr, const ::Ice::Context& context = Ice::noExplicitContext) { return _makeLamdaOutgoing<::VptDetect::stringData>(response, ex, sent, this, &VptDetect::VptDetectServerPrx::_iceI_getColorLabel, context); } void _iceI_getColorLabel(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::VptDetect::stringData>>&, const ::Ice::Context&); ::VptDetect::stringDatas getHpResStr(const ::Ice::Context& context = Ice::noExplicitContext) { return _makePromiseOutgoing<::VptDetect::stringDatas>(true, this, &VptDetect::VptDetectServerPrx::_iceI_getHpResStr, context).get(); } template class P = ::std::promise> auto getHpResStrAsync(const ::Ice::Context& context = Ice::noExplicitContext) -> decltype(::std::declval>().get_future()) { return _makePromiseOutgoing<::VptDetect::stringDatas, P>(false, this, &VptDetect::VptDetectServerPrx::_iceI_getHpResStr, context); } ::std::function getHpResStrAsync(::std::function response, ::std::function ex = nullptr, ::std::function sent = nullptr, const ::Ice::Context& context = Ice::noExplicitContext) { return _makeLamdaOutgoing<::VptDetect::stringDatas>(response, ex, sent, this, &VptDetect::VptDetectServerPrx::_iceI_getHpResStr, context); } void _iceI_getHpResStr(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::VptDetect::stringDatas>>&, const ::Ice::Context&); ::VptDetect::stringDatas getHcpResStr(const ::Ice::Context& context = Ice::noExplicitContext) { return _makePromiseOutgoing<::VptDetect::stringDatas>(true, this, &VptDetect::VptDetectServerPrx::_iceI_getHcpResStr, context).get(); } template class P = ::std::promise> auto getHcpResStrAsync(const ::Ice::Context& context = Ice::noExplicitContext) -> decltype(::std::declval>().get_future()) { return _makePromiseOutgoing<::VptDetect::stringDatas, P>(false, this, &VptDetect::VptDetectServerPrx::_iceI_getHcpResStr, context); } ::std::function getHcpResStrAsync(::std::function response, ::std::function ex = nullptr, ::std::function sent = nullptr, const ::Ice::Context& context = Ice::noExplicitContext) { return _makeLamdaOutgoing<::VptDetect::stringDatas>(response, ex, sent, this, &VptDetect::VptDetectServerPrx::_iceI_getHcpResStr, context); } void _iceI_getHcpResStr(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::VptDetect::stringDatas>>&, const ::Ice::Context&); static const ::std::string& ice_staticId(); protected: VptDetectServerPrx() = default; friend ::std::shared_ptr IceInternal::createProxy(); virtual ::std::shared_ptr<::Ice::ObjectPrx> _newInstance() const override; }; } namespace Ice { template<> struct StreamableTraits<::VptDetect::RECT> { static const StreamHelperCategory helper = StreamHelperCategoryStruct; static const int minWireSize = 16; static const bool fixedLength = true; }; template struct StreamReader<::VptDetect::RECT, S> { static void read(S* istr, ::VptDetect::RECT& v) { istr->readAll(v.left, v.top, v.width, v.height); } }; template<> struct StreamableTraits<::VptDetect::ClassfyObjRes> { static const StreamHelperCategory helper = StreamHelperCategoryStruct; static const int minWireSize = 8; static const bool fixedLength = true; }; template struct StreamReader<::VptDetect::ClassfyObjRes, S> { static void read(S* istr, ::VptDetect::ClassfyObjRes& v) { istr->readAll(v.res_index, v.res_prob); } }; template<> struct StreamableTraits<::VptDetect::PersonDetectRes> { static const StreamHelperCategory helper = StreamHelperCategoryStruct; static const int minWireSize = 1; static const bool fixedLength = false; }; template struct StreamReader<::VptDetect::PersonDetectRes, S> { static void read(S* istr, ::VptDetect::PersonDetectRes& v) { istr->readAll(v.res_objs); } }; template<> struct StreamableTraits<::VptDetect::PerRideCarDetectRes> { static const StreamHelperCategory helper = StreamHelperCategoryStruct; static const int minWireSize = 1; static const bool fixedLength = false; }; template struct StreamReader<::VptDetect::PerRideCarDetectRes, S> { static void read(S* istr, ::VptDetect::PerRideCarDetectRes& v) { istr->readAll(v.res_objs); } }; template<> struct StreamableTraits<::VptDetect::CarDetectRes> { static const StreamHelperCategory helper = StreamHelperCategoryStruct; static const int minWireSize = 46; static const bool fixedLength = false; }; template struct StreamReader<::VptDetect::CarDetectRes, S> { static void read(S* istr, ::VptDetect::CarDetectRes& v) { istr->readAll(v.vehicle_brand, v.vehicle_subbrand, v.vehicle_issue_year, v.vehicle_type, v.freight_ton, v.vehicle_score, v.colorLabel, v.colorLabelProb, v.carPlateRect, v.carPlateRectScore, v.carPlate, v.carPlateScore, v.carPlatetype); } }; template<> struct StreamableTraits<::VptDetect::VptDetectResult> { static const StreamHelperCategory helper = StreamHelperCategoryStruct; static const int minWireSize = 68; static const bool fixedLength = false; }; template struct StreamReader<::VptDetect::VptDetectResult, S> { static void read(S* istr, ::VptDetect::VptDetectResult& v) { istr->readAll(v.sdkDetectType, v.bskRect, v.personDetectRes, v.perRideCarDetectRes, v.carDetectRes); } }; } namespace VptDetect { using VptDetectServerPtr = ::std::shared_ptr; using VptDetectServerPrxPtr = ::std::shared_ptr; } #else // C++98 mapping namespace IceProxy { namespace VptDetect { class VptDetectServer; void _readProxy(::Ice::InputStream*, ::IceInternal::ProxyHandle< ::IceProxy::VptDetect::VptDetectServer>&); ::IceProxy::Ice::Object* upCast(::IceProxy::VptDetect::VptDetectServer*); } } namespace VptDetect { class VptDetectServer; ::Ice::Object* upCast(::VptDetect::VptDetectServer*); typedef ::IceInternal::Handle< ::VptDetect::VptDetectServer> VptDetectServerPtr; typedef ::IceInternal::ProxyHandle< ::IceProxy::VptDetect::VptDetectServer> VptDetectServerPrx; typedef VptDetectServerPrx VptDetectServerPrxPtr; void _icePatchObjectPtr(VptDetectServerPtr&, const ::Ice::ObjectPtr&); } namespace VptDetect { struct RECT { ::Ice::Float left; ::Ice::Float top; ::Ice::Float width; ::Ice::Float height; }; struct ClassfyObjRes { ::Ice::Int res_index; ::Ice::Float res_prob; }; typedef ::std::vector< ::VptDetect::ClassfyObjRes> ResObjs; struct PersonDetectRes { ::VptDetect::ResObjs res_objs; }; struct PerRideCarDetectRes { ::VptDetect::ResObjs res_objs; }; struct CarDetectRes { ::std::string vehicle_brand; ::std::string vehicle_subbrand; ::std::string vehicle_issue_year; ::std::string vehicle_type; ::std::string freight_ton; ::Ice::Float vehicle_score; ::Ice::Int colorLabel; ::Ice::Float colorLabelProb; ::VptDetect::RECT carPlateRect; ::Ice::Float carPlateRectScore; ::std::string carPlate; ::Ice::Float carPlateScore; ::Ice::Int carPlatetype; }; struct VptDetectResult { ::Ice::Int sdkDetectType; ::VptDetect::RECT bskRect; ::VptDetect::PersonDetectRes personDetectRes; ::VptDetect::PerRideCarDetectRes perRideCarDetectRes; ::VptDetect::CarDetectRes carDetectRes; }; typedef ::std::vector< ::VptDetect::VptDetectResult> ObjInfos; typedef ::std::vector< ::std::string> stringData; typedef ::std::vector< ::VptDetect::stringData> stringDatas; } namespace VptDetect { class Callback_VptDetectServer_VptDetect_Base : public virtual ::IceInternal::CallbackBase { }; typedef ::IceUtil::Handle< Callback_VptDetectServer_VptDetect_Base> Callback_VptDetectServer_VptDetectPtr; class Callback_VptDetectServer_getStr_Base : public virtual ::IceInternal::CallbackBase { }; typedef ::IceUtil::Handle< Callback_VptDetectServer_getStr_Base> Callback_VptDetectServer_getStrPtr; class Callback_VptDetectServer_getTypeStr_Base : public virtual ::IceInternal::CallbackBase { }; typedef ::IceUtil::Handle< Callback_VptDetectServer_getTypeStr_Base> Callback_VptDetectServer_getTypeStrPtr; class Callback_VptDetectServer_getColorLabel_Base : public virtual ::IceInternal::CallbackBase { }; typedef ::IceUtil::Handle< Callback_VptDetectServer_getColorLabel_Base> Callback_VptDetectServer_getColorLabelPtr; class Callback_VptDetectServer_getHpResStr_Base : public virtual ::IceInternal::CallbackBase { }; typedef ::IceUtil::Handle< Callback_VptDetectServer_getHpResStr_Base> Callback_VptDetectServer_getHpResStrPtr; class Callback_VptDetectServer_getHcpResStr_Base : public virtual ::IceInternal::CallbackBase { }; typedef ::IceUtil::Handle< Callback_VptDetectServer_getHcpResStr_Base> Callback_VptDetectServer_getHcpResStrPtr; } namespace IceProxy { namespace VptDetect { class VptDetectServer : public virtual ::Ice::Proxy { public: ::VptDetect::ObjInfos VptDetect(::Ice::Int iceP_width, ::Ice::Int iceP_height, const ::std::string& iceP_shareMemory, const ::Ice::Context& context = ::Ice::noExplicitContext) { return end_VptDetect(_iceI_begin_VptDetect(iceP_width, iceP_height, iceP_shareMemory, context, ::IceInternal::dummyCallback, 0, true)); } ::Ice::AsyncResultPtr begin_VptDetect(::Ice::Int iceP_width, ::Ice::Int iceP_height, const ::std::string& iceP_shareMemory, const ::Ice::Context& context = ::Ice::noExplicitContext) { return _iceI_begin_VptDetect(iceP_width, iceP_height, iceP_shareMemory, context, ::IceInternal::dummyCallback, 0); } ::Ice::AsyncResultPtr begin_VptDetect(::Ice::Int iceP_width, ::Ice::Int iceP_height, const ::std::string& iceP_shareMemory, const ::Ice::CallbackPtr& del, const ::Ice::LocalObjectPtr& cookie = 0) { return _iceI_begin_VptDetect(iceP_width, iceP_height, iceP_shareMemory, ::Ice::noExplicitContext, del, cookie); } ::Ice::AsyncResultPtr begin_VptDetect(::Ice::Int iceP_width, ::Ice::Int iceP_height, const ::std::string& iceP_shareMemory, const ::Ice::Context& context, const ::Ice::CallbackPtr& del, const ::Ice::LocalObjectPtr& cookie = 0) { return _iceI_begin_VptDetect(iceP_width, iceP_height, iceP_shareMemory, context, del, cookie); } ::Ice::AsyncResultPtr begin_VptDetect(::Ice::Int iceP_width, ::Ice::Int iceP_height, const ::std::string& iceP_shareMemory, const ::VptDetect::Callback_VptDetectServer_VptDetectPtr& del, const ::Ice::LocalObjectPtr& cookie = 0) { return _iceI_begin_VptDetect(iceP_width, iceP_height, iceP_shareMemory, ::Ice::noExplicitContext, del, cookie); } ::Ice::AsyncResultPtr begin_VptDetect(::Ice::Int iceP_width, ::Ice::Int iceP_height, const ::std::string& iceP_shareMemory, const ::Ice::Context& context, const ::VptDetect::Callback_VptDetectServer_VptDetectPtr& del, const ::Ice::LocalObjectPtr& cookie = 0) { return _iceI_begin_VptDetect(iceP_width, iceP_height, iceP_shareMemory, context, del, cookie); } ::VptDetect::ObjInfos end_VptDetect(const ::Ice::AsyncResultPtr&); private: ::Ice::AsyncResultPtr _iceI_begin_VptDetect(::Ice::Int, ::Ice::Int, const ::std::string&, const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0, bool sync = false); public: ::VptDetect::stringDatas getStr(::Ice::Int iceP_type, const ::Ice::Context& context = ::Ice::noExplicitContext) { return end_getStr(_iceI_begin_getStr(iceP_type, context, ::IceInternal::dummyCallback, 0, true)); } ::Ice::AsyncResultPtr begin_getStr(::Ice::Int iceP_type, const ::Ice::Context& context = ::Ice::noExplicitContext) { return _iceI_begin_getStr(iceP_type, context, ::IceInternal::dummyCallback, 0); } ::Ice::AsyncResultPtr begin_getStr(::Ice::Int iceP_type, const ::Ice::CallbackPtr& del, const ::Ice::LocalObjectPtr& cookie = 0) { return _iceI_begin_getStr(iceP_type, ::Ice::noExplicitContext, del, cookie); } ::Ice::AsyncResultPtr begin_getStr(::Ice::Int iceP_type, const ::Ice::Context& context, const ::Ice::CallbackPtr& del, const ::Ice::LocalObjectPtr& cookie = 0) { return _iceI_begin_getStr(iceP_type, context, del, cookie); } ::Ice::AsyncResultPtr begin_getStr(::Ice::Int iceP_type, const ::VptDetect::Callback_VptDetectServer_getStrPtr& del, const ::Ice::LocalObjectPtr& cookie = 0) { return _iceI_begin_getStr(iceP_type, ::Ice::noExplicitContext, del, cookie); } ::Ice::AsyncResultPtr begin_getStr(::Ice::Int iceP_type, const ::Ice::Context& context, const ::VptDetect::Callback_VptDetectServer_getStrPtr& del, const ::Ice::LocalObjectPtr& cookie = 0) { return _iceI_begin_getStr(iceP_type, context, del, cookie); } ::VptDetect::stringDatas end_getStr(const ::Ice::AsyncResultPtr&); private: ::Ice::AsyncResultPtr _iceI_begin_getStr(::Ice::Int, const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0, bool sync = false); public: ::VptDetect::stringData getTypeStr(const ::Ice::Context& context = ::Ice::noExplicitContext) { return end_getTypeStr(_iceI_begin_getTypeStr(context, ::IceInternal::dummyCallback, 0, true)); } ::Ice::AsyncResultPtr begin_getTypeStr(const ::Ice::Context& context = ::Ice::noExplicitContext) { return _iceI_begin_getTypeStr(context, ::IceInternal::dummyCallback, 0); } ::Ice::AsyncResultPtr begin_getTypeStr(const ::Ice::CallbackPtr& del, const ::Ice::LocalObjectPtr& cookie = 0) { return _iceI_begin_getTypeStr(::Ice::noExplicitContext, del, cookie); } ::Ice::AsyncResultPtr begin_getTypeStr(const ::Ice::Context& context, const ::Ice::CallbackPtr& del, const ::Ice::LocalObjectPtr& cookie = 0) { return _iceI_begin_getTypeStr(context, del, cookie); } ::Ice::AsyncResultPtr begin_getTypeStr(const ::VptDetect::Callback_VptDetectServer_getTypeStrPtr& del, const ::Ice::LocalObjectPtr& cookie = 0) { return _iceI_begin_getTypeStr(::Ice::noExplicitContext, del, cookie); } ::Ice::AsyncResultPtr begin_getTypeStr(const ::Ice::Context& context, const ::VptDetect::Callback_VptDetectServer_getTypeStrPtr& del, const ::Ice::LocalObjectPtr& cookie = 0) { return _iceI_begin_getTypeStr(context, del, cookie); } ::VptDetect::stringData end_getTypeStr(const ::Ice::AsyncResultPtr&); private: ::Ice::AsyncResultPtr _iceI_begin_getTypeStr(const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0, bool sync = false); public: ::VptDetect::stringData getColorLabel(const ::Ice::Context& context = ::Ice::noExplicitContext) { return end_getColorLabel(_iceI_begin_getColorLabel(context, ::IceInternal::dummyCallback, 0, true)); } ::Ice::AsyncResultPtr begin_getColorLabel(const ::Ice::Context& context = ::Ice::noExplicitContext) { return _iceI_begin_getColorLabel(context, ::IceInternal::dummyCallback, 0); } ::Ice::AsyncResultPtr begin_getColorLabel(const ::Ice::CallbackPtr& del, const ::Ice::LocalObjectPtr& cookie = 0) { return _iceI_begin_getColorLabel(::Ice::noExplicitContext, del, cookie); } ::Ice::AsyncResultPtr begin_getColorLabel(const ::Ice::Context& context, const ::Ice::CallbackPtr& del, const ::Ice::LocalObjectPtr& cookie = 0) { return _iceI_begin_getColorLabel(context, del, cookie); } ::Ice::AsyncResultPtr begin_getColorLabel(const ::VptDetect::Callback_VptDetectServer_getColorLabelPtr& del, const ::Ice::LocalObjectPtr& cookie = 0) { return _iceI_begin_getColorLabel(::Ice::noExplicitContext, del, cookie); } ::Ice::AsyncResultPtr begin_getColorLabel(const ::Ice::Context& context, const ::VptDetect::Callback_VptDetectServer_getColorLabelPtr& del, const ::Ice::LocalObjectPtr& cookie = 0) { return _iceI_begin_getColorLabel(context, del, cookie); } ::VptDetect::stringData end_getColorLabel(const ::Ice::AsyncResultPtr&); private: ::Ice::AsyncResultPtr _iceI_begin_getColorLabel(const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0, bool sync = false); public: ::VptDetect::stringDatas getHpResStr(const ::Ice::Context& context = ::Ice::noExplicitContext) { return end_getHpResStr(_iceI_begin_getHpResStr(context, ::IceInternal::dummyCallback, 0, true)); } ::Ice::AsyncResultPtr begin_getHpResStr(const ::Ice::Context& context = ::Ice::noExplicitContext) { return _iceI_begin_getHpResStr(context, ::IceInternal::dummyCallback, 0); } ::Ice::AsyncResultPtr begin_getHpResStr(const ::Ice::CallbackPtr& del, const ::Ice::LocalObjectPtr& cookie = 0) { return _iceI_begin_getHpResStr(::Ice::noExplicitContext, del, cookie); } ::Ice::AsyncResultPtr begin_getHpResStr(const ::Ice::Context& context, const ::Ice::CallbackPtr& del, const ::Ice::LocalObjectPtr& cookie = 0) { return _iceI_begin_getHpResStr(context, del, cookie); } ::Ice::AsyncResultPtr begin_getHpResStr(const ::VptDetect::Callback_VptDetectServer_getHpResStrPtr& del, const ::Ice::LocalObjectPtr& cookie = 0) { return _iceI_begin_getHpResStr(::Ice::noExplicitContext, del, cookie); } ::Ice::AsyncResultPtr begin_getHpResStr(const ::Ice::Context& context, const ::VptDetect::Callback_VptDetectServer_getHpResStrPtr& del, const ::Ice::LocalObjectPtr& cookie = 0) { return _iceI_begin_getHpResStr(context, del, cookie); } ::VptDetect::stringDatas end_getHpResStr(const ::Ice::AsyncResultPtr&); private: ::Ice::AsyncResultPtr _iceI_begin_getHpResStr(const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0, bool sync = false); public: ::VptDetect::stringDatas getHcpResStr(const ::Ice::Context& context = ::Ice::noExplicitContext) { return end_getHcpResStr(_iceI_begin_getHcpResStr(context, ::IceInternal::dummyCallback, 0, true)); } ::Ice::AsyncResultPtr begin_getHcpResStr(const ::Ice::Context& context = ::Ice::noExplicitContext) { return _iceI_begin_getHcpResStr(context, ::IceInternal::dummyCallback, 0); } ::Ice::AsyncResultPtr begin_getHcpResStr(const ::Ice::CallbackPtr& del, const ::Ice::LocalObjectPtr& cookie = 0) { return _iceI_begin_getHcpResStr(::Ice::noExplicitContext, del, cookie); } ::Ice::AsyncResultPtr begin_getHcpResStr(const ::Ice::Context& context, const ::Ice::CallbackPtr& del, const ::Ice::LocalObjectPtr& cookie = 0) { return _iceI_begin_getHcpResStr(context, del, cookie); } ::Ice::AsyncResultPtr begin_getHcpResStr(const ::VptDetect::Callback_VptDetectServer_getHcpResStrPtr& del, const ::Ice::LocalObjectPtr& cookie = 0) { return _iceI_begin_getHcpResStr(::Ice::noExplicitContext, del, cookie); } ::Ice::AsyncResultPtr begin_getHcpResStr(const ::Ice::Context& context, const ::VptDetect::Callback_VptDetectServer_getHcpResStrPtr& del, const ::Ice::LocalObjectPtr& cookie = 0) { return _iceI_begin_getHcpResStr(context, del, cookie); } ::VptDetect::stringDatas end_getHcpResStr(const ::Ice::AsyncResultPtr&); private: ::Ice::AsyncResultPtr _iceI_begin_getHcpResStr(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 VptDetect { class VptDetectServer : public virtual ::Ice::Object { public: typedef VptDetectServerPrx ProxyType; typedef VptDetectServerPtr PointerType; virtual ~VptDetectServer(); 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 ::VptDetect::ObjInfos VptDetect(::Ice::Int, ::Ice::Int, const ::std::string&, const ::Ice::Current& = ::Ice::emptyCurrent) = 0; bool _iceD_VptDetect(::IceInternal::Incoming&, const ::Ice::Current&); virtual ::VptDetect::stringDatas getStr(::Ice::Int, const ::Ice::Current& = ::Ice::emptyCurrent) = 0; bool _iceD_getStr(::IceInternal::Incoming&, const ::Ice::Current&); virtual ::VptDetect::stringData getTypeStr(const ::Ice::Current& = ::Ice::emptyCurrent) = 0; bool _iceD_getTypeStr(::IceInternal::Incoming&, const ::Ice::Current&); virtual ::VptDetect::stringData getColorLabel(const ::Ice::Current& = ::Ice::emptyCurrent) = 0; bool _iceD_getColorLabel(::IceInternal::Incoming&, const ::Ice::Current&); virtual ::VptDetect::stringDatas getHpResStr(const ::Ice::Current& = ::Ice::emptyCurrent) = 0; bool _iceD_getHpResStr(::IceInternal::Incoming&, const ::Ice::Current&); virtual ::VptDetect::stringDatas getHcpResStr(const ::Ice::Current& = ::Ice::emptyCurrent) = 0; bool _iceD_getHcpResStr(::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 VptDetectServer& lhs, const VptDetectServer& rhs) { return static_cast(lhs) == static_cast(rhs); } inline bool operator<(const VptDetectServer& lhs, const VptDetectServer& rhs) { return static_cast(lhs) < static_cast(rhs); } } namespace Ice { template<> struct StreamableTraits< ::VptDetect::RECT> { static const StreamHelperCategory helper = StreamHelperCategoryStruct; static const int minWireSize = 16; static const bool fixedLength = true; }; template struct StreamWriter< ::VptDetect::RECT, S> { static void write(S* ostr, const ::VptDetect::RECT& v) { ostr->write(v.left); ostr->write(v.top); ostr->write(v.width); ostr->write(v.height); } }; template struct StreamReader< ::VptDetect::RECT, S> { static void read(S* istr, ::VptDetect::RECT& v) { istr->read(v.left); istr->read(v.top); istr->read(v.width); istr->read(v.height); } }; template<> struct StreamableTraits< ::VptDetect::ClassfyObjRes> { static const StreamHelperCategory helper = StreamHelperCategoryStruct; static const int minWireSize = 8; static const bool fixedLength = true; }; template struct StreamWriter< ::VptDetect::ClassfyObjRes, S> { static void write(S* ostr, const ::VptDetect::ClassfyObjRes& v) { ostr->write(v.res_index); ostr->write(v.res_prob); } }; template struct StreamReader< ::VptDetect::ClassfyObjRes, S> { static void read(S* istr, ::VptDetect::ClassfyObjRes& v) { istr->read(v.res_index); istr->read(v.res_prob); } }; template<> struct StreamableTraits< ::VptDetect::PersonDetectRes> { static const StreamHelperCategory helper = StreamHelperCategoryStruct; static const int minWireSize = 1; static const bool fixedLength = false; }; template struct StreamWriter< ::VptDetect::PersonDetectRes, S> { static void write(S* ostr, const ::VptDetect::PersonDetectRes& v) { ostr->write(v.res_objs); } }; template struct StreamReader< ::VptDetect::PersonDetectRes, S> { static void read(S* istr, ::VptDetect::PersonDetectRes& v) { istr->read(v.res_objs); } }; template<> struct StreamableTraits< ::VptDetect::PerRideCarDetectRes> { static const StreamHelperCategory helper = StreamHelperCategoryStruct; static const int minWireSize = 1; static const bool fixedLength = false; }; template struct StreamWriter< ::VptDetect::PerRideCarDetectRes, S> { static void write(S* ostr, const ::VptDetect::PerRideCarDetectRes& v) { ostr->write(v.res_objs); } }; template struct StreamReader< ::VptDetect::PerRideCarDetectRes, S> { static void read(S* istr, ::VptDetect::PerRideCarDetectRes& v) { istr->read(v.res_objs); } }; template<> struct StreamableTraits< ::VptDetect::CarDetectRes> { static const StreamHelperCategory helper = StreamHelperCategoryStruct; static const int minWireSize = 46; static const bool fixedLength = false; }; template struct StreamWriter< ::VptDetect::CarDetectRes, S> { static void write(S* ostr, const ::VptDetect::CarDetectRes& v) { ostr->write(v.vehicle_brand); ostr->write(v.vehicle_subbrand); ostr->write(v.vehicle_issue_year); ostr->write(v.vehicle_type); ostr->write(v.freight_ton); ostr->write(v.vehicle_score); ostr->write(v.colorLabel); ostr->write(v.colorLabelProb); ostr->write(v.carPlateRect); ostr->write(v.carPlateRectScore); ostr->write(v.carPlate); ostr->write(v.carPlateScore); ostr->write(v.carPlatetype); } }; template struct StreamReader< ::VptDetect::CarDetectRes, S> { static void read(S* istr, ::VptDetect::CarDetectRes& v) { istr->read(v.vehicle_brand); istr->read(v.vehicle_subbrand); istr->read(v.vehicle_issue_year); istr->read(v.vehicle_type); istr->read(v.freight_ton); istr->read(v.vehicle_score); istr->read(v.colorLabel); istr->read(v.colorLabelProb); istr->read(v.carPlateRect); istr->read(v.carPlateRectScore); istr->read(v.carPlate); istr->read(v.carPlateScore); istr->read(v.carPlatetype); } }; template<> struct StreamableTraits< ::VptDetect::VptDetectResult> { static const StreamHelperCategory helper = StreamHelperCategoryStruct; static const int minWireSize = 68; static const bool fixedLength = false; }; template struct StreamWriter< ::VptDetect::VptDetectResult, S> { static void write(S* ostr, const ::VptDetect::VptDetectResult& v) { ostr->write(v.sdkDetectType); ostr->write(v.bskRect); ostr->write(v.personDetectRes); ostr->write(v.perRideCarDetectRes); ostr->write(v.carDetectRes); } }; template struct StreamReader< ::VptDetect::VptDetectResult, S> { static void read(S* istr, ::VptDetect::VptDetectResult& v) { istr->read(v.sdkDetectType); istr->read(v.bskRect); istr->read(v.personDetectRes); istr->read(v.perRideCarDetectRes); istr->read(v.carDetectRes); } }; } namespace VptDetect { template class CallbackNC_VptDetectServer_VptDetect : public Callback_VptDetectServer_VptDetect_Base, public ::IceInternal::TwowayCallbackNC { public: typedef IceUtil::Handle TPtr; typedef void (T::*Exception)(const ::Ice::Exception&); typedef void (T::*Sent)(bool); typedef void (T::*Response)(const ::VptDetect::ObjInfos&); CallbackNC_VptDetectServer_VptDetect(const TPtr& obj, Response cb, Exception excb, Sent sentcb) : ::IceInternal::TwowayCallbackNC(obj, cb != 0, excb, sentcb), _response(cb) { } virtual void completed(const ::Ice::AsyncResultPtr& result) const { ::VptDetect::VptDetectServerPrx proxy = ::VptDetect::VptDetectServerPrx::uncheckedCast(result->getProxy()); ::VptDetect::ObjInfos ret; try { ret = proxy->end_VptDetect(result); } catch(const ::Ice::Exception& ex) { ::IceInternal::CallbackNC::exception(result, ex); return; } if(_response) { (::IceInternal::CallbackNC::_callback.get()->*_response)(ret); } } private: Response _response; }; template Callback_VptDetectServer_VptDetectPtr newCallback_VptDetectServer_VptDetect(const IceUtil::Handle& instance, void (T::*cb)(const ::VptDetect::ObjInfos&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0) { return new CallbackNC_VptDetectServer_VptDetect(instance, cb, excb, sentcb); } template Callback_VptDetectServer_VptDetectPtr newCallback_VptDetectServer_VptDetect(T* instance, void (T::*cb)(const ::VptDetect::ObjInfos&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0) { return new CallbackNC_VptDetectServer_VptDetect(instance, cb, excb, sentcb); } template class Callback_VptDetectServer_VptDetect : public Callback_VptDetectServer_VptDetect_Base, public ::IceInternal::TwowayCallback { public: typedef IceUtil::Handle TPtr; typedef void (T::*Exception)(const ::Ice::Exception& , const CT&); typedef void (T::*Sent)(bool , const CT&); typedef void (T::*Response)(const ::VptDetect::ObjInfos&, const CT&); Callback_VptDetectServer_VptDetect(const TPtr& obj, Response cb, Exception excb, Sent sentcb) : ::IceInternal::TwowayCallback(obj, cb != 0, excb, sentcb), _response(cb) { } virtual void completed(const ::Ice::AsyncResultPtr& result) const { ::VptDetect::VptDetectServerPrx proxy = ::VptDetect::VptDetectServerPrx::uncheckedCast(result->getProxy()); ::VptDetect::ObjInfos ret; try { ret = proxy->end_VptDetect(result); } catch(const ::Ice::Exception& ex) { ::IceInternal::Callback::exception(result, ex); return; } if(_response) { (::IceInternal::Callback::_callback.get()->*_response)(ret, CT::dynamicCast(result->getCookie())); } } private: Response _response; }; template Callback_VptDetectServer_VptDetectPtr newCallback_VptDetectServer_VptDetect(const IceUtil::Handle& instance, void (T::*cb)(const ::VptDetect::ObjInfos&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0) { return new Callback_VptDetectServer_VptDetect(instance, cb, excb, sentcb); } template Callback_VptDetectServer_VptDetectPtr newCallback_VptDetectServer_VptDetect(T* instance, void (T::*cb)(const ::VptDetect::ObjInfos&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0) { return new Callback_VptDetectServer_VptDetect(instance, cb, excb, sentcb); } template class CallbackNC_VptDetectServer_getStr : public Callback_VptDetectServer_getStr_Base, public ::IceInternal::TwowayCallbackNC { public: typedef IceUtil::Handle TPtr; typedef void (T::*Exception)(const ::Ice::Exception&); typedef void (T::*Sent)(bool); typedef void (T::*Response)(const ::VptDetect::stringDatas&); CallbackNC_VptDetectServer_getStr(const TPtr& obj, Response cb, Exception excb, Sent sentcb) : ::IceInternal::TwowayCallbackNC(obj, cb != 0, excb, sentcb), _response(cb) { } virtual void completed(const ::Ice::AsyncResultPtr& result) const { ::VptDetect::VptDetectServerPrx proxy = ::VptDetect::VptDetectServerPrx::uncheckedCast(result->getProxy()); ::VptDetect::stringDatas ret; try { ret = proxy->end_getStr(result); } catch(const ::Ice::Exception& ex) { ::IceInternal::CallbackNC::exception(result, ex); return; } if(_response) { (::IceInternal::CallbackNC::_callback.get()->*_response)(ret); } } private: Response _response; }; template Callback_VptDetectServer_getStrPtr newCallback_VptDetectServer_getStr(const IceUtil::Handle& instance, void (T::*cb)(const ::VptDetect::stringDatas&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0) { return new CallbackNC_VptDetectServer_getStr(instance, cb, excb, sentcb); } template Callback_VptDetectServer_getStrPtr newCallback_VptDetectServer_getStr(T* instance, void (T::*cb)(const ::VptDetect::stringDatas&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0) { return new CallbackNC_VptDetectServer_getStr(instance, cb, excb, sentcb); } template class Callback_VptDetectServer_getStr : public Callback_VptDetectServer_getStr_Base, public ::IceInternal::TwowayCallback { public: typedef IceUtil::Handle TPtr; typedef void (T::*Exception)(const ::Ice::Exception& , const CT&); typedef void (T::*Sent)(bool , const CT&); typedef void (T::*Response)(const ::VptDetect::stringDatas&, const CT&); Callback_VptDetectServer_getStr(const TPtr& obj, Response cb, Exception excb, Sent sentcb) : ::IceInternal::TwowayCallback(obj, cb != 0, excb, sentcb), _response(cb) { } virtual void completed(const ::Ice::AsyncResultPtr& result) const { ::VptDetect::VptDetectServerPrx proxy = ::VptDetect::VptDetectServerPrx::uncheckedCast(result->getProxy()); ::VptDetect::stringDatas ret; try { ret = proxy->end_getStr(result); } catch(const ::Ice::Exception& ex) { ::IceInternal::Callback::exception(result, ex); return; } if(_response) { (::IceInternal::Callback::_callback.get()->*_response)(ret, CT::dynamicCast(result->getCookie())); } } private: Response _response; }; template Callback_VptDetectServer_getStrPtr newCallback_VptDetectServer_getStr(const IceUtil::Handle& instance, void (T::*cb)(const ::VptDetect::stringDatas&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0) { return new Callback_VptDetectServer_getStr(instance, cb, excb, sentcb); } template Callback_VptDetectServer_getStrPtr newCallback_VptDetectServer_getStr(T* instance, void (T::*cb)(const ::VptDetect::stringDatas&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0) { return new Callback_VptDetectServer_getStr(instance, cb, excb, sentcb); } template class CallbackNC_VptDetectServer_getTypeStr : public Callback_VptDetectServer_getTypeStr_Base, public ::IceInternal::TwowayCallbackNC { public: typedef IceUtil::Handle TPtr; typedef void (T::*Exception)(const ::Ice::Exception&); typedef void (T::*Sent)(bool); typedef void (T::*Response)(const ::VptDetect::stringData&); CallbackNC_VptDetectServer_getTypeStr(const TPtr& obj, Response cb, Exception excb, Sent sentcb) : ::IceInternal::TwowayCallbackNC(obj, cb != 0, excb, sentcb), _response(cb) { } virtual void completed(const ::Ice::AsyncResultPtr& result) const { ::VptDetect::VptDetectServerPrx proxy = ::VptDetect::VptDetectServerPrx::uncheckedCast(result->getProxy()); ::VptDetect::stringData ret; try { ret = proxy->end_getTypeStr(result); } catch(const ::Ice::Exception& ex) { ::IceInternal::CallbackNC::exception(result, ex); return; } if(_response) { (::IceInternal::CallbackNC::_callback.get()->*_response)(ret); } } private: Response _response; }; template Callback_VptDetectServer_getTypeStrPtr newCallback_VptDetectServer_getTypeStr(const IceUtil::Handle& instance, void (T::*cb)(const ::VptDetect::stringData&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0) { return new CallbackNC_VptDetectServer_getTypeStr(instance, cb, excb, sentcb); } template Callback_VptDetectServer_getTypeStrPtr newCallback_VptDetectServer_getTypeStr(T* instance, void (T::*cb)(const ::VptDetect::stringData&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0) { return new CallbackNC_VptDetectServer_getTypeStr(instance, cb, excb, sentcb); } template class Callback_VptDetectServer_getTypeStr : public Callback_VptDetectServer_getTypeStr_Base, public ::IceInternal::TwowayCallback { public: typedef IceUtil::Handle TPtr; typedef void (T::*Exception)(const ::Ice::Exception& , const CT&); typedef void (T::*Sent)(bool , const CT&); typedef void (T::*Response)(const ::VptDetect::stringData&, const CT&); Callback_VptDetectServer_getTypeStr(const TPtr& obj, Response cb, Exception excb, Sent sentcb) : ::IceInternal::TwowayCallback(obj, cb != 0, excb, sentcb), _response(cb) { } virtual void completed(const ::Ice::AsyncResultPtr& result) const { ::VptDetect::VptDetectServerPrx proxy = ::VptDetect::VptDetectServerPrx::uncheckedCast(result->getProxy()); ::VptDetect::stringData ret; try { ret = proxy->end_getTypeStr(result); } catch(const ::Ice::Exception& ex) { ::IceInternal::Callback::exception(result, ex); return; } if(_response) { (::IceInternal::Callback::_callback.get()->*_response)(ret, CT::dynamicCast(result->getCookie())); } } private: Response _response; }; template Callback_VptDetectServer_getTypeStrPtr newCallback_VptDetectServer_getTypeStr(const IceUtil::Handle& instance, void (T::*cb)(const ::VptDetect::stringData&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0) { return new Callback_VptDetectServer_getTypeStr(instance, cb, excb, sentcb); } template Callback_VptDetectServer_getTypeStrPtr newCallback_VptDetectServer_getTypeStr(T* instance, void (T::*cb)(const ::VptDetect::stringData&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0) { return new Callback_VptDetectServer_getTypeStr(instance, cb, excb, sentcb); } template class CallbackNC_VptDetectServer_getColorLabel : public Callback_VptDetectServer_getColorLabel_Base, public ::IceInternal::TwowayCallbackNC { public: typedef IceUtil::Handle TPtr; typedef void (T::*Exception)(const ::Ice::Exception&); typedef void (T::*Sent)(bool); typedef void (T::*Response)(const ::VptDetect::stringData&); CallbackNC_VptDetectServer_getColorLabel(const TPtr& obj, Response cb, Exception excb, Sent sentcb) : ::IceInternal::TwowayCallbackNC(obj, cb != 0, excb, sentcb), _response(cb) { } virtual void completed(const ::Ice::AsyncResultPtr& result) const { ::VptDetect::VptDetectServerPrx proxy = ::VptDetect::VptDetectServerPrx::uncheckedCast(result->getProxy()); ::VptDetect::stringData ret; try { ret = proxy->end_getColorLabel(result); } catch(const ::Ice::Exception& ex) { ::IceInternal::CallbackNC::exception(result, ex); return; } if(_response) { (::IceInternal::CallbackNC::_callback.get()->*_response)(ret); } } private: Response _response; }; template Callback_VptDetectServer_getColorLabelPtr newCallback_VptDetectServer_getColorLabel(const IceUtil::Handle& instance, void (T::*cb)(const ::VptDetect::stringData&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0) { return new CallbackNC_VptDetectServer_getColorLabel(instance, cb, excb, sentcb); } template Callback_VptDetectServer_getColorLabelPtr newCallback_VptDetectServer_getColorLabel(T* instance, void (T::*cb)(const ::VptDetect::stringData&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0) { return new CallbackNC_VptDetectServer_getColorLabel(instance, cb, excb, sentcb); } template class Callback_VptDetectServer_getColorLabel : public Callback_VptDetectServer_getColorLabel_Base, public ::IceInternal::TwowayCallback { public: typedef IceUtil::Handle TPtr; typedef void (T::*Exception)(const ::Ice::Exception& , const CT&); typedef void (T::*Sent)(bool , const CT&); typedef void (T::*Response)(const ::VptDetect::stringData&, const CT&); Callback_VptDetectServer_getColorLabel(const TPtr& obj, Response cb, Exception excb, Sent sentcb) : ::IceInternal::TwowayCallback(obj, cb != 0, excb, sentcb), _response(cb) { } virtual void completed(const ::Ice::AsyncResultPtr& result) const { ::VptDetect::VptDetectServerPrx proxy = ::VptDetect::VptDetectServerPrx::uncheckedCast(result->getProxy()); ::VptDetect::stringData ret; try { ret = proxy->end_getColorLabel(result); } catch(const ::Ice::Exception& ex) { ::IceInternal::Callback::exception(result, ex); return; } if(_response) { (::IceInternal::Callback::_callback.get()->*_response)(ret, CT::dynamicCast(result->getCookie())); } } private: Response _response; }; template Callback_VptDetectServer_getColorLabelPtr newCallback_VptDetectServer_getColorLabel(const IceUtil::Handle& instance, void (T::*cb)(const ::VptDetect::stringData&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0) { return new Callback_VptDetectServer_getColorLabel(instance, cb, excb, sentcb); } template Callback_VptDetectServer_getColorLabelPtr newCallback_VptDetectServer_getColorLabel(T* instance, void (T::*cb)(const ::VptDetect::stringData&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0) { return new Callback_VptDetectServer_getColorLabel(instance, cb, excb, sentcb); } template class CallbackNC_VptDetectServer_getHpResStr : public Callback_VptDetectServer_getHpResStr_Base, public ::IceInternal::TwowayCallbackNC { public: typedef IceUtil::Handle TPtr; typedef void (T::*Exception)(const ::Ice::Exception&); typedef void (T::*Sent)(bool); typedef void (T::*Response)(const ::VptDetect::stringDatas&); CallbackNC_VptDetectServer_getHpResStr(const TPtr& obj, Response cb, Exception excb, Sent sentcb) : ::IceInternal::TwowayCallbackNC(obj, cb != 0, excb, sentcb), _response(cb) { } virtual void completed(const ::Ice::AsyncResultPtr& result) const { ::VptDetect::VptDetectServerPrx proxy = ::VptDetect::VptDetectServerPrx::uncheckedCast(result->getProxy()); ::VptDetect::stringDatas ret; try { ret = proxy->end_getHpResStr(result); } catch(const ::Ice::Exception& ex) { ::IceInternal::CallbackNC::exception(result, ex); return; } if(_response) { (::IceInternal::CallbackNC::_callback.get()->*_response)(ret); } } private: Response _response; }; template Callback_VptDetectServer_getHpResStrPtr newCallback_VptDetectServer_getHpResStr(const IceUtil::Handle& instance, void (T::*cb)(const ::VptDetect::stringDatas&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0) { return new CallbackNC_VptDetectServer_getHpResStr(instance, cb, excb, sentcb); } template Callback_VptDetectServer_getHpResStrPtr newCallback_VptDetectServer_getHpResStr(T* instance, void (T::*cb)(const ::VptDetect::stringDatas&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0) { return new CallbackNC_VptDetectServer_getHpResStr(instance, cb, excb, sentcb); } template class Callback_VptDetectServer_getHpResStr : public Callback_VptDetectServer_getHpResStr_Base, public ::IceInternal::TwowayCallback { public: typedef IceUtil::Handle TPtr; typedef void (T::*Exception)(const ::Ice::Exception& , const CT&); typedef void (T::*Sent)(bool , const CT&); typedef void (T::*Response)(const ::VptDetect::stringDatas&, const CT&); Callback_VptDetectServer_getHpResStr(const TPtr& obj, Response cb, Exception excb, Sent sentcb) : ::IceInternal::TwowayCallback(obj, cb != 0, excb, sentcb), _response(cb) { } virtual void completed(const ::Ice::AsyncResultPtr& result) const { ::VptDetect::VptDetectServerPrx proxy = ::VptDetect::VptDetectServerPrx::uncheckedCast(result->getProxy()); ::VptDetect::stringDatas ret; try { ret = proxy->end_getHpResStr(result); } catch(const ::Ice::Exception& ex) { ::IceInternal::Callback::exception(result, ex); return; } if(_response) { (::IceInternal::Callback::_callback.get()->*_response)(ret, CT::dynamicCast(result->getCookie())); } } private: Response _response; }; template Callback_VptDetectServer_getHpResStrPtr newCallback_VptDetectServer_getHpResStr(const IceUtil::Handle& instance, void (T::*cb)(const ::VptDetect::stringDatas&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0) { return new Callback_VptDetectServer_getHpResStr(instance, cb, excb, sentcb); } template Callback_VptDetectServer_getHpResStrPtr newCallback_VptDetectServer_getHpResStr(T* instance, void (T::*cb)(const ::VptDetect::stringDatas&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0) { return new Callback_VptDetectServer_getHpResStr(instance, cb, excb, sentcb); } template class CallbackNC_VptDetectServer_getHcpResStr : public Callback_VptDetectServer_getHcpResStr_Base, public ::IceInternal::TwowayCallbackNC { public: typedef IceUtil::Handle TPtr; typedef void (T::*Exception)(const ::Ice::Exception&); typedef void (T::*Sent)(bool); typedef void (T::*Response)(const ::VptDetect::stringDatas&); CallbackNC_VptDetectServer_getHcpResStr(const TPtr& obj, Response cb, Exception excb, Sent sentcb) : ::IceInternal::TwowayCallbackNC(obj, cb != 0, excb, sentcb), _response(cb) { } virtual void completed(const ::Ice::AsyncResultPtr& result) const { ::VptDetect::VptDetectServerPrx proxy = ::VptDetect::VptDetectServerPrx::uncheckedCast(result->getProxy()); ::VptDetect::stringDatas ret; try { ret = proxy->end_getHcpResStr(result); } catch(const ::Ice::Exception& ex) { ::IceInternal::CallbackNC::exception(result, ex); return; } if(_response) { (::IceInternal::CallbackNC::_callback.get()->*_response)(ret); } } private: Response _response; }; template Callback_VptDetectServer_getHcpResStrPtr newCallback_VptDetectServer_getHcpResStr(const IceUtil::Handle& instance, void (T::*cb)(const ::VptDetect::stringDatas&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0) { return new CallbackNC_VptDetectServer_getHcpResStr(instance, cb, excb, sentcb); } template Callback_VptDetectServer_getHcpResStrPtr newCallback_VptDetectServer_getHcpResStr(T* instance, void (T::*cb)(const ::VptDetect::stringDatas&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0) { return new CallbackNC_VptDetectServer_getHcpResStr(instance, cb, excb, sentcb); } template class Callback_VptDetectServer_getHcpResStr : public Callback_VptDetectServer_getHcpResStr_Base, public ::IceInternal::TwowayCallback { public: typedef IceUtil::Handle TPtr; typedef void (T::*Exception)(const ::Ice::Exception& , const CT&); typedef void (T::*Sent)(bool , const CT&); typedef void (T::*Response)(const ::VptDetect::stringDatas&, const CT&); Callback_VptDetectServer_getHcpResStr(const TPtr& obj, Response cb, Exception excb, Sent sentcb) : ::IceInternal::TwowayCallback(obj, cb != 0, excb, sentcb), _response(cb) { } virtual void completed(const ::Ice::AsyncResultPtr& result) const { ::VptDetect::VptDetectServerPrx proxy = ::VptDetect::VptDetectServerPrx::uncheckedCast(result->getProxy()); ::VptDetect::stringDatas ret; try { ret = proxy->end_getHcpResStr(result); } catch(const ::Ice::Exception& ex) { ::IceInternal::Callback::exception(result, ex); return; } if(_response) { (::IceInternal::Callback::_callback.get()->*_response)(ret, CT::dynamicCast(result->getCookie())); } } private: Response _response; }; template Callback_VptDetectServer_getHcpResStrPtr newCallback_VptDetectServer_getHcpResStr(const IceUtil::Handle& instance, void (T::*cb)(const ::VptDetect::stringDatas&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0) { return new Callback_VptDetectServer_getHcpResStr(instance, cb, excb, sentcb); } template Callback_VptDetectServer_getHcpResStrPtr newCallback_VptDetectServer_getHcpResStr(T* instance, void (T::*cb)(const ::VptDetect::stringDatas&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0) { return new Callback_VptDetectServer_getHcpResStr(instance, cb, excb, sentcb); } } #endif #include #endif