class P = ::std::promise>
auto faceDetectAsync(int iceP_width, int iceP_height, const ::std::string& iceP_shareMemory, const ::Ice::Context& context = Ice::noExplicitContext)
-> decltype(::std::declval>().get_future())
{
return _makePromiseOutgoing<::FaceDetect::Faces, P>(false, this, &FaceDetect::FaceDetectServerPrx::_iceI_faceDetect, iceP_width, iceP_height, iceP_shareMemory, context);
}
::std::function
faceDetectAsync(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<::FaceDetect::Faces>(response, ex, sent, this, &FaceDetect::FaceDetectServerPrx::_iceI_faceDetect, iceP_width, iceP_height, iceP_shareMemory, context);
}
void _iceI_faceDetect(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::FaceDetect::Faces>>&, int, int, const ::std::string&, const ::Ice::Context&);
::FaceDetect::ThftResult faceProperty(int iceP_width, int iceP_height, const ::FaceDetect::FacePos& iceP_pos, const ::std::string& iceP_shareMemory, const ::Ice::Context& context = Ice::noExplicitContext)
{
return _makePromiseOutgoing<::FaceDetect::ThftResult>(true, this, &FaceDetect::FaceDetectServerPrx::_iceI_faceProperty, iceP_width, iceP_height, iceP_pos, iceP_shareMemory, context).get();
}
template class P = ::std::promise>
auto facePropertyAsync(int iceP_width, int iceP_height, const ::FaceDetect::FacePos& iceP_pos, const ::std::string& iceP_shareMemory, const ::Ice::Context& context = Ice::noExplicitContext)
-> decltype(::std::declval>().get_future())
{
return _makePromiseOutgoing<::FaceDetect::ThftResult, P>(false, this, &FaceDetect::FaceDetectServerPrx::_iceI_faceProperty, iceP_width, iceP_height, iceP_pos, iceP_shareMemory, context);
}
::std::function
facePropertyAsync(int iceP_width, int iceP_height, const ::FaceDetect::FacePos& iceP_pos, const ::std::string& iceP_shareMemory,
::std::function response,
::std::function ex = nullptr,
::std::function sent = nullptr,
const ::Ice::Context& context = Ice::noExplicitContext)
{
return _makeLamdaOutgoing<::FaceDetect::ThftResult>(response, ex, sent, this, &FaceDetect::FaceDetectServerPrx::_iceI_faceProperty, iceP_width, iceP_height, iceP_pos, iceP_shareMemory, context);
}
void _iceI_faceProperty(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::FaceDetect::ThftResult>>&, int, int, const ::FaceDetect::FacePos&, const ::std::string&, const ::Ice::Context&);
static const ::std::string& ice_staticId();
protected:
FaceDetectServerPrx() = default;
friend ::std::shared_ptr IceInternal::createProxy();
virtual ::std::shared_ptr<::Ice::ObjectPrx> _newInstance() const override;
};
class FaceExtractServerPrx : public virtual ::Ice::Proxy
{
public:
::FaceDetect::Data faceExtract(int iceP_width, int iceP_height, const ::FaceDetect::FacePos& iceP_pos, const ::std::string& iceP_shareMemory, const ::Ice::Context& context = Ice::noExplicitContext)
{
return _makePromiseOutgoing<::FaceDetect::Data>(true, this, &FaceDetect::FaceExtractServerPrx::_iceI_faceExtract, iceP_width, iceP_height, iceP_pos, iceP_shareMemory, context).get();
}
template class P = ::std::promise>
auto faceExtractAsync(int iceP_width, int iceP_height, const ::FaceDetect::FacePos& iceP_pos, const ::std::string& iceP_shareMemory, const ::Ice::Context& context = Ice::noExplicitContext)
-> decltype(::std::declval>().get_future())
{
return _makePromiseOutgoing<::FaceDetect::Data, P>(false, this, &FaceDetect::FaceExtractServerPrx::_iceI_faceExtract, iceP_width, iceP_height, iceP_pos, iceP_shareMemory, context);
}
::std::function
faceExtractAsync(int iceP_width, int iceP_height, const ::FaceDetect::FacePos& iceP_pos, const ::std::string& iceP_shareMemory,
::std::function response,
::std::function ex = nullptr,
::std::function sent = nullptr,
const ::Ice::Context& context = Ice::noExplicitContext)
{
return _makeLamdaOutgoing<::FaceDetect::Data>(response, ex, sent, this, &FaceDetect::FaceExtractServerPrx::_iceI_faceExtract, iceP_width, iceP_height, iceP_pos, iceP_shareMemory, context);
}
void _iceI_faceExtract(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::FaceDetect::Data>>&, int, int, const ::FaceDetect::FacePos&, const ::std::string&, const ::Ice::Context&);
static const ::std::string& ice_staticId();
protected:
FaceExtractServerPrx() = default;
friend ::std::shared_ptr IceInternal::createProxy();
virtual ::std::shared_ptr<::Ice::ObjectPrx> _newInstance() const override;
};
}
namespace Ice
{
template<>
struct StreamableTraits<::FaceDetect::POINT>
{
static const StreamHelperCategory helper = StreamHelperCategoryStruct;
static const int minWireSize = 8;
static const bool fixedLength = true;
};
template
struct StreamReader<::FaceDetect::POINT, S>
{
static void read(S* istr, ::FaceDetect::POINT& v)
{
istr->readAll(v.x, v.y);
}
};
template<>
struct StreamableTraits<::FaceDetect::RECT>
{
static const StreamHelperCategory helper = StreamHelperCategoryStruct;
static const int minWireSize = 16;
static const bool fixedLength = true;
};
template
struct StreamReader<::FaceDetect::RECT, S>
{
static void read(S* istr, ::FaceDetect::RECT& v)
{
istr->readAll(v.left, v.top, v.right, v.bottom);
}
};
template<>
struct StreamableTraits<::FaceDetect::FaceAngle>
{
static const StreamHelperCategory helper = StreamHelperCategoryStruct;
static const int minWireSize = 16;
static const bool fixedLength = true;
};
template
struct StreamReader<::FaceDetect::FaceAngle, S>
{
static void read(S* istr, ::FaceDetect::FaceAngle& v)
{
istr->readAll(v.yaw, v.pitch, v.roll, v.confidence);
}
};
template<>
struct StreamableTraits<::FaceDetect::ThftResult>
{
static const StreamHelperCategory helper = StreamHelperCategoryStruct;
static const int minWireSize = 20;
static const bool fixedLength = true;
};
template
struct StreamReader<::FaceDetect::ThftResult, S>
{
static void read(S* istr, ::FaceDetect::ThftResult& v)
{
istr->readAll(v.gender, v.age, v.race, v.beauty_level, v.smile_level);
}
};
template<>
struct StreamableTraits<::FaceDetect::FacePos>
{
static const StreamHelperCategory helper = StreamHelperCategoryStruct;
static const int minWireSize = 77;
static const bool fixedLength = false;
};
template
struct StreamReader<::FaceDetect::FacePos, S>
{
static void read(S* istr, ::FaceDetect::FacePos& v)
{
istr->readAll(v.rcFace, v.ptLeftEye, v.ptRightEye, v.ptMouth, v.ptNose, v.fAngle, v.nQuality, v.pFacialData, v.pfaceId);
}
};
}
namespace FaceDetect
{
using FaceDetectServerPtr = ::std::shared_ptr;
using FaceDetectServerPrxPtr = ::std::shared_ptr;
using FaceExtractServerPtr = ::std::shared_ptr;
using FaceExtractServerPrxPtr = ::std::shared_ptr;
}
#else // C++98 mapping
namespace IceProxy
{
namespace FaceDetect
{
class FaceDetectServer;
void _readProxy(::Ice::InputStream*, ::IceInternal::ProxyHandle< ::IceProxy::FaceDetect::FaceDetectServer>&);
::IceProxy::Ice::Object* upCast(::IceProxy::FaceDetect::FaceDetectServer*);
class FaceExtractServer;
void _readProxy(::Ice::InputStream*, ::IceInternal::ProxyHandle< ::IceProxy::FaceDetect::FaceExtractServer>&);
::IceProxy::Ice::Object* upCast(::IceProxy::FaceDetect::FaceExtractServer*);
}
}
namespace FaceDetect
{
class FaceDetectServer;
::Ice::Object* upCast(::FaceDetect::FaceDetectServer*);
typedef ::IceInternal::Handle< ::FaceDetect::FaceDetectServer> FaceDetectServerPtr;
typedef ::IceInternal::ProxyHandle< ::IceProxy::FaceDetect::FaceDetectServer> FaceDetectServerPrx;
typedef FaceDetectServerPrx FaceDetectServerPrxPtr;
void _icePatchObjectPtr(FaceDetectServerPtr&, const ::Ice::ObjectPtr&);
class FaceExtractServer;
::Ice::Object* upCast(::FaceDetect::FaceExtractServer*);
typedef ::IceInternal::Handle< ::FaceDetect::FaceExtractServer> FaceExtractServerPtr;
typedef ::IceInternal::ProxyHandle< ::IceProxy::FaceDetect::FaceExtractServer> FaceExtractServerPrx;
typedef FaceExtractServerPrx FaceExtractServerPrxPtr;
void _icePatchObjectPtr(FaceExtractServerPtr&, const ::Ice::ObjectPtr&);
}
namespace FaceDetect
{
struct POINT
{
::Ice::Int x;
::Ice::Int y;
bool operator==(const POINT& rhs_) const
{
if(this == &rhs_)
{
return true;
}
if(x != rhs_.x)
{
return false;
}
if(y != rhs_.y)
{
return false;
}
return true;
}
bool operator<(const POINT& rhs_) const
{
if(this == &rhs_)
{
return false;
}
if(x < rhs_.x)
{
return true;
}
else if(rhs_.x < x)
{
return false;
}
if(y < rhs_.y)
{
return true;
}
else if(rhs_.y < y)
{
return false;
}
return false;
}
bool operator!=(const POINT& rhs_) const
{
return !operator==(rhs_);
}
bool operator<=(const POINT& rhs_) const
{
return operator<(rhs_) || operator==(rhs_);
}
bool operator>(const POINT& rhs_) const
{
return !operator<(rhs_) && !operator==(rhs_);
}
bool operator>=(const POINT& rhs_) const
{
return !operator<(rhs_);
}
};
struct RECT
{
::Ice::Int left;
::Ice::Int top;
::Ice::Int right;
::Ice::Int bottom;
bool operator==(const RECT& rhs_) const
{
if(this == &rhs_)
{
return true;
}
if(left != rhs_.left)
{
return false;
}
if(top != rhs_.top)
{
return false;
}
if(right != rhs_.right)
{
return false;
}
if(bottom != rhs_.bottom)
{
return false;
}
return true;
}
bool operator<(const RECT& rhs_) const
{
if(this == &rhs_)
{
return false;
}
if(left < rhs_.left)
{
return true;
}
else if(rhs_.left < left)
{
return false;
}
if(top < rhs_.top)
{
return true;
}
else if(rhs_.top < top)
{
return false;
}
if(right < rhs_.right)
{
return true;
}
else if(rhs_.right < right)
{
return false;
}
if(bottom < rhs_.bottom)
{
return true;
}
else if(rhs_.bottom < bottom)
{
return false;
}
return false;
}
bool operator!=(const RECT& rhs_) const
{
return !operator==(rhs_);
}
bool operator<=(const RECT& rhs_) const
{
return operator<(rhs_) || operator==(rhs_);
}
bool operator>(const RECT& rhs_) const
{
return !operator<(rhs_) && !operator==(rhs_);
}
bool operator>=(const RECT& rhs_) const
{
return !operator<(rhs_);
}
};
struct FaceAngle
{
::Ice::Int yaw;
::Ice::Int pitch;
::Ice::Int roll;
::Ice::Float confidence;
};
struct ThftResult
{
::Ice::Int gender;
::Ice::Int age;
::Ice::Int race;
::Ice::Int beauty_level;
::Ice::Int smile_level;
bool operator==(const ThftResult& rhs_) const
{
if(this == &rhs_)
{
return true;
}
if(gender != rhs_.gender)
{
return false;
}
if(age != rhs_.age)
{
return false;
}
if(race != rhs_.race)
{
return false;
}
if(beauty_level != rhs_.beauty_level)
{
return false;
}
if(smile_level != rhs_.smile_level)
{
return false;
}
return true;
}
bool operator<(const ThftResult& rhs_) const
{
if(this == &rhs_)
{
return false;
}
if(gender < rhs_.gender)
{
return true;
}
else if(rhs_.gender < gender)
{
return false;
}
if(age < rhs_.age)
{
return true;
}
else if(rhs_.age < age)
{
return false;
}
if(race < rhs_.race)
{
return true;
}
else if(rhs_.race < race)
{
return false;
}
if(beauty_level < rhs_.beauty_level)
{
return true;
}
else if(rhs_.beauty_level < beauty_level)
{
return false;
}
if(smile_level < rhs_.smile_level)
{
return true;
}
else if(rhs_.smile_level < smile_level)
{
return false;
}
return false;
}
bool operator!=(const ThftResult& rhs_) const
{
return !operator==(rhs_);
}
bool operator<=(const ThftResult& rhs_) const
{
return operator<(rhs_) || operator==(rhs_);
}
bool operator>(const ThftResult& rhs_) const
{
return !operator<(rhs_) && !operator==(rhs_);
}
bool operator>=(const ThftResult& rhs_) const
{
return !operator<(rhs_);
}
};
typedef ::std::vector< ::Ice::Byte> Data;
struct FacePos
{
::FaceDetect::RECT rcFace;
::FaceDetect::POINT ptLeftEye;
::FaceDetect::POINT ptRightEye;
::FaceDetect::POINT ptMouth;
::FaceDetect::POINT ptNose;
::FaceDetect::FaceAngle fAngle;
::Ice::Int nQuality;
::FaceDetect::Data pFacialData;
::Ice::Long pfaceId;
};
typedef ::std::vector< ::FaceDetect::FacePos> Faces;
}
namespace FaceDetect
{
class Callback_FaceDetectServer_faceDetect_Base : public virtual ::IceInternal::CallbackBase { };
typedef ::IceUtil::Handle< Callback_FaceDetectServer_faceDetect_Base> Callback_FaceDetectServer_faceDetectPtr;
class Callback_FaceDetectServer_faceProperty_Base : public virtual ::IceInternal::CallbackBase { };
typedef ::IceUtil::Handle< Callback_FaceDetectServer_faceProperty_Base> Callback_FaceDetectServer_facePropertyPtr;
class Callback_FaceExtractServer_faceExtract_Base : public virtual ::IceInternal::CallbackBase { };
typedef ::IceUtil::Handle< Callback_FaceExtractServer_faceExtract_Base> Callback_FaceExtractServer_faceExtractPtr;
}
namespace IceProxy
{
namespace FaceDetect
{
class FaceDetectServer : public virtual ::Ice::Proxy
{
public:
::FaceDetect::Faces faceDetect(::Ice::Int iceP_width, ::Ice::Int iceP_height, const ::std::string& iceP_shareMemory, const ::Ice::Context& context = ::Ice::noExplicitContext)
{
return end_faceDetect(_iceI_begin_faceDetect(iceP_width, iceP_height, iceP_shareMemory, context, ::IceInternal::dummyCallback, 0, true));
}
::Ice::AsyncResultPtr begin_faceDetect(::Ice::Int iceP_width, ::Ice::Int iceP_height, const ::std::string& iceP_shareMemory, const ::Ice::Context& context = ::Ice::noExplicitContext)
{
return _iceI_begin_faceDetect(iceP_width, iceP_height, iceP_shareMemory, context, ::IceInternal::dummyCallback, 0);
}
::Ice::AsyncResultPtr begin_faceDetect(::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_faceDetect(iceP_width, iceP_height, iceP_shareMemory, ::Ice::noExplicitContext, del, cookie);
}
::Ice::AsyncResultPtr begin_faceDetect(::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_faceDetect(iceP_width, iceP_height, iceP_shareMemory, context, del, cookie);
}
::Ice::AsyncResultPtr begin_faceDetect(::Ice::Int iceP_width, ::Ice::Int iceP_height, const ::std::string& iceP_shareMemory, const ::FaceDetect::Callback_FaceDetectServer_faceDetectPtr& del, const ::Ice::LocalObjectPtr& cookie = 0)
{
return _iceI_begin_faceDetect(iceP_width, iceP_height, iceP_shareMemory, ::Ice::noExplicitContext, del, cookie);
}
::Ice::AsyncResultPtr begin_faceDetect(::Ice::Int iceP_width, ::Ice::Int iceP_height, const ::std::string& iceP_shareMemory, const ::Ice::Context& context, const ::FaceDetect::Callback_FaceDetectServer_faceDetectPtr& del, const ::Ice::LocalObjectPtr& cookie = 0)
{
return _iceI_begin_faceDetect(iceP_width, iceP_height, iceP_shareMemory, context, del, cookie);
}
::FaceDetect::Faces end_faceDetect(const ::Ice::AsyncResultPtr&);
private:
::Ice::AsyncResultPtr _iceI_begin_faceDetect(::Ice::Int, ::Ice::Int, const ::std::string&, const ::Ice::Context&, const ::IceInternal::CallbackBasePtr&, const ::Ice::LocalObjectPtr& cookie = 0, bool sync = false);
public:
::FaceDetect::ThftResult faceProperty(::Ice::Int iceP_width, ::Ice::Int iceP_height, const ::FaceDetect::FacePos& iceP_pos, const ::std::string& iceP_shareMemory, const ::Ice::Context& context = ::Ice::noExplicitContext)
{
return end_faceProperty(_iceI_begin_faceProperty(iceP_width, iceP_height, iceP_pos, iceP_shareMemory, context, ::IceInternal::dummyCallback, 0, true));
}
::Ice::AsyncResultPtr begin_faceProperty(::Ice::Int iceP_width, ::Ice::Int iceP_height, const ::FaceDetect::FacePos& iceP_pos, const ::std::string& iceP_shareMemory, const ::Ice::Context& context = ::Ice::noExplicitContext)
{
return _iceI_begin_faceProperty(iceP_width, iceP_height, iceP_pos, iceP_shareMemory, context, ::IceInternal::dummyCallback, 0);
}
::Ice::AsyncResultPtr begin_faceProperty(::Ice::Int iceP_width, ::Ice::Int iceP_height, const ::FaceDetect::FacePos& iceP_pos, const ::std::string& iceP_shareMemory, const ::Ice::CallbackPtr& del, const ::Ice::LocalObjectPtr& cookie = 0)
{
return _iceI_begin_faceProperty(iceP_width, iceP_height, iceP_pos, iceP_shareMemory, ::Ice::noExplicitContext, del, cookie);
}
::Ice::AsyncResultPtr begin_faceProperty(::Ice::Int iceP_width, ::Ice::Int iceP_height, const ::FaceDetect::FacePos& iceP_pos, const ::std::string& iceP_shareMemory, const ::Ice::Context& context, const ::Ice::CallbackPtr& del, const ::Ice::LocalObjectPtr& cookie = 0)
{
return _iceI_begin_faceProperty(iceP_width, iceP_height, iceP_pos, iceP_shareMemory, context, del, cookie);
}
::Ice::AsyncResultPtr begin_faceProperty(::Ice::Int iceP_width, ::Ice::Int iceP_height, const ::FaceDetect::FacePos& iceP_pos, const ::std::string& iceP_shareMemory, const ::FaceDetect::Callback_FaceDetectServer_facePropertyPtr& del, const ::Ice::LocalObjectPtr& cookie = 0)
{
return _iceI_begin_faceProperty(iceP_width, iceP_height, iceP_pos, iceP_shareMemory, ::Ice::noExplicitContext, del, cookie);
}
::Ice::AsyncResultPtr begin_faceProperty(::Ice::Int iceP_width, ::Ice::Int iceP_height, const ::FaceDetect::FacePos& iceP_pos, const ::std::string& iceP_shareMemory, const ::Ice::Context& context, const ::FaceDetect::Callback_FaceDetectServer_facePropertyPtr& del, const ::Ice::LocalObjectPtr& cookie = 0)
{
return _iceI_begin_faceProperty(iceP_width, iceP_height, iceP_pos, iceP_shareMemory, context, del, cookie);
}
::FaceDetect::ThftResult end_faceProperty(const ::Ice::AsyncResultPtr&);
private:
::Ice::AsyncResultPtr _iceI_begin_faceProperty(::Ice::Int, ::Ice::Int, const ::FaceDetect::FacePos&, const ::std::string&, 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;
};
class FaceExtractServer : public virtual ::Ice::Proxy
{
public:
::FaceDetect::Data faceExtract(::Ice::Int iceP_width, ::Ice::Int iceP_height, const ::FaceDetect::FacePos& iceP_pos, const ::std::string& iceP_shareMemory, const ::Ice::Context& context = ::Ice::noExplicitContext)
{
return end_faceExtract(_iceI_begin_faceExtract(iceP_width, iceP_height, iceP_pos, iceP_shareMemory, context, ::IceInternal::dummyCallback, 0, true));
}
::Ice::AsyncResultPtr begin_faceExtract(::Ice::Int iceP_width, ::Ice::Int iceP_height, const ::FaceDetect::FacePos& iceP_pos, const ::std::string& iceP_shareMemory, const ::Ice::Context& context = ::Ice::noExplicitContext)
{
return _iceI_begin_faceExtract(iceP_width, iceP_height, iceP_pos, iceP_shareMemory, context, ::IceInternal::dummyCallback, 0);
}
::Ice::AsyncResultPtr begin_faceExtract(::Ice::Int iceP_width, ::Ice::Int iceP_height, const ::FaceDetect::FacePos& iceP_pos, const ::std::string& iceP_shareMemory, const ::Ice::CallbackPtr& del, const ::Ice::LocalObjectPtr& cookie = 0)
{
return _iceI_begin_faceExtract(iceP_width, iceP_height, iceP_pos, iceP_shareMemory, ::Ice::noExplicitContext, del, cookie);
}
::Ice::AsyncResultPtr begin_faceExtract(::Ice::Int iceP_width, ::Ice::Int iceP_height, const ::FaceDetect::FacePos& iceP_pos, const ::std::string& iceP_shareMemory, const ::Ice::Context& context, const ::Ice::CallbackPtr& del, const ::Ice::LocalObjectPtr& cookie = 0)
{
return _iceI_begin_faceExtract(iceP_width, iceP_height, iceP_pos, iceP_shareMemory, context, del, cookie);
}
::Ice::AsyncResultPtr begin_faceExtract(::Ice::Int iceP_width, ::Ice::Int iceP_height, const ::FaceDetect::FacePos& iceP_pos, const ::std::string& iceP_shareMemory, const ::FaceDetect::Callback_FaceExtractServer_faceExtractPtr& del, const ::Ice::LocalObjectPtr& cookie = 0)
{
return _iceI_begin_faceExtract(iceP_width, iceP_height, iceP_pos, iceP_shareMemory, ::Ice::noExplicitContext, del, cookie);
}
::Ice::AsyncResultPtr begin_faceExtract(::Ice::Int iceP_width, ::Ice::Int iceP_height, const ::FaceDetect::FacePos& iceP_pos, const ::std::string& iceP_shareMemory, const ::Ice::Context& context, const ::FaceDetect::Callback_FaceExtractServer_faceExtractPtr& del, const ::Ice::LocalObjectPtr& cookie = 0)
{
return _iceI_begin_faceExtract(iceP_width, iceP_height, iceP_pos, iceP_shareMemory, context, del, cookie);
}
::FaceDetect::Data end_faceExtract(const ::Ice::AsyncResultPtr&);
private:
::Ice::AsyncResultPtr _iceI_begin_faceExtract(::Ice::Int, ::Ice::Int, const ::FaceDetect::FacePos&, const ::std::string&, 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 FaceDetect
{
class FaceDetectServer : public virtual ::Ice::Object
{
public:
typedef FaceDetectServerPrx ProxyType;
typedef FaceDetectServerPtr PointerType;
virtual ~FaceDetectServer();
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 ::FaceDetect::Faces faceDetect(::Ice::Int, ::Ice::Int, const ::std::string&, const ::Ice::Current& = ::Ice::emptyCurrent) = 0;
bool _iceD_faceDetect(::IceInternal::Incoming&, const ::Ice::Current&);
virtual ::FaceDetect::ThftResult faceProperty(::Ice::Int, ::Ice::Int, const ::FaceDetect::FacePos&, const ::std::string&, const ::Ice::Current& = ::Ice::emptyCurrent) = 0;
bool _iceD_faceProperty(::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 FaceDetectServer& lhs, const FaceDetectServer& rhs)
{
return static_cast(lhs) == static_cast(rhs);
}
inline bool operator<(const FaceDetectServer& lhs, const FaceDetectServer& rhs)
{
return static_cast(lhs) < static_cast(rhs);
}
class FaceExtractServer : public virtual ::Ice::Object
{
public:
typedef FaceExtractServerPrx ProxyType;
typedef FaceExtractServerPtr PointerType;
virtual ~FaceExtractServer();
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 ::FaceDetect::Data faceExtract(::Ice::Int, ::Ice::Int, const ::FaceDetect::FacePos&, const ::std::string&, const ::Ice::Current& = ::Ice::emptyCurrent) = 0;
bool _iceD_faceExtract(::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 FaceExtractServer& lhs, const FaceExtractServer& rhs)
{
return static_cast(lhs) == static_cast(rhs);
}
inline bool operator<(const FaceExtractServer& lhs, const FaceExtractServer& rhs)
{
return static_cast(lhs) < static_cast(rhs);
}
}
namespace Ice
{
template<>
struct StreamableTraits< ::FaceDetect::POINT>
{
static const StreamHelperCategory helper = StreamHelperCategoryStruct;
static const int minWireSize = 8;
static const bool fixedLength = true;
};
template
struct StreamWriter< ::FaceDetect::POINT, S>
{
static void write(S* ostr, const ::FaceDetect::POINT& v)
{
ostr->write(v.x);
ostr->write(v.y);
}
};
template
struct StreamReader< ::FaceDetect::POINT, S>
{
static void read(S* istr, ::FaceDetect::POINT& v)
{
istr->read(v.x);
istr->read(v.y);
}
};
template<>
struct StreamableTraits< ::FaceDetect::RECT>
{
static const StreamHelperCategory helper = StreamHelperCategoryStruct;
static const int minWireSize = 16;
static const bool fixedLength = true;
};
template
struct StreamWriter< ::FaceDetect::RECT, S>
{
static void write(S* ostr, const ::FaceDetect::RECT& v)
{
ostr->write(v.left);
ostr->write(v.top);
ostr->write(v.right);
ostr->write(v.bottom);
}
};
template
struct StreamReader< ::FaceDetect::RECT, S>
{
static void read(S* istr, ::FaceDetect::RECT& v)
{
istr->read(v.left);
istr->read(v.top);
istr->read(v.right);
istr->read(v.bottom);
}
};
template<>
struct StreamableTraits< ::FaceDetect::FaceAngle>
{
static const StreamHelperCategory helper = StreamHelperCategoryStruct;
static const int minWireSize = 16;
static const bool fixedLength = true;
};
template
struct StreamWriter< ::FaceDetect::FaceAngle, S>
{
static void write(S* ostr, const ::FaceDetect::FaceAngle& v)
{
ostr->write(v.yaw);
ostr->write(v.pitch);
ostr->write(v.roll);
ostr->write(v.confidence);
}
};
template
struct StreamReader< ::FaceDetect::FaceAngle, S>
{
static void read(S* istr, ::FaceDetect::FaceAngle& v)
{
istr->read(v.yaw);
istr->read(v.pitch);
istr->read(v.roll);
istr->read(v.confidence);
}
};
template<>
struct StreamableTraits< ::FaceDetect::ThftResult>
{
static const StreamHelperCategory helper = StreamHelperCategoryStruct;
static const int minWireSize = 20;
static const bool fixedLength = true;
};
template
struct StreamWriter< ::FaceDetect::ThftResult, S>
{
static void write(S* ostr, const ::FaceDetect::ThftResult& v)
{
ostr->write(v.gender);
ostr->write(v.age);
ostr->write(v.race);
ostr->write(v.beauty_level);
ostr->write(v.smile_level);
}
};
template
struct StreamReader< ::FaceDetect::ThftResult, S>
{
static void read(S* istr, ::FaceDetect::ThftResult& v)
{
istr->read(v.gender);
istr->read(v.age);
istr->read(v.race);
istr->read(v.beauty_level);
istr->read(v.smile_level);
}
};
template<>
struct StreamableTraits< ::FaceDetect::FacePos>
{
static const StreamHelperCategory helper = StreamHelperCategoryStruct;
static const int minWireSize = 77;
static const bool fixedLength = false;
};
template
struct StreamWriter< ::FaceDetect::FacePos, S>
{
static void write(S* ostr, const ::FaceDetect::FacePos& v)
{
ostr->write(v.rcFace);
ostr->write(v.ptLeftEye);
ostr->write(v.ptRightEye);
ostr->write(v.ptMouth);
ostr->write(v.ptNose);
ostr->write(v.fAngle);
ostr->write(v.nQuality);
ostr->write(v.pFacialData);
ostr->write(v.pfaceId);
}
};
template
struct StreamReader< ::FaceDetect::FacePos, S>
{
static void read(S* istr, ::FaceDetect::FacePos& v)
{
istr->read(v.rcFace);
istr->read(v.ptLeftEye);
istr->read(v.ptRightEye);
istr->read(v.ptMouth);
istr->read(v.ptNose);
istr->read(v.fAngle);
istr->read(v.nQuality);
istr->read(v.pFacialData);
istr->read(v.pfaceId);
}
};
}
namespace FaceDetect
{
template
class CallbackNC_FaceDetectServer_faceDetect : public Callback_FaceDetectServer_faceDetect_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 ::FaceDetect::Faces&);
CallbackNC_FaceDetectServer_faceDetect(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
{
::FaceDetect::FaceDetectServerPrx proxy = ::FaceDetect::FaceDetectServerPrx::uncheckedCast(result->getProxy());
::FaceDetect::Faces ret;
try
{
ret = proxy->end_faceDetect(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_FaceDetectServer_faceDetectPtr
newCallback_FaceDetectServer_faceDetect(const IceUtil::Handle& instance, void (T::*cb)(const ::FaceDetect::Faces&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
{
return new CallbackNC_FaceDetectServer_faceDetect(instance, cb, excb, sentcb);
}
template Callback_FaceDetectServer_faceDetectPtr
newCallback_FaceDetectServer_faceDetect(T* instance, void (T::*cb)(const ::FaceDetect::Faces&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
{
return new CallbackNC_FaceDetectServer_faceDetect(instance, cb, excb, sentcb);
}
template
class Callback_FaceDetectServer_faceDetect : public Callback_FaceDetectServer_faceDetect_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 ::FaceDetect::Faces&, const CT&);
Callback_FaceDetectServer_faceDetect(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
{
::FaceDetect::FaceDetectServerPrx proxy = ::FaceDetect::FaceDetectServerPrx::uncheckedCast(result->getProxy());
::FaceDetect::Faces ret;
try
{
ret = proxy->end_faceDetect(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_FaceDetectServer_faceDetectPtr
newCallback_FaceDetectServer_faceDetect(const IceUtil::Handle& instance, void (T::*cb)(const ::FaceDetect::Faces&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
{
return new Callback_FaceDetectServer_faceDetect(instance, cb, excb, sentcb);
}
template Callback_FaceDetectServer_faceDetectPtr
newCallback_FaceDetectServer_faceDetect(T* instance, void (T::*cb)(const ::FaceDetect::Faces&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
{
return new Callback_FaceDetectServer_faceDetect(instance, cb, excb, sentcb);
}
template
class CallbackNC_FaceDetectServer_faceProperty : public Callback_FaceDetectServer_faceProperty_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 ::FaceDetect::ThftResult&);
CallbackNC_FaceDetectServer_faceProperty(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
{
::FaceDetect::FaceDetectServerPrx proxy = ::FaceDetect::FaceDetectServerPrx::uncheckedCast(result->getProxy());
::FaceDetect::ThftResult ret;
try
{
ret = proxy->end_faceProperty(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_FaceDetectServer_facePropertyPtr
newCallback_FaceDetectServer_faceProperty(const IceUtil::Handle& instance, void (T::*cb)(const ::FaceDetect::ThftResult&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
{
return new CallbackNC_FaceDetectServer_faceProperty(instance, cb, excb, sentcb);
}
template Callback_FaceDetectServer_facePropertyPtr
newCallback_FaceDetectServer_faceProperty(T* instance, void (T::*cb)(const ::FaceDetect::ThftResult&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
{
return new CallbackNC_FaceDetectServer_faceProperty(instance, cb, excb, sentcb);
}
template
class Callback_FaceDetectServer_faceProperty : public Callback_FaceDetectServer_faceProperty_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 ::FaceDetect::ThftResult&, const CT&);
Callback_FaceDetectServer_faceProperty(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
{
::FaceDetect::FaceDetectServerPrx proxy = ::FaceDetect::FaceDetectServerPrx::uncheckedCast(result->getProxy());
::FaceDetect::ThftResult ret;
try
{
ret = proxy->end_faceProperty(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_FaceDetectServer_facePropertyPtr
newCallback_FaceDetectServer_faceProperty(const IceUtil::Handle& instance, void (T::*cb)(const ::FaceDetect::ThftResult&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
{
return new Callback_FaceDetectServer_faceProperty(instance, cb, excb, sentcb);
}
template Callback_FaceDetectServer_facePropertyPtr
newCallback_FaceDetectServer_faceProperty(T* instance, void (T::*cb)(const ::FaceDetect::ThftResult&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
{
return new Callback_FaceDetectServer_faceProperty(instance, cb, excb, sentcb);
}
template
class CallbackNC_FaceExtractServer_faceExtract : public Callback_FaceExtractServer_faceExtract_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 ::FaceDetect::Data&);
CallbackNC_FaceExtractServer_faceExtract(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
{
::FaceDetect::FaceExtractServerPrx proxy = ::FaceDetect::FaceExtractServerPrx::uncheckedCast(result->getProxy());
::FaceDetect::Data ret;
try
{
ret = proxy->end_faceExtract(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_FaceExtractServer_faceExtractPtr
newCallback_FaceExtractServer_faceExtract(const IceUtil::Handle& instance, void (T::*cb)(const ::FaceDetect::Data&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
{
return new CallbackNC_FaceExtractServer_faceExtract(instance, cb, excb, sentcb);
}
template Callback_FaceExtractServer_faceExtractPtr
newCallback_FaceExtractServer_faceExtract(T* instance, void (T::*cb)(const ::FaceDetect::Data&), void (T::*excb)(const ::Ice::Exception&), void (T::*sentcb)(bool) = 0)
{
return new CallbackNC_FaceExtractServer_faceExtract(instance, cb, excb, sentcb);
}
template
class Callback_FaceExtractServer_faceExtract : public Callback_FaceExtractServer_faceExtract_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 ::FaceDetect::Data&, const CT&);
Callback_FaceExtractServer_faceExtract(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
{
::FaceDetect::FaceExtractServerPrx proxy = ::FaceDetect::FaceExtractServerPrx::uncheckedCast(result->getProxy());
::FaceDetect::Data ret;
try
{
ret = proxy->end_faceExtract(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_FaceExtractServer_faceExtractPtr
newCallback_FaceExtractServer_faceExtract(const IceUtil::Handle& instance, void (T::*cb)(const ::FaceDetect::Data&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
{
return new Callback_FaceExtractServer_faceExtract(instance, cb, excb, sentcb);
}
template Callback_FaceExtractServer_faceExtractPtr
newCallback_FaceExtractServer_faceExtract(T* instance, void (T::*cb)(const ::FaceDetect::Data&, const CT&), void (T::*excb)(const ::Ice::Exception&, const CT&), void (T::*sentcb)(bool, const CT&) = 0)
{
return new Callback_FaceExtractServer_faceExtract(instance, cb, excb, sentcb);
}
}
#endif
#include
#endif