本文整理汇总了C++中ice::AsyncResultPtr::__getObserver方法的典型用法代码示例。如果您正苦于以下问题:C++ AsyncResultPtr::__getObserver方法的具体用法?C++ AsyncResultPtr::__getObserver怎么用?C++ AsyncResultPtr::__getObserver使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ice::AsyncResultPtr
的用法示例。
在下文中一共展示了AsyncResultPtr::__getObserver方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: catch
::Ice::Int
IceProxy::CoreSpace::CoreBase::end_sub(const ::Ice::AsyncResultPtr& __result)
{
::Ice::AsyncResult::__check(__result, this, __CoreSpace__CoreBase__sub_name);
::Ice::Int __ret;
bool __ok = __result->__wait();
try
{
if(!__ok)
{
try
{
__result->__throwUserException();
}
catch(const ::Ice::UserException& __ex)
{
throw ::Ice::UnknownUserException(__FILE__, __LINE__, __ex.ice_name());
}
}
::IceInternal::BasicStream* __is = __result->__startReadParams();
__is->read(__ret);
__result->__endReadParams();
return __ret;
}
catch(const ::Ice::LocalException& ex)
{
__result->__getObserver().failed(ex.ice_name());
throw;
}
}
示例2: catch
void
IceProxy::RoboCompGenericBase::GenericBase::end_getBasePose(::Ice::Int& x, ::Ice::Int& z, ::Ice::Float& alpha, const ::Ice::AsyncResultPtr& __result)
{
::Ice::AsyncResult::__check(__result, this, __RoboCompGenericBase__GenericBase__getBasePose_name);
bool __ok = __result->__wait();
try
{
if(!__ok)
{
try
{
__result->__throwUserException();
}
catch(const ::RoboCompGenericBase::HardwareFailedException&)
{
throw;
}
catch(const ::Ice::UserException& __ex)
{
throw ::Ice::UnknownUserException(__FILE__, __LINE__, __ex.ice_name());
}
}
::IceInternal::BasicStream* __is = __result->__startReadParams();
__is->read(x);
__is->read(z);
__is->read(alpha);
__result->__endReadParams();
}
catch(const ::Ice::LocalException& ex)
{
__result->__getObserver().failed(ex.ice_name());
throw;
}
}
示例3: catch
void
IceProxy::OWSMODULE::DataOperation::end_CheckState(::OWSMODULE::OWSTask& task, const ::Ice::AsyncResultPtr& __result)
{
::Ice::AsyncResult::__check(__result, this, __OWSMODULE__DataOperation__CheckState_name);
bool __ok = __result->__wait();
try
{
if(!__ok)
{
try
{
__result->__throwUserException();
}
catch(const ::Ice::UserException& __ex)
{
throw ::Ice::UnknownUserException(__FILE__, __LINE__, __ex.ice_name());
}
}
::IceInternal::BasicStream* __is = __result->__startReadParams();
__is->read(task);
__result->__endReadParams();
}
catch(const ::Ice::LocalException& ex)
{
__result->__getObserver().failed(ex.ice_name());
throw;
}
}
示例4: catch
::std::string
IceProxy::com::pera::base::runtime::remote::RobotRemoteService::end_runLocalRobotStart(const ::Ice::AsyncResultPtr& __result)
{
::Ice::AsyncResult::__check(__result, this, __com__pera__base__runtime__remote__RobotRemoteService__runLocalRobotStart_name);
::std::string __ret;
bool __ok = __result->__wait();
try
{
if(!__ok)
{
try
{
__result->__throwUserException();
}
catch(const ::com::pera::base::runtime::remote::RemoteException&)
{
throw;
}
catch(const ::Ice::UserException& __ex)
{
throw ::Ice::UnknownUserException(__FILE__, __LINE__, __ex.ice_name());
}
}
::IceInternal::BasicStream* __is = __result->__startReadParams();
__is->read(__ret);
__result->__endReadParams();
return __ret;
}
catch(const ::Ice::LocalException& ex)
{
__result->__getObserver().failed(ex.ice_name());
throw;
}
}
示例5: catch
::RoboCompGetAprilTags::listaMarcas
IceProxy::RoboCompGetAprilTags::GetAprilTags::end_checkMarcas(const ::Ice::AsyncResultPtr& __result)
{
::Ice::AsyncResult::__check(__result, this, __RoboCompGetAprilTags__GetAprilTags__checkMarcas_name);
::RoboCompGetAprilTags::listaMarcas __ret;
bool __ok = __result->__wait();
try
{
if(!__ok)
{
try
{
__result->__throwUserException();
}
catch(const ::Ice::UserException& __ex)
{
throw ::Ice::UnknownUserException(__FILE__, __LINE__, __ex.ice_name());
}
}
::IceInternal::BasicStream* __is = __result->__startReadParams();
__is->read(__ret);
__result->__endReadParams();
return __ret;
}
catch(const ::Ice::LocalException& ex)
{
__result->__getObserver().failed(ex.ice_name());
throw;
}
}
示例6: catch
bool
IceProxy::RoboCompPlanning::Planning::end_getNextAction(::RoboCompPlanning::Plan& solution, const ::Ice::AsyncResultPtr& __result)
{
::Ice::AsyncResult::__check(__result, this, __RoboCompPlanning__Planning__getNextAction_name);
bool __ret;
bool __ok = __result->__wait();
try
{
if(!__ok)
{
try
{
__result->__throwUserException();
}
catch(const ::RoboCompPlanning::ServerException&)
{
throw;
}
catch(const ::Ice::UserException& __ex)
{
throw ::Ice::UnknownUserException(__FILE__, __LINE__, __ex.ice_name());
}
}
::IceInternal::BasicStream* __is = __result->__startReadParams();
__is->read(solution);
__is->read(__ret);
__result->__endReadParams();
return __ret;
}
catch(const ::Ice::LocalException& ex)
{
__result->__getObserver().failed(ex.ice_name());
throw;
}
}
示例7: catch
::std::string
IceProxy::pera::Demo601Server::PeraDemo601ServerService::end_InvokeMethod(const ::Ice::AsyncResultPtr& __result)
{
::Ice::AsyncResult::__check(__result, this, __pera__Demo601Server__PeraDemo601ServerService__InvokeMethod_name);
::std::string __ret;
bool __ok = __result->__wait();
try
{
if(!__ok)
{
try
{
__result->__throwUserException();
}
catch(const ::pera::Demo601Server::InvokeException&)
{
throw;
}
catch(const ::Ice::UserException& __ex)
{
throw ::Ice::UnknownUserException(__FILE__, __LINE__, __ex.ice_name());
}
}
::IceInternal::BasicStream* __is = __result->__startReadParams();
__is->read(__ret);
__result->__endReadParams();
return __ret;
}
catch(const ::Ice::LocalException& ex)
{
__result->__getObserver().failed(ex.ice_name());
throw;
}
}
示例8: catch
bool
IceProxy::kelp::cmd2kcn::end_delSelfConfig(const ::Ice::AsyncResultPtr& __result)
{
::Ice::AsyncResult::__check(__result, this, __kelp__cmd2kcn__delSelfConfig_name);
bool __ret;
bool __ok = __result->__wait();
try
{
if(!__ok)
{
try
{
__result->__throwUserException();
}
catch(const ::Ice::UserException& __ex)
{
throw ::Ice::UnknownUserException(__FILE__, __LINE__, __ex.ice_name());
}
}
::IceInternal::BasicStream* __is = __result->__startReadParams();
__is->read(__ret);
__result->__endReadParams();
return __ret;
}
catch(const ::Ice::LocalException& ex)
{
__result->__getObserver().failed(ex.ice_name());
throw;
}
}
示例9: catch
void
IceProxy::RoboCompJoyStick::JoyStick::end_readJoyStickBufferedData(::RoboCompJoyStick::JoyStickBufferedData& gbd, const ::Ice::AsyncResultPtr& __result)
{
::Ice::AsyncResult::__check(__result, this, __RoboCompJoyStick__JoyStick__readJoyStickBufferedData_name);
bool __ok = __result->__wait();
try
{
if(!__ok)
{
try
{
__result->__throwUserException();
}
catch(const ::Ice::UserException& __ex)
{
throw ::Ice::UnknownUserException(__FILE__, __LINE__, __ex.ice_name());
}
}
::IceInternal::BasicStream* __is = __result->__startReadParams();
__is->read(gbd);
__result->__endReadParams();
}
catch(const ::Ice::LocalException& ex)
{
__result->__getObserver().failed(ex.ice_name());
throw;
}
}