📄 activate_with_id.h
字号:
// -*- C++ -*-
//=============================================================================
/**
* @file activate_with_id.h
*
* activate_with_id.h,v 1.6 2003/11/26 14:13:21 jwillemsen Exp
*
* @author Huang-Ming Huang <hh1@cse.wustl.edu>
*/
//=============================================================================
#ifndef ACTIVATE_WITH_ID_H
#define ACTIVATE_WITH_ID_H
template<class T>
void
activate_object_with_id (T * &result,
PortableServer::POA_var poa,
PortableServer::ServantBase *servant,
const FtRtecEventComm::ObjectId &oid
ACE_ENV_ARG_DECL_WITH_DEFAULTS)
{
const PortableServer::ObjectId& id = ACE_reinterpret_cast(const PortableServer::ObjectId& ,oid);
poa->activate_object_with_id(id,
servant ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
CORBA::Object_var object = poa->
id_to_reference(id ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
result = T::_narrow(object.in() ACE_ENV_ARG_PARAMETER);
}
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -