test_i.cpp
来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· C++ 代码 · 共 103 行
CPP
103 行
// test_i.cpp,v 1.1 2002/08/22 18:08:04 irfan Exp
//===========================================================================
//
//
// = FILENAME
// test_i.cpp
//
// = DESCRIPTION
// This is a simple test servant implementation
//
// = AUTHOR
// Irfan Pyarali
//
//===========================================================================
#include "test_i.h"
ACE_RCSID(TIE, test_i, "test_i.cpp,v 1.1 2002/08/22 18:08:04 irfan Exp")
// Constructor
Tie_i::Tie_i (CORBA::Long value)
: value_ (value)
{
}
// Return this->value
CORBA::Long
Tie_i::doit (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
return this->value_;
}
// Constructor
A_i::A_i (CORBA::Long value,
PortableServer::POA_ptr poa)
: value_ (value),
poa_ (PortableServer::POA::_duplicate (poa))
{
}
// Return this->value
CORBA::Long
A_i::doit (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
return this->value_;
}
// Return the Default POA of this Servant
PortableServer::POA_ptr
A_i::_default_POA (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
{
return PortableServer::POA::_duplicate (this->poa_.in ());
}
// Constructor
Outer_i::B_i::B_i (CORBA::Long value,
PortableServer::POA_ptr poa)
: value_ (value),
poa_ (PortableServer::POA::_duplicate (poa))
{
}
// Return this->value
CORBA::Long
Outer_i::B_i::doit (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
return this->value_;
}
// Return the Default POA of this Servant
PortableServer::POA_ptr
Outer_i::B_i::_default_POA (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
{
return PortableServer::POA::_duplicate (this->poa_.in ());
}
// Constructor
Outer_i::Inner_i::C_i::C_i (CORBA::Long value,
PortableServer::POA_ptr poa)
: value_ (value),
poa_ (PortableServer::POA::_duplicate (poa))
{
}
// Return this->value
CORBA::Long
Outer_i::Inner_i::C_i::doit (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
return this->value_;
}
// Return the Default POA of this Servant
PortableServer::POA_ptr
Outer_i::Inner_i::C_i::_default_POA (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
{
return PortableServer::POA::_duplicate (this->poa_.in ());
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?