proxy_brokers_ch.cpp
来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· C++ 代码 · 共 73 行
CPP
73 行
//
// proxy_brokers_ch.cpp,v 1.6 2003/03/12 16:50:33 parsons Exp
//
ACE_RCSID (be_visitor_interface,
proxy_brokers_ch,
"proxy_brokers_ch.cpp,v 1.6 2003/03/12 16:50:33 parsons Exp")
be_visitor_interface_proxy_brokers_ch::be_visitor_interface_proxy_brokers_ch (
be_visitor_context *ctx
)
: be_visitor_interface (ctx)
{
// No-Op.
}
be_visitor_interface_proxy_brokers_ch::~be_visitor_interface_proxy_brokers_ch (
void
)
{
// No-Op.
}
int
be_visitor_interface_proxy_brokers_ch::visit_interface (be_interface *node)
{
TAO_OutStream *os = this->ctx_->stream ();
// Generate Guards.
// Generate the class declaration.
*os << "// The Proxy Brokers are used by each interface to get" << be_nl
<< "// the right proxy for performing a call. In the new " << be_nl
<< "// collocation scheme, the proxy to be used can vary on" << be_nl
<< "// a call by call basis." << be_nl;
// Code Generation for the proxy brokers base class.
be_visitor_context ctx (*this->ctx_);
be_visitor_interface_base_proxy_broker_ch bpb_visitor (&ctx);
if (node->accept (&bpb_visitor) == -1)
{
ACE_ERROR_RETURN ((LM_ERROR,
"be_visitor_interface_ch::"
"visit_interface - "
"codegen for Base Proxy Broker class failed\n"),
-1);
}
ctx = *this->ctx_;
be_visitor_interface_remote_proxy_broker_ch rpb_visitor (&ctx);
if (node->accept (&rpb_visitor) == -1)
{
ACE_ERROR_RETURN ((LM_ERROR,
"be_visitor_interface_ch::"
"visit_interface - "
"codegen for Remote Proxy Broker class failed\n"),
-1);
}
return 0;
}
int be_visitor_interface_proxy_brokers_ch::visit_component (
be_component *node
)
{
return this->visit_interface (node);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?