// **********************************************************************
|
//
|
// Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved.
|
//
|
// This copy of Ice is licensed to you under the terms described in the
|
// ICE_LICENSE file included in this distribution.
|
//
|
// **********************************************************************
|
//
|
// Ice version 3.7.0
|
//
|
// <auto-generated>
|
//
|
// Generated from file `StructureApp.ice'
|
//
|
// Warning: do not edit this file.
|
//
|
// </auto-generated>
|
//
|
|
#include <StructureApp.h>
|
#include <IceUtil/PushDisableWarnings.h>
|
#include <Ice/LocalException.h>
|
#include <Ice/ValueFactory.h>
|
#include <Ice/OutgoingAsync.h>
|
#include <Ice/InputStream.h>
|
#include <Ice/OutputStream.h>
|
#include <IceUtil/PopDisableWarnings.h>
|
|
#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_Structure_StructureApp_ids[2] =
|
{
|
"::Ice::Object",
|
"::Structure::StructureApp"
|
};
|
const ::std::string iceC_Structure_StructureApp_ops[] =
|
{
|
"addCamera",
|
"getCurrentCamCount",
|
"getMaxCamCount",
|
"getRtmp",
|
"ice_id",
|
"ice_ids",
|
"ice_isA",
|
"ice_ping",
|
"removeAll",
|
"removeCamera"
|
};
|
const ::std::string iceC_Structure_StructureApp_addCamera_name = "addCamera";
|
const ::std::string iceC_Structure_StructureApp_removeCamera_name = "removeCamera";
|
const ::std::string iceC_Structure_StructureApp_removeAll_name = "removeAll";
|
const ::std::string iceC_Structure_StructureApp_getMaxCamCount_name = "getMaxCamCount";
|
const ::std::string iceC_Structure_StructureApp_getCurrentCamCount_name = "getCurrentCamCount";
|
const ::std::string iceC_Structure_StructureApp_getRtmp_name = "getRtmp";
|
|
}
|
|
bool
|
Structure::StructureApp::ice_isA(::std::string s, const ::Ice::Current&) const
|
{
|
return ::std::binary_search(iceC_Structure_StructureApp_ids, iceC_Structure_StructureApp_ids + 2, s);
|
}
|
|
::std::vector<::std::string>
|
Structure::StructureApp::ice_ids(const ::Ice::Current&) const
|
{
|
return ::std::vector<::std::string>(&iceC_Structure_StructureApp_ids[0], &iceC_Structure_StructureApp_ids[2]);
|
}
|
|
::std::string
|
Structure::StructureApp::ice_id(const ::Ice::Current&) const
|
{
|
return ice_staticId();
|
}
|
|
const ::std::string&
|
Structure::StructureApp::ice_staticId()
|
{
|
static const ::std::string typeId = "::Structure::StructureApp";
|
return typeId;
|
}
|
|
bool
|
Structure::StructureApp::_iceD_addCamera(::IceInternal::Incoming& inS, const ::Ice::Current& current)
|
{
|
_iceCheckMode(::Ice::OperationMode::Normal, current.mode);
|
auto istr = inS.startReadParams();
|
int iceP_index;
|
::std::string iceP_jsonConfig;
|
istr->readAll(iceP_index, iceP_jsonConfig);
|
inS.endReadParams();
|
int ret = this->addCamera(iceP_index, ::std::move(iceP_jsonConfig), current);
|
auto ostr = inS.startWriteParams();
|
ostr->writeAll(ret);
|
inS.endWriteParams();
|
return true;
|
}
|
|
bool
|
Structure::StructureApp::_iceD_removeCamera(::IceInternal::Incoming& inS, const ::Ice::Current& current)
|
{
|
_iceCheckMode(::Ice::OperationMode::Normal, current.mode);
|
auto istr = inS.startReadParams();
|
int iceP_index;
|
istr->readAll(iceP_index);
|
inS.endReadParams();
|
int ret = this->removeCamera(iceP_index, current);
|
auto ostr = inS.startWriteParams();
|
ostr->writeAll(ret);
|
inS.endWriteParams();
|
return true;
|
}
|
|
bool
|
Structure::StructureApp::_iceD_removeAll(::IceInternal::Incoming& inS, const ::Ice::Current& current)
|
{
|
_iceCheckMode(::Ice::OperationMode::Normal, current.mode);
|
inS.readEmptyParams();
|
int ret = this->removeAll(current);
|
auto ostr = inS.startWriteParams();
|
ostr->writeAll(ret);
|
inS.endWriteParams();
|
return true;
|
}
|
|
bool
|
Structure::StructureApp::_iceD_getMaxCamCount(::IceInternal::Incoming& inS, const ::Ice::Current& current)
|
{
|
_iceCheckMode(::Ice::OperationMode::Normal, current.mode);
|
inS.readEmptyParams();
|
int ret = this->getMaxCamCount(current);
|
auto ostr = inS.startWriteParams();
|
ostr->writeAll(ret);
|
inS.endWriteParams();
|
return true;
|
}
|
|
bool
|
Structure::StructureApp::_iceD_getCurrentCamCount(::IceInternal::Incoming& inS, const ::Ice::Current& current)
|
{
|
_iceCheckMode(::Ice::OperationMode::Normal, current.mode);
|
inS.readEmptyParams();
|
int ret = this->getCurrentCamCount(current);
|
auto ostr = inS.startWriteParams();
|
ostr->writeAll(ret);
|
inS.endWriteParams();
|
return true;
|
}
|
|
bool
|
Structure::StructureApp::_iceD_getRtmp(::IceInternal::Incoming& inS, const ::Ice::Current& current)
|
{
|
_iceCheckMode(::Ice::OperationMode::Normal, current.mode);
|
auto istr = inS.startReadParams();
|
int iceP_index;
|
istr->readAll(iceP_index);
|
inS.endReadParams();
|
::std::string ret = this->getRtmp(iceP_index, current);
|
auto ostr = inS.startWriteParams();
|
ostr->writeAll(ret);
|
inS.endWriteParams();
|
return true;
|
}
|
|
bool
|
Structure::StructureApp::_iceDispatch(::IceInternal::Incoming& in, const ::Ice::Current& current)
|
{
|
::std::pair<const ::std::string*, const ::std::string*> r = ::std::equal_range(iceC_Structure_StructureApp_ops, iceC_Structure_StructureApp_ops + 10, current.operation);
|
if(r.first == r.second)
|
{
|
throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
|
}
|
|
switch(r.first - iceC_Structure_StructureApp_ops)
|
{
|
case 0:
|
{
|
return _iceD_addCamera(in, current);
|
}
|
case 1:
|
{
|
return _iceD_getCurrentCamCount(in, current);
|
}
|
case 2:
|
{
|
return _iceD_getMaxCamCount(in, current);
|
}
|
case 3:
|
{
|
return _iceD_getRtmp(in, current);
|
}
|
case 4:
|
{
|
return _iceD_ice_id(in, current);
|
}
|
case 5:
|
{
|
return _iceD_ice_ids(in, current);
|
}
|
case 6:
|
{
|
return _iceD_ice_isA(in, current);
|
}
|
case 7:
|
{
|
return _iceD_ice_ping(in, current);
|
}
|
case 8:
|
{
|
return _iceD_removeAll(in, current);
|
}
|
case 9:
|
{
|
return _iceD_removeCamera(in, current);
|
}
|
default:
|
{
|
assert(false);
|
throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
|
}
|
}
|
}
|
|
void
|
Structure::StructureAppPrx::_iceI_addCamera(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<int>>& outAsync, int iceP_index, const ::std::string& iceP_jsonConfig, const ::Ice::Context& context)
|
{
|
_checkTwowayOnly(iceC_Structure_StructureApp_addCamera_name);
|
outAsync->invoke(iceC_Structure_StructureApp_addCamera_name, ::Ice::OperationMode::Normal, ::Ice::FormatType::DefaultFormat, context,
|
[&](::Ice::OutputStream* ostr)
|
{
|
ostr->writeAll(iceP_index, iceP_jsonConfig);
|
},
|
nullptr);
|
}
|
|
void
|
Structure::StructureAppPrx::_iceI_removeCamera(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<int>>& outAsync, int iceP_index, const ::Ice::Context& context)
|
{
|
_checkTwowayOnly(iceC_Structure_StructureApp_removeCamera_name);
|
outAsync->invoke(iceC_Structure_StructureApp_removeCamera_name, ::Ice::OperationMode::Normal, ::Ice::FormatType::DefaultFormat, context,
|
[&](::Ice::OutputStream* ostr)
|
{
|
ostr->writeAll(iceP_index);
|
},
|
nullptr);
|
}
|
|
void
|
Structure::StructureAppPrx::_iceI_removeAll(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<int>>& outAsync, const ::Ice::Context& context)
|
{
|
_checkTwowayOnly(iceC_Structure_StructureApp_removeAll_name);
|
outAsync->invoke(iceC_Structure_StructureApp_removeAll_name, ::Ice::OperationMode::Normal, ::Ice::FormatType::DefaultFormat, context,
|
nullptr,
|
nullptr);
|
}
|
|
void
|
Structure::StructureAppPrx::_iceI_getMaxCamCount(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<int>>& outAsync, const ::Ice::Context& context)
|
{
|
_checkTwowayOnly(iceC_Structure_StructureApp_getMaxCamCount_name);
|
outAsync->invoke(iceC_Structure_StructureApp_getMaxCamCount_name, ::Ice::OperationMode::Normal, ::Ice::FormatType::DefaultFormat, context,
|
nullptr,
|
nullptr);
|
}
|
|
void
|
Structure::StructureAppPrx::_iceI_getCurrentCamCount(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<int>>& outAsync, const ::Ice::Context& context)
|
{
|
_checkTwowayOnly(iceC_Structure_StructureApp_getCurrentCamCount_name);
|
outAsync->invoke(iceC_Structure_StructureApp_getCurrentCamCount_name, ::Ice::OperationMode::Normal, ::Ice::FormatType::DefaultFormat, context,
|
nullptr,
|
nullptr);
|
}
|
|
void
|
Structure::StructureAppPrx::_iceI_getRtmp(const ::std::shared_ptr<::IceInternal::OutgoingAsyncT<::std::string>>& outAsync, int iceP_index, const ::Ice::Context& context)
|
{
|
_checkTwowayOnly(iceC_Structure_StructureApp_getRtmp_name);
|
outAsync->invoke(iceC_Structure_StructureApp_getRtmp_name, ::Ice::OperationMode::Normal, ::Ice::FormatType::DefaultFormat, context,
|
[&](::Ice::OutputStream* ostr)
|
{
|
ostr->writeAll(iceP_index);
|
},
|
nullptr);
|
}
|
|
::std::shared_ptr<::Ice::ObjectPrx>
|
Structure::StructureAppPrx::_newInstance() const
|
{
|
return ::IceInternal::createProxy<StructureAppPrx>();
|
}
|
|
const ::std::string&
|
Structure::StructureAppPrx::ice_staticId()
|
{
|
return Structure::StructureApp::ice_staticId();
|
}
|
|
#else // C++98 mapping
|
|
namespace
|
{
|
|
const ::std::string iceC_Structure_StructureApp_addCamera_name = "addCamera";
|
|
const ::std::string iceC_Structure_StructureApp_removeCamera_name = "removeCamera";
|
|
const ::std::string iceC_Structure_StructureApp_removeAll_name = "removeAll";
|
|
const ::std::string iceC_Structure_StructureApp_getMaxCamCount_name = "getMaxCamCount";
|
|
const ::std::string iceC_Structure_StructureApp_getCurrentCamCount_name = "getCurrentCamCount";
|
|
const ::std::string iceC_Structure_StructureApp_getRtmp_name = "getRtmp";
|
|
}
|
::IceProxy::Ice::Object* ::IceProxy::Structure::upCast(::IceProxy::Structure::StructureApp* p) { return p; }
|
|
void
|
::IceProxy::Structure::_readProxy(::Ice::InputStream* istr, ::IceInternal::ProxyHandle< ::IceProxy::Structure::StructureApp>& v)
|
{
|
::Ice::ObjectPrx proxy;
|
istr->read(proxy);
|
if(!proxy)
|
{
|
v = 0;
|
}
|
else
|
{
|
v = new ::IceProxy::Structure::StructureApp;
|
v->_copyFrom(proxy);
|
}
|
}
|
|
::Ice::AsyncResultPtr
|
IceProxy::Structure::StructureApp::_iceI_begin_addCamera(::Ice::Int iceP_index, const ::std::string& iceP_jsonConfig, const ::Ice::Context& context, const ::IceInternal::CallbackBasePtr& del, const ::Ice::LocalObjectPtr& cookie, bool sync)
|
{
|
_checkTwowayOnly(iceC_Structure_StructureApp_addCamera_name, sync);
|
::IceInternal::OutgoingAsyncPtr result = new ::IceInternal::CallbackOutgoing(this, iceC_Structure_StructureApp_addCamera_name, del, cookie, sync);
|
try
|
{
|
result->prepare(iceC_Structure_StructureApp_addCamera_name, ::Ice::Normal, context);
|
::Ice::OutputStream* ostr = result->startWriteParams(::Ice::DefaultFormat);
|
ostr->write(iceP_index);
|
ostr->write(iceP_jsonConfig);
|
result->endWriteParams();
|
result->invoke(iceC_Structure_StructureApp_addCamera_name);
|
}
|
catch(const ::Ice::Exception& ex)
|
{
|
result->abort(ex);
|
}
|
return result;
|
}
|
|
::Ice::Int
|
IceProxy::Structure::StructureApp::end_addCamera(const ::Ice::AsyncResultPtr& result)
|
{
|
::Ice::AsyncResult::_check(result, this, iceC_Structure_StructureApp_addCamera_name);
|
::Ice::Int 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::Structure::StructureApp::_iceI_begin_removeCamera(::Ice::Int iceP_index, const ::Ice::Context& context, const ::IceInternal::CallbackBasePtr& del, const ::Ice::LocalObjectPtr& cookie, bool sync)
|
{
|
_checkTwowayOnly(iceC_Structure_StructureApp_removeCamera_name, sync);
|
::IceInternal::OutgoingAsyncPtr result = new ::IceInternal::CallbackOutgoing(this, iceC_Structure_StructureApp_removeCamera_name, del, cookie, sync);
|
try
|
{
|
result->prepare(iceC_Structure_StructureApp_removeCamera_name, ::Ice::Normal, context);
|
::Ice::OutputStream* ostr = result->startWriteParams(::Ice::DefaultFormat);
|
ostr->write(iceP_index);
|
result->endWriteParams();
|
result->invoke(iceC_Structure_StructureApp_removeCamera_name);
|
}
|
catch(const ::Ice::Exception& ex)
|
{
|
result->abort(ex);
|
}
|
return result;
|
}
|
|
::Ice::Int
|
IceProxy::Structure::StructureApp::end_removeCamera(const ::Ice::AsyncResultPtr& result)
|
{
|
::Ice::AsyncResult::_check(result, this, iceC_Structure_StructureApp_removeCamera_name);
|
::Ice::Int 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::Structure::StructureApp::_iceI_begin_removeAll(const ::Ice::Context& context, const ::IceInternal::CallbackBasePtr& del, const ::Ice::LocalObjectPtr& cookie, bool sync)
|
{
|
_checkTwowayOnly(iceC_Structure_StructureApp_removeAll_name, sync);
|
::IceInternal::OutgoingAsyncPtr result = new ::IceInternal::CallbackOutgoing(this, iceC_Structure_StructureApp_removeAll_name, del, cookie, sync);
|
try
|
{
|
result->prepare(iceC_Structure_StructureApp_removeAll_name, ::Ice::Normal, context);
|
result->writeEmptyParams();
|
result->invoke(iceC_Structure_StructureApp_removeAll_name);
|
}
|
catch(const ::Ice::Exception& ex)
|
{
|
result->abort(ex);
|
}
|
return result;
|
}
|
|
::Ice::Int
|
IceProxy::Structure::StructureApp::end_removeAll(const ::Ice::AsyncResultPtr& result)
|
{
|
::Ice::AsyncResult::_check(result, this, iceC_Structure_StructureApp_removeAll_name);
|
::Ice::Int 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::Structure::StructureApp::_iceI_begin_getMaxCamCount(const ::Ice::Context& context, const ::IceInternal::CallbackBasePtr& del, const ::Ice::LocalObjectPtr& cookie, bool sync)
|
{
|
_checkTwowayOnly(iceC_Structure_StructureApp_getMaxCamCount_name, sync);
|
::IceInternal::OutgoingAsyncPtr result = new ::IceInternal::CallbackOutgoing(this, iceC_Structure_StructureApp_getMaxCamCount_name, del, cookie, sync);
|
try
|
{
|
result->prepare(iceC_Structure_StructureApp_getMaxCamCount_name, ::Ice::Normal, context);
|
result->writeEmptyParams();
|
result->invoke(iceC_Structure_StructureApp_getMaxCamCount_name);
|
}
|
catch(const ::Ice::Exception& ex)
|
{
|
result->abort(ex);
|
}
|
return result;
|
}
|
|
::Ice::Int
|
IceProxy::Structure::StructureApp::end_getMaxCamCount(const ::Ice::AsyncResultPtr& result)
|
{
|
::Ice::AsyncResult::_check(result, this, iceC_Structure_StructureApp_getMaxCamCount_name);
|
::Ice::Int 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::Structure::StructureApp::_iceI_begin_getCurrentCamCount(const ::Ice::Context& context, const ::IceInternal::CallbackBasePtr& del, const ::Ice::LocalObjectPtr& cookie, bool sync)
|
{
|
_checkTwowayOnly(iceC_Structure_StructureApp_getCurrentCamCount_name, sync);
|
::IceInternal::OutgoingAsyncPtr result = new ::IceInternal::CallbackOutgoing(this, iceC_Structure_StructureApp_getCurrentCamCount_name, del, cookie, sync);
|
try
|
{
|
result->prepare(iceC_Structure_StructureApp_getCurrentCamCount_name, ::Ice::Normal, context);
|
result->writeEmptyParams();
|
result->invoke(iceC_Structure_StructureApp_getCurrentCamCount_name);
|
}
|
catch(const ::Ice::Exception& ex)
|
{
|
result->abort(ex);
|
}
|
return result;
|
}
|
|
::Ice::Int
|
IceProxy::Structure::StructureApp::end_getCurrentCamCount(const ::Ice::AsyncResultPtr& result)
|
{
|
::Ice::AsyncResult::_check(result, this, iceC_Structure_StructureApp_getCurrentCamCount_name);
|
::Ice::Int 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::Structure::StructureApp::_iceI_begin_getRtmp(::Ice::Int iceP_index, const ::Ice::Context& context, const ::IceInternal::CallbackBasePtr& del, const ::Ice::LocalObjectPtr& cookie, bool sync)
|
{
|
_checkTwowayOnly(iceC_Structure_StructureApp_getRtmp_name, sync);
|
::IceInternal::OutgoingAsyncPtr result = new ::IceInternal::CallbackOutgoing(this, iceC_Structure_StructureApp_getRtmp_name, del, cookie, sync);
|
try
|
{
|
result->prepare(iceC_Structure_StructureApp_getRtmp_name, ::Ice::Normal, context);
|
::Ice::OutputStream* ostr = result->startWriteParams(::Ice::DefaultFormat);
|
ostr->write(iceP_index);
|
result->endWriteParams();
|
result->invoke(iceC_Structure_StructureApp_getRtmp_name);
|
}
|
catch(const ::Ice::Exception& ex)
|
{
|
result->abort(ex);
|
}
|
return result;
|
}
|
|
::std::string
|
IceProxy::Structure::StructureApp::end_getRtmp(const ::Ice::AsyncResultPtr& result)
|
{
|
::Ice::AsyncResult::_check(result, this, iceC_Structure_StructureApp_getRtmp_name);
|
::std::string 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::Structure::StructureApp::_newInstance() const
|
{
|
return new StructureApp;
|
}
|
|
const ::std::string&
|
IceProxy::Structure::StructureApp::ice_staticId()
|
{
|
return ::Structure::StructureApp::ice_staticId();
|
}
|
|
Structure::StructureApp::~StructureApp()
|
{
|
}
|
|
::Ice::Object* Structure::upCast(::Structure::StructureApp* p) { return p; }
|
|
|
namespace
|
{
|
const ::std::string iceC_Structure_StructureApp_ids[2] =
|
{
|
"::Ice::Object",
|
"::Structure::StructureApp"
|
};
|
|
}
|
|
bool
|
Structure::StructureApp::ice_isA(const ::std::string& s, const ::Ice::Current&) const
|
{
|
return ::std::binary_search(iceC_Structure_StructureApp_ids, iceC_Structure_StructureApp_ids + 2, s);
|
}
|
|
::std::vector< ::std::string>
|
Structure::StructureApp::ice_ids(const ::Ice::Current&) const
|
{
|
return ::std::vector< ::std::string>(&iceC_Structure_StructureApp_ids[0], &iceC_Structure_StructureApp_ids[2]);
|
}
|
|
const ::std::string&
|
Structure::StructureApp::ice_id(const ::Ice::Current&) const
|
{
|
return ice_staticId();
|
}
|
|
const ::std::string&
|
Structure::StructureApp::ice_staticId()
|
{
|
#ifdef ICE_HAS_THREAD_SAFE_LOCAL_STATIC
|
static const ::std::string typeId = "::Structure::StructureApp";
|
return typeId;
|
#else
|
return iceC_Structure_StructureApp_ids[1];
|
#endif
|
}
|
|
bool
|
Structure::StructureApp::_iceD_addCamera(::IceInternal::Incoming& inS, const ::Ice::Current& current)
|
{
|
_iceCheckMode(::Ice::Normal, current.mode);
|
::Ice::InputStream* istr = inS.startReadParams();
|
::Ice::Int iceP_index;
|
::std::string iceP_jsonConfig;
|
istr->read(iceP_index);
|
istr->read(iceP_jsonConfig);
|
inS.endReadParams();
|
::Ice::Int ret = this->addCamera(iceP_index, iceP_jsonConfig, current);
|
::Ice::OutputStream* ostr = inS.startWriteParams();
|
ostr->write(ret);
|
inS.endWriteParams();
|
return true;
|
}
|
|
bool
|
Structure::StructureApp::_iceD_removeCamera(::IceInternal::Incoming& inS, const ::Ice::Current& current)
|
{
|
_iceCheckMode(::Ice::Normal, current.mode);
|
::Ice::InputStream* istr = inS.startReadParams();
|
::Ice::Int iceP_index;
|
istr->read(iceP_index);
|
inS.endReadParams();
|
::Ice::Int ret = this->removeCamera(iceP_index, current);
|
::Ice::OutputStream* ostr = inS.startWriteParams();
|
ostr->write(ret);
|
inS.endWriteParams();
|
return true;
|
}
|
|
bool
|
Structure::StructureApp::_iceD_removeAll(::IceInternal::Incoming& inS, const ::Ice::Current& current)
|
{
|
_iceCheckMode(::Ice::Normal, current.mode);
|
inS.readEmptyParams();
|
::Ice::Int ret = this->removeAll(current);
|
::Ice::OutputStream* ostr = inS.startWriteParams();
|
ostr->write(ret);
|
inS.endWriteParams();
|
return true;
|
}
|
|
bool
|
Structure::StructureApp::_iceD_getMaxCamCount(::IceInternal::Incoming& inS, const ::Ice::Current& current)
|
{
|
_iceCheckMode(::Ice::Normal, current.mode);
|
inS.readEmptyParams();
|
::Ice::Int ret = this->getMaxCamCount(current);
|
::Ice::OutputStream* ostr = inS.startWriteParams();
|
ostr->write(ret);
|
inS.endWriteParams();
|
return true;
|
}
|
|
bool
|
Structure::StructureApp::_iceD_getCurrentCamCount(::IceInternal::Incoming& inS, const ::Ice::Current& current)
|
{
|
_iceCheckMode(::Ice::Normal, current.mode);
|
inS.readEmptyParams();
|
::Ice::Int ret = this->getCurrentCamCount(current);
|
::Ice::OutputStream* ostr = inS.startWriteParams();
|
ostr->write(ret);
|
inS.endWriteParams();
|
return true;
|
}
|
|
bool
|
Structure::StructureApp::_iceD_getRtmp(::IceInternal::Incoming& inS, const ::Ice::Current& current)
|
{
|
_iceCheckMode(::Ice::Normal, current.mode);
|
::Ice::InputStream* istr = inS.startReadParams();
|
::Ice::Int iceP_index;
|
istr->read(iceP_index);
|
inS.endReadParams();
|
::std::string ret = this->getRtmp(iceP_index, current);
|
::Ice::OutputStream* ostr = inS.startWriteParams();
|
ostr->write(ret);
|
inS.endWriteParams();
|
return true;
|
}
|
|
namespace
|
{
|
const ::std::string iceC_Structure_StructureApp_all[] =
|
{
|
"addCamera",
|
"getCurrentCamCount",
|
"getMaxCamCount",
|
"getRtmp",
|
"ice_id",
|
"ice_ids",
|
"ice_isA",
|
"ice_ping",
|
"removeAll",
|
"removeCamera"
|
};
|
|
}
|
|
bool
|
Structure::StructureApp::_iceDispatch(::IceInternal::Incoming& in, const ::Ice::Current& current)
|
{
|
::std::pair<const ::std::string*, const ::std::string*> r = ::std::equal_range(iceC_Structure_StructureApp_all, iceC_Structure_StructureApp_all + 10, current.operation);
|
if(r.first == r.second)
|
{
|
throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
|
}
|
|
switch(r.first - iceC_Structure_StructureApp_all)
|
{
|
case 0:
|
{
|
return _iceD_addCamera(in, current);
|
}
|
case 1:
|
{
|
return _iceD_getCurrentCamCount(in, current);
|
}
|
case 2:
|
{
|
return _iceD_getMaxCamCount(in, current);
|
}
|
case 3:
|
{
|
return _iceD_getRtmp(in, current);
|
}
|
case 4:
|
{
|
return _iceD_ice_id(in, current);
|
}
|
case 5:
|
{
|
return _iceD_ice_ids(in, current);
|
}
|
case 6:
|
{
|
return _iceD_ice_isA(in, current);
|
}
|
case 7:
|
{
|
return _iceD_ice_ping(in, current);
|
}
|
case 8:
|
{
|
return _iceD_removeAll(in, current);
|
}
|
case 9:
|
{
|
return _iceD_removeCamera(in, current);
|
}
|
default:
|
{
|
assert(false);
|
throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
|
}
|
}
|
}
|
|
void
|
Structure::StructureApp::_iceWriteImpl(::Ice::OutputStream* ostr) const
|
{
|
ostr->startSlice(ice_staticId(), -1, true);
|
Ice::StreamWriter< ::Structure::StructureApp, ::Ice::OutputStream>::write(ostr, *this);
|
ostr->endSlice();
|
}
|
|
void
|
Structure::StructureApp::_iceReadImpl(::Ice::InputStream* istr)
|
{
|
istr->startSlice();
|
Ice::StreamReader< ::Structure::StructureApp, ::Ice::InputStream>::read(istr, *this);
|
istr->endSlice();
|
}
|
|
void
|
Structure::_icePatchObjectPtr(StructureAppPtr& handle, const ::Ice::ObjectPtr& v)
|
{
|
handle = ::Structure::StructureAppPtr::dynamicCast(v);
|
if(v && !handle)
|
{
|
IceInternal::Ex::throwUOE(::Structure::StructureApp::ice_staticId(), v);
|
}
|
}
|
|
namespace Ice
|
{
|
}
|
|
#endif
|