component_ci.cpp
来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· C++ 代码 · 共 74 行
CPP
74 行
//
// component_ci.cpp,v 1.2 2003/03/30 15:19:31 bala Exp
//
// ============================================================================
//
// = LIBRARY
// TAO IDL
//
// = FILENAME
// component_ci.cpp
//
// = DESCRIPTION
// Visitor generating code for Components in the client inline.
//
// = AUTHOR
// Jeff Parsons
//
// ============================================================================
ACE_RCSID (be_visitor_component,
component_ci,
"component_ci.cpp,v 1.2 2003/03/30 15:19:31 bala Exp")
// ******************************************************
// Component visitor for client inline
// ******************************************************
be_visitor_component_ci::be_visitor_component_ci (be_visitor_context *ctx)
: be_visitor_component (ctx)
{
}
be_visitor_component_ci::~be_visitor_component_ci (void)
{
}
int
be_visitor_component_ci::visit_component (be_component *node)
{
if (node->imported () || node->cli_inline_gen ())
{
return 0;
}
TAO_OutStream *os = this->ctx_->stream ();
*os << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__ << be_nl;
os->gen_ifdef_macro (node->flat_name (), "");
// Generate the constructor from stub and servant.
node->gen_stub_ctor (os);
*os << be_nl << be_nl
<< "ACE_INLINE" << be_nl;
*os << node->name () << "::"
<< node->local_name () << " ("
<< be_idt << be_idt_nl
<< "IOP::IOR *ior," << be_nl
<< "TAO_ORB_Core *oc" << be_uidt_nl
<< ")"
<< be_nl;
*os << ": ACE_NESTED_CLASS (CORBA, Object) (ior, oc)";
*os << be_nl << "{" << be_idt_nl
<< "}" ;
os->gen_endif ();
node->cli_inline_gen (I_TRUE);
return 0;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?