consumer_i.cpp
来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· C++ 代码 · 共 64 行
CPP
64 行
// Consumer_i.cpp,v 1.13 2002/01/29 20:20:40 okellogg Exp
// ===========================================================
//
// = LIBRARY
// TAO/examples/Callback_Quoter
//
// = FILENAME
// Consumer_i.cpp
//
// = DESCRIPTION
// Implements the Consumer_i class, which is used by the
// callback quoter client.
//
// = AUTHOR
// Kirthika Parameswaran <kirthika@cs.wustl.edu>
//
// ===========================================================
#include "Consumer_i.h"
Consumer_i::Consumer_i (void)
{
}
Consumer_i::~Consumer_i (void)
{
}
void
Consumer_i::push (const Callback_Quoter::Info &data
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
// On getting the needed information you now proceed to the next
// step, which could be obtaining the shares.
ACE_DEBUG ((LM_DEBUG,
"Selling 10,000 %s shares at %d!!\n",
data.stock_name.in (),
data.value));
}
void
Consumer_i::shutdown (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
// Instruct the ORB to shutdown.
ACE_DEBUG ((LM_DEBUG,
" consumer shutting down \n "));
this->orb_->shutdown ();
}
void
Consumer_i::orb (CORBA::ORB_ptr o)
{
// Makes a copy of the ORB pointer.
this->orb_ = CORBA::ORB::_duplicate (o);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?