strategized_proxy_broker_sh.cpp
来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· C++ 代码 · 共 98 行
CPP
98 行
//
// strategized_proxy_broker_sh.cpp,v 1.12 2003/10/28 18:30:38 bala Exp
//
ACE_RCSID (be_visitor_interface,
base_proxy_broker_sh,
"strategized_proxy_broker_sh.cpp,v 1.12 2003/10/28 18:30:38 bala Exp")
be_visitor_interface_strategized_proxy_broker_sh::
be_visitor_interface_strategized_proxy_broker_sh (be_visitor_context *ctx)
: be_visitor_interface (ctx)
{
// No-Op.
}
be_visitor_interface_strategized_proxy_broker_sh::
~be_visitor_interface_strategized_proxy_broker_sh (void)
{
// No-Op.
}
int
be_visitor_interface_strategized_proxy_broker_sh::visit_interface (
be_interface *node
)
{
TAO_OutStream *os = this->ctx_->stream ();
*os << be_nl << be_nl
<< "///////////////////////////////////////////////////////////////////////"
<< be_nl
<< "// Strategized Proxy Broker Declaration " << be_nl
<< "//" << be_nl << be_nl;
*os << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
*os << "class " << be_global->skel_export_macro () << " "
<< node->strategized_proxy_broker_name () << be_idt_nl
<< ": public virtual "
<< "TAO::Collocation_Proxy_Broker" << be_uidt_nl << "{"
<< be_nl
<< "public: " << be_idt;
// Constructor
*os << be_nl
<< node->strategized_proxy_broker_name () << " (void);";
// Destructor
*os << be_nl << be_nl
<< "virtual ~" << node->strategized_proxy_broker_name () << " (void);";
*os << be_nl << be_nl
<< "TAO::Collocation_Strategy" << be_nl
<< "get_strategy (" << be_idt << be_idt_nl
<< "CORBA::Object_ptr obj" << be_nl
<< "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ")" << be_nl
<< "ACE_THROW_SPEC ((CORBA::SystemException));" << be_uidt;
*os << be_nl << be_nl
<< "void" << be_nl
<< "dispatch (" << be_idt << be_idt_nl
<< "CORBA::Object_ptr obj," << be_nl
<< "CORBA::Object_out forward_obj," << be_nl
<< "TAO::Argument ** args," << be_nl
<< "int num_args," << be_nl
<< "const char * op," << be_nl
<< "size_t op_len," << be_nl
<< "TAO::Collocation_Strategy strategy" << be_nl
<< "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ")" << be_nl
<< "ACE_THROW_SPEC ((CORBA::Exception));";
*os << be_uidt_nl << be_nl
<< "static " << node->strategized_proxy_broker_name ()
<< " *" << be_nl
<< "the" << node->strategized_proxy_broker_name ()
<< " (void);" << be_uidt_nl;
*os << "};";
*os << be_nl << be_nl
<< "//" << be_nl
<< "// End Strategized Proxy Broker Declaration " << be_nl
<< "///////////////////////////////////////////////////////////////////////"
<< be_nl << be_nl;
return 0;
}
int be_visitor_interface_strategized_proxy_broker_sh::visit_component (
be_component *node
)
{
return this->visit_interface (node);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?