// **********************************************************************
//
// 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 `FaceServer.ice'
//
// Warning: do not edit this file.
//
//
//
#include
#include
#include
#include
#include
#include
#include
#include
#if defined(_MSC_VER)
# pragma warning(disable:4458) // declaration of ... hides class member
#elif defined(__clang__)
# pragma clang diagnostic ignored "-Wshadow"
#elif defined(__GNUC__)
# pragma GCC diagnostic ignored "-Wshadow"
#endif
#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
{
const ::std::string iceC_FaceDetect_FaceDetectServer_ids[2] =
{
"::FaceDetect::FaceDetectServer",
"::Ice::Object"
};
const ::std::string iceC_FaceDetect_FaceDetectServer_ops[] =
{
"faceDetect",
"faceProperty",
"ice_id",
"ice_ids",
"ice_isA",
"ice_ping"
};
const ::std::string iceC_FaceDetect_FaceDetectServer_faceDetect_name = "faceDetect";
const ::std::string iceC_FaceDetect_FaceDetectServer_faceProperty_name = "faceProperty";
const ::std::string iceC_FaceDetect_FaceExtractServer_ids[2] =
{
"::FaceDetect::FaceExtractServer",
"::Ice::Object"
};
const ::std::string iceC_FaceDetect_FaceExtractServer_ops[] =
{
"faceExtract",
"ice_id",
"ice_ids",
"ice_isA",
"ice_ping"
};
const ::std::string iceC_FaceDetect_FaceExtractServer_faceExtract_name = "faceExtract";
}
bool
FaceDetect::FaceDetectServer::ice_isA(::std::string s, const ::Ice::Current&) const
{
return ::std::binary_search(iceC_FaceDetect_FaceDetectServer_ids, iceC_FaceDetect_FaceDetectServer_ids + 2, s);
}
::std::vector<::std::string>
FaceDetect::FaceDetectServer::ice_ids(const ::Ice::Current&) const
{
return ::std::vector<::std::string>(&iceC_FaceDetect_FaceDetectServer_ids[0], &iceC_FaceDetect_FaceDetectServer_ids[2]);
}
::std::string
FaceDetect::FaceDetectServer::ice_id(const ::Ice::Current&) const
{
return ice_staticId();
}
const ::std::string&
FaceDetect::FaceDetectServer::ice_staticId()
{
static const ::std::string typeId = "::FaceDetect::FaceDetectServer";
return typeId;
}
bool
FaceDetect::FaceDetectServer::_iceD_faceDetect(::IceInternal::Incoming& inS, const ::Ice::Current& current)
{
_iceCheckMode(::Ice::OperationMode::Normal, current.mode);
auto istr = inS.startReadParams();
int iceP_width;
int iceP_height;
::std::string iceP_shareMemory;
istr->readAll(iceP_width, iceP_height, iceP_shareMemory);
inS.endReadParams();
::FaceDetect::Faces ret = this->faceDetect(iceP_width, iceP_height, ::std::move(iceP_shareMemory), current);
auto ostr = inS.startWriteParams();
ostr->writeAll(ret);
inS.endWriteParams();
return true;
}
bool
FaceDetect::FaceDetectServer::_iceD_faceProperty(::IceInternal::Incoming& inS, const ::Ice::Current& current)
{
_iceCheckMode(::Ice::OperationMode::Normal, current.mode);
auto istr = inS.startReadParams();
int iceP_width;
int iceP_height;
::FaceDetect::FacePos iceP_pos;
::std::string iceP_shareMemory;
istr->readAll(iceP_width, iceP_height, iceP_pos, iceP_shareMemory);
inS.endReadParams();
::FaceDetect::ThftResult ret = this->faceProperty(iceP_width, iceP_height, ::std::move(iceP_pos), ::std::move(iceP_shareMemory), current);
auto ostr = inS.startWriteParams();
ostr->writeAll(ret);
inS.endWriteParams();
return true;
}
bool
FaceDetect::FaceDetectServer::_iceDispatch(::IceInternal::Incoming& in, const ::Ice::Current& current)
{
::std::pair r = ::std::equal_range(iceC_FaceDetect_FaceDetectServer_ops, iceC_FaceDetect_FaceDetectServer_ops + 6, current.operation);
if(r.first == r.second)
{
throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
}
switch(r.first - iceC_FaceDetect_FaceDetectServer_ops)
{
case 0:
{
return _iceD_faceDetect(in, current);
}
case 1:
{
return _iceD_faceProperty(in, current);
}
case 2:
{
return _iceD_ice_id(in, current);
}
case 3:
{
return _iceD_ice_ids(in, current);
}
case 4:
{
return _iceD_ice_isA(in, current);
}
case 5:
{
return _iceD_ice_ping(in, current);
}
default:
{
assert(false);
throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
}
}
}
bool
FaceDetect::FaceExtractServer::ice_isA(::std::string s, const ::Ice::Current&) const
{
return ::std::binary_search(iceC_FaceDetect_FaceExtractServer_ids, iceC_FaceDetect_FaceExtractServer_ids + 2, s);
}
::std::vector<::std::string>
FaceDetect::FaceExtractServer::ice_ids(const ::Ice::Current&) const
{
return ::std::vector<::std::string>(&iceC_FaceDetect_FaceExtractServer_ids[0], &iceC_FaceDetect_FaceExtractServer_ids[2]);
}
::std::string
FaceDetect::FaceExtractServer::ice_id(const ::Ice::Current&) const
{
return ice_staticId();
}
const ::std::string&
FaceDetect::FaceExtractServer::ice_staticId()
{
static const ::std::string typeId = "::FaceDetect::FaceExtractServer";
return typeId;
}
bool
FaceDetect::FaceExtractServer::_iceD_faceExtract(::IceInternal::Incoming& inS, const ::Ice::Current& current)
{
_iceCheckMode(::Ice::OperationMode::Normal, current.mode);
auto istr = inS.startReadParams();
int iceP_width;
int iceP_height;
::FaceDetect::FacePos iceP_pos;
::std::string iceP_shareMemory;
istr->readAll(iceP_width, iceP_height, iceP_pos, iceP_shareMemory);
inS.endReadParams();
::FaceDetect::Data ret = this->faceExtract(iceP_width, iceP_height, ::std::move(iceP_pos), ::std::move(iceP_shareMemory), current);
auto ostr = inS.startWriteParams();
ostr->writeAll(ret);
inS.endWriteParams();
return true;
}
bool
FaceDetect::FaceExtractServer::_iceDispatch(::IceInternal::Incoming& in, const ::Ice::Current& current)
{
::std::pair r = ::std::equal_range(iceC_FaceDetect_FaceExtractServer_ops, iceC_FaceDetect_FaceExtractServer_ops + 5, current.operation);
if(r.first == r.second)
{
throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
}
switch(r.first - iceC_FaceDetect_FaceExtractServer_ops)
{
case 0:
{
return _iceD_faceExtract(in, current);
}
case 1:
{
return _iceD_ice_id(in, current);
}
case 2:
{
return _iceD_ice_ids(in, current);
}
case 3:
{
return _iceD_ice_isA(in, current);
}
case 4:
{
return _iceD_ice_ping(in, current);
}
default:
{
assert(false);
throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
}
}
}
void
FaceDetect::FaceDetectServerPrx::_iceI_faceDetect(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::FaceDetect::Faces>>& outAsync, int iceP_width, int iceP_height, const ::std::string& iceP_shareMemory, const ::Ice::Context& context)
{
_checkTwowayOnly(iceC_FaceDetect_FaceDetectServer_faceDetect_name);
outAsync->invoke(iceC_FaceDetect_FaceDetectServer_faceDetect_name, ::Ice::OperationMode::Normal, ::Ice::FormatType::DefaultFormat, context,
[&](::Ice::OutputStream* ostr)
{
ostr->writeAll(iceP_width, iceP_height, iceP_shareMemory);
},
nullptr);
}
void
FaceDetect::FaceDetectServerPrx::_iceI_faceProperty(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::FaceDetect::ThftResult>>& outAsync, int iceP_width, int iceP_height, const ::FaceDetect::FacePos& iceP_pos, const ::std::string& iceP_shareMemory, const ::Ice::Context& context)
{
_checkTwowayOnly(iceC_FaceDetect_FaceDetectServer_faceProperty_name);
outAsync->invoke(iceC_FaceDetect_FaceDetectServer_faceProperty_name, ::Ice::OperationMode::Normal, ::Ice::FormatType::DefaultFormat, context,
[&](::Ice::OutputStream* ostr)
{
ostr->writeAll(iceP_width, iceP_height, iceP_pos, iceP_shareMemory);
},
nullptr);
}
::std::shared_ptr<::Ice::ObjectPrx>
FaceDetect::FaceDetectServerPrx::_newInstance() const
{
return ::IceInternal::createProxy();
}
const ::std::string&
FaceDetect::FaceDetectServerPrx::ice_staticId()
{
return FaceDetect::FaceDetectServer::ice_staticId();
}
void
FaceDetect::FaceExtractServerPrx::_iceI_faceExtract(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::FaceDetect::Data>>& outAsync, int iceP_width, int iceP_height, const ::FaceDetect::FacePos& iceP_pos, const ::std::string& iceP_shareMemory, const ::Ice::Context& context)
{
_checkTwowayOnly(iceC_FaceDetect_FaceExtractServer_faceExtract_name);
outAsync->invoke(iceC_FaceDetect_FaceExtractServer_faceExtract_name, ::Ice::OperationMode::Normal, ::Ice::FormatType::DefaultFormat, context,
[&](::Ice::OutputStream* ostr)
{
ostr->writeAll(iceP_width, iceP_height, iceP_pos, iceP_shareMemory);
},
nullptr);
}
::std::shared_ptr<::Ice::ObjectPrx>
FaceDetect::FaceExtractServerPrx::_newInstance() const
{
return ::IceInternal::createProxy();
}
const ::std::string&
FaceDetect::FaceExtractServerPrx::ice_staticId()
{
return FaceDetect::FaceExtractServer::ice_staticId();
}
namespace Ice
{
}
#else // C++98 mapping
namespace
{
const ::std::string iceC_FaceDetect_FaceDetectServer_faceDetect_name = "faceDetect";
const ::std::string iceC_FaceDetect_FaceDetectServer_faceProperty_name = "faceProperty";
const ::std::string iceC_FaceDetect_FaceExtractServer_faceExtract_name = "faceExtract";
}
::IceProxy::Ice::Object* ::IceProxy::FaceDetect::upCast(::IceProxy::FaceDetect::FaceDetectServer* p) { return p; }
void
::IceProxy::FaceDetect::_readProxy(::Ice::InputStream* istr, ::IceInternal::ProxyHandle< ::IceProxy::FaceDetect::FaceDetectServer>& v)
{
::Ice::ObjectPrx proxy;
istr->read(proxy);
if(!proxy)
{
v = 0;
}
else
{
v = new ::IceProxy::FaceDetect::FaceDetectServer;
v->_copyFrom(proxy);
}
}
::Ice::AsyncResultPtr
IceProxy::FaceDetect::FaceDetectServer::_iceI_begin_faceDetect(::Ice::Int iceP_width, ::Ice::Int iceP_height, const ::std::string& iceP_shareMemory, const ::Ice::Context& context, const ::IceInternal::CallbackBasePtr& del, const ::Ice::LocalObjectPtr& cookie, bool sync)
{
_checkTwowayOnly(iceC_FaceDetect_FaceDetectServer_faceDetect_name, sync);
::IceInternal::OutgoingAsyncPtr result = new ::IceInternal::CallbackOutgoing(this, iceC_FaceDetect_FaceDetectServer_faceDetect_name, del, cookie, sync);
try
{
result->prepare(iceC_FaceDetect_FaceDetectServer_faceDetect_name, ::Ice::Normal, context);
::Ice::OutputStream* ostr = result->startWriteParams(::Ice::DefaultFormat);
ostr->write(iceP_width);
ostr->write(iceP_height);
ostr->write(iceP_shareMemory);
result->endWriteParams();
result->invoke(iceC_FaceDetect_FaceDetectServer_faceDetect_name);
}
catch(const ::Ice::Exception& ex)
{
result->abort(ex);
}
return result;
}
::FaceDetect::Faces
IceProxy::FaceDetect::FaceDetectServer::end_faceDetect(const ::Ice::AsyncResultPtr& result)
{
::Ice::AsyncResult::_check(result, this, iceC_FaceDetect_FaceDetectServer_faceDetect_name);
::FaceDetect::Faces ret;
if(!result->_waitForResponse())
{
try
{
result->_throwUserException();
}
catch(const ::Ice::UserException& ex)
{
throw ::Ice::UnknownUserException(__FILE__, __LINE__, ex.ice_id());
}
}
::Ice::InputStream* istr = result->_startReadParams();
istr->read(ret);
result->_endReadParams();
return ret;
}
::Ice::AsyncResultPtr
IceProxy::FaceDetect::FaceDetectServer::_iceI_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 ::IceInternal::CallbackBasePtr& del, const ::Ice::LocalObjectPtr& cookie, bool sync)
{
_checkTwowayOnly(iceC_FaceDetect_FaceDetectServer_faceProperty_name, sync);
::IceInternal::OutgoingAsyncPtr result = new ::IceInternal::CallbackOutgoing(this, iceC_FaceDetect_FaceDetectServer_faceProperty_name, del, cookie, sync);
try
{
result->prepare(iceC_FaceDetect_FaceDetectServer_faceProperty_name, ::Ice::Normal, context);
::Ice::OutputStream* ostr = result->startWriteParams(::Ice::DefaultFormat);
ostr->write(iceP_width);
ostr->write(iceP_height);
ostr->write(iceP_pos);
ostr->write(iceP_shareMemory);
result->endWriteParams();
result->invoke(iceC_FaceDetect_FaceDetectServer_faceProperty_name);
}
catch(const ::Ice::Exception& ex)
{
result->abort(ex);
}
return result;
}
::FaceDetect::ThftResult
IceProxy::FaceDetect::FaceDetectServer::end_faceProperty(const ::Ice::AsyncResultPtr& result)
{
::Ice::AsyncResult::_check(result, this, iceC_FaceDetect_FaceDetectServer_faceProperty_name);
::FaceDetect::ThftResult ret;
if(!result->_waitForResponse())
{
try
{
result->_throwUserException();
}
catch(const ::Ice::UserException& ex)
{
throw ::Ice::UnknownUserException(__FILE__, __LINE__, ex.ice_id());
}
}
::Ice::InputStream* istr = result->_startReadParams();
istr->read(ret);
result->_endReadParams();
return ret;
}
::IceProxy::Ice::Object*
IceProxy::FaceDetect::FaceDetectServer::_newInstance() const
{
return new FaceDetectServer;
}
const ::std::string&
IceProxy::FaceDetect::FaceDetectServer::ice_staticId()
{
return ::FaceDetect::FaceDetectServer::ice_staticId();
}
::IceProxy::Ice::Object* ::IceProxy::FaceDetect::upCast(::IceProxy::FaceDetect::FaceExtractServer* p) { return p; }
void
::IceProxy::FaceDetect::_readProxy(::Ice::InputStream* istr, ::IceInternal::ProxyHandle< ::IceProxy::FaceDetect::FaceExtractServer>& v)
{
::Ice::ObjectPrx proxy;
istr->read(proxy);
if(!proxy)
{
v = 0;
}
else
{
v = new ::IceProxy::FaceDetect::FaceExtractServer;
v->_copyFrom(proxy);
}
}
::Ice::AsyncResultPtr
IceProxy::FaceDetect::FaceExtractServer::_iceI_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 ::IceInternal::CallbackBasePtr& del, const ::Ice::LocalObjectPtr& cookie, bool sync)
{
_checkTwowayOnly(iceC_FaceDetect_FaceExtractServer_faceExtract_name, sync);
::IceInternal::OutgoingAsyncPtr result = new ::IceInternal::CallbackOutgoing(this, iceC_FaceDetect_FaceExtractServer_faceExtract_name, del, cookie, sync);
try
{
result->prepare(iceC_FaceDetect_FaceExtractServer_faceExtract_name, ::Ice::Normal, context);
::Ice::OutputStream* ostr = result->startWriteParams(::Ice::DefaultFormat);
ostr->write(iceP_width);
ostr->write(iceP_height);
ostr->write(iceP_pos);
ostr->write(iceP_shareMemory);
result->endWriteParams();
result->invoke(iceC_FaceDetect_FaceExtractServer_faceExtract_name);
}
catch(const ::Ice::Exception& ex)
{
result->abort(ex);
}
return result;
}
::FaceDetect::Data
IceProxy::FaceDetect::FaceExtractServer::end_faceExtract(const ::Ice::AsyncResultPtr& result)
{
::Ice::AsyncResult::_check(result, this, iceC_FaceDetect_FaceExtractServer_faceExtract_name);
::FaceDetect::Data ret;
if(!result->_waitForResponse())
{
try
{
result->_throwUserException();
}
catch(const ::Ice::UserException& ex)
{
throw ::Ice::UnknownUserException(__FILE__, __LINE__, ex.ice_id());
}
}
::Ice::InputStream* istr = result->_startReadParams();
istr->read(ret);
result->_endReadParams();
return ret;
}
::IceProxy::Ice::Object*
IceProxy::FaceDetect::FaceExtractServer::_newInstance() const
{
return new FaceExtractServer;
}
const ::std::string&
IceProxy::FaceDetect::FaceExtractServer::ice_staticId()
{
return ::FaceDetect::FaceExtractServer::ice_staticId();
}
FaceDetect::FaceDetectServer::~FaceDetectServer()
{
}
::Ice::Object* FaceDetect::upCast(::FaceDetect::FaceDetectServer* p) { return p; }
namespace
{
const ::std::string iceC_FaceDetect_FaceDetectServer_ids[2] =
{
"::FaceDetect::FaceDetectServer",
"::Ice::Object"
};
}
bool
FaceDetect::FaceDetectServer::ice_isA(const ::std::string& s, const ::Ice::Current&) const
{
return ::std::binary_search(iceC_FaceDetect_FaceDetectServer_ids, iceC_FaceDetect_FaceDetectServer_ids + 2, s);
}
::std::vector< ::std::string>
FaceDetect::FaceDetectServer::ice_ids(const ::Ice::Current&) const
{
return ::std::vector< ::std::string>(&iceC_FaceDetect_FaceDetectServer_ids[0], &iceC_FaceDetect_FaceDetectServer_ids[2]);
}
const ::std::string&
FaceDetect::FaceDetectServer::ice_id(const ::Ice::Current&) const
{
return ice_staticId();
}
const ::std::string&
FaceDetect::FaceDetectServer::ice_staticId()
{
#ifdef ICE_HAS_THREAD_SAFE_LOCAL_STATIC
static const ::std::string typeId = "::FaceDetect::FaceDetectServer";
return typeId;
#else
return iceC_FaceDetect_FaceDetectServer_ids[0];
#endif
}
bool
FaceDetect::FaceDetectServer::_iceD_faceDetect(::IceInternal::Incoming& inS, const ::Ice::Current& current)
{
_iceCheckMode(::Ice::Normal, current.mode);
::Ice::InputStream* istr = inS.startReadParams();
::Ice::Int iceP_width;
::Ice::Int iceP_height;
::std::string iceP_shareMemory;
istr->read(iceP_width);
istr->read(iceP_height);
istr->read(iceP_shareMemory);
inS.endReadParams();
::FaceDetect::Faces ret = this->faceDetect(iceP_width, iceP_height, iceP_shareMemory, current);
::Ice::OutputStream* ostr = inS.startWriteParams();
ostr->write(ret);
inS.endWriteParams();
return true;
}
bool
FaceDetect::FaceDetectServer::_iceD_faceProperty(::IceInternal::Incoming& inS, const ::Ice::Current& current)
{
_iceCheckMode(::Ice::Normal, current.mode);
::Ice::InputStream* istr = inS.startReadParams();
::Ice::Int iceP_width;
::Ice::Int iceP_height;
::FaceDetect::FacePos iceP_pos;
::std::string iceP_shareMemory;
istr->read(iceP_width);
istr->read(iceP_height);
istr->read(iceP_pos);
istr->read(iceP_shareMemory);
inS.endReadParams();
::FaceDetect::ThftResult ret = this->faceProperty(iceP_width, iceP_height, iceP_pos, iceP_shareMemory, current);
::Ice::OutputStream* ostr = inS.startWriteParams();
ostr->write(ret);
inS.endWriteParams();
return true;
}
namespace
{
const ::std::string iceC_FaceDetect_FaceDetectServer_all[] =
{
"faceDetect",
"faceProperty",
"ice_id",
"ice_ids",
"ice_isA",
"ice_ping"
};
}
bool
FaceDetect::FaceDetectServer::_iceDispatch(::IceInternal::Incoming& in, const ::Ice::Current& current)
{
::std::pair r = ::std::equal_range(iceC_FaceDetect_FaceDetectServer_all, iceC_FaceDetect_FaceDetectServer_all + 6, current.operation);
if(r.first == r.second)
{
throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
}
switch(r.first - iceC_FaceDetect_FaceDetectServer_all)
{
case 0:
{
return _iceD_faceDetect(in, current);
}
case 1:
{
return _iceD_faceProperty(in, current);
}
case 2:
{
return _iceD_ice_id(in, current);
}
case 3:
{
return _iceD_ice_ids(in, current);
}
case 4:
{
return _iceD_ice_isA(in, current);
}
case 5:
{
return _iceD_ice_ping(in, current);
}
default:
{
assert(false);
throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
}
}
}
void
FaceDetect::FaceDetectServer::_iceWriteImpl(::Ice::OutputStream* ostr) const
{
ostr->startSlice(ice_staticId(), -1, true);
Ice::StreamWriter< ::FaceDetect::FaceDetectServer, ::Ice::OutputStream>::write(ostr, *this);
ostr->endSlice();
}
void
FaceDetect::FaceDetectServer::_iceReadImpl(::Ice::InputStream* istr)
{
istr->startSlice();
Ice::StreamReader< ::FaceDetect::FaceDetectServer, ::Ice::InputStream>::read(istr, *this);
istr->endSlice();
}
void
FaceDetect::_icePatchObjectPtr(FaceDetectServerPtr& handle, const ::Ice::ObjectPtr& v)
{
handle = ::FaceDetect::FaceDetectServerPtr::dynamicCast(v);
if(v && !handle)
{
IceInternal::Ex::throwUOE(::FaceDetect::FaceDetectServer::ice_staticId(), v);
}
}
FaceDetect::FaceExtractServer::~FaceExtractServer()
{
}
::Ice::Object* FaceDetect::upCast(::FaceDetect::FaceExtractServer* p) { return p; }
namespace
{
const ::std::string iceC_FaceDetect_FaceExtractServer_ids[2] =
{
"::FaceDetect::FaceExtractServer",
"::Ice::Object"
};
}
bool
FaceDetect::FaceExtractServer::ice_isA(const ::std::string& s, const ::Ice::Current&) const
{
return ::std::binary_search(iceC_FaceDetect_FaceExtractServer_ids, iceC_FaceDetect_FaceExtractServer_ids + 2, s);
}
::std::vector< ::std::string>
FaceDetect::FaceExtractServer::ice_ids(const ::Ice::Current&) const
{
return ::std::vector< ::std::string>(&iceC_FaceDetect_FaceExtractServer_ids[0], &iceC_FaceDetect_FaceExtractServer_ids[2]);
}
const ::std::string&
FaceDetect::FaceExtractServer::ice_id(const ::Ice::Current&) const
{
return ice_staticId();
}
const ::std::string&
FaceDetect::FaceExtractServer::ice_staticId()
{
#ifdef ICE_HAS_THREAD_SAFE_LOCAL_STATIC
static const ::std::string typeId = "::FaceDetect::FaceExtractServer";
return typeId;
#else
return iceC_FaceDetect_FaceExtractServer_ids[0];
#endif
}
bool
FaceDetect::FaceExtractServer::_iceD_faceExtract(::IceInternal::Incoming& inS, const ::Ice::Current& current)
{
_iceCheckMode(::Ice::Normal, current.mode);
::Ice::InputStream* istr = inS.startReadParams();
::Ice::Int iceP_width;
::Ice::Int iceP_height;
::FaceDetect::FacePos iceP_pos;
::std::string iceP_shareMemory;
istr->read(iceP_width);
istr->read(iceP_height);
istr->read(iceP_pos);
istr->read(iceP_shareMemory);
inS.endReadParams();
::FaceDetect::Data ret = this->faceExtract(iceP_width, iceP_height, iceP_pos, iceP_shareMemory, current);
::Ice::OutputStream* ostr = inS.startWriteParams();
ostr->write(ret);
inS.endWriteParams();
return true;
}
namespace
{
const ::std::string iceC_FaceDetect_FaceExtractServer_all[] =
{
"faceExtract",
"ice_id",
"ice_ids",
"ice_isA",
"ice_ping"
};
}
bool
FaceDetect::FaceExtractServer::_iceDispatch(::IceInternal::Incoming& in, const ::Ice::Current& current)
{
::std::pair r = ::std::equal_range(iceC_FaceDetect_FaceExtractServer_all, iceC_FaceDetect_FaceExtractServer_all + 5, current.operation);
if(r.first == r.second)
{
throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
}
switch(r.first - iceC_FaceDetect_FaceExtractServer_all)
{
case 0:
{
return _iceD_faceExtract(in, current);
}
case 1:
{
return _iceD_ice_id(in, current);
}
case 2:
{
return _iceD_ice_ids(in, current);
}
case 3:
{
return _iceD_ice_isA(in, current);
}
case 4:
{
return _iceD_ice_ping(in, current);
}
default:
{
assert(false);
throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
}
}
}
void
FaceDetect::FaceExtractServer::_iceWriteImpl(::Ice::OutputStream* ostr) const
{
ostr->startSlice(ice_staticId(), -1, true);
Ice::StreamWriter< ::FaceDetect::FaceExtractServer, ::Ice::OutputStream>::write(ostr, *this);
ostr->endSlice();
}
void
FaceDetect::FaceExtractServer::_iceReadImpl(::Ice::InputStream* istr)
{
istr->startSlice();
Ice::StreamReader< ::FaceDetect::FaceExtractServer, ::Ice::InputStream>::read(istr, *this);
istr->endSlice();
}
void
FaceDetect::_icePatchObjectPtr(FaceExtractServerPtr& handle, const ::Ice::ObjectPtr& v)
{
handle = ::FaceDetect::FaceExtractServerPtr::dynamicCast(v);
if(v && !handle)
{
IceInternal::Ex::throwUOE(::FaceDetect::FaceExtractServer::ice_staticId(), v);
}
}
namespace Ice
{
}
#endif