root_ch.cpp
来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· C++ 代码 · 共 76 行
CPP
76 行
//
// root_ch.cpp,v 1.7 2003/10/28 18:30:38 bala Exp
//
// ============================================================================
//
// = LIBRARY
// TAO IDL
//
// = FILENAME
// root_ch.cpp
//
// = DESCRIPTION
// Visitor generating code for Root in the client header
//
// = AUTHOR
// Aniruddha Gokhale
//
// ============================================================================
ACE_RCSID (be_visitor_root,
root_ch,
"root_ch.cpp,v 1.7 2003/10/28 18:30:38 bala Exp")
// ********************************
// Root visitor for client header
// ********************************
be_visitor_root_ch::be_visitor_root_ch (be_visitor_context *ctx)
: be_visitor_root (ctx)
{
}
be_visitor_root_ch::~be_visitor_root_ch (void)
{
}
int
be_visitor_root_ch::init (void)
{
// First open the client-side header file for writing
if (tao_cg->start_client_header (be_global->be_get_client_hdr_fname ())
== -1)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_root_ch::init - "
"Error opening client header file\n"),
-1);
}
// Initialize the stream.
this->ctx_->stream (tao_cg->client_header ());
// If this IDL file contains an interface declaration, generated a
// forward declaration of the proxy broker for a possible collocated call.
if (ACE_BIT_ENABLED (idl_global->decls_seen_info_,
idl_global->decls_seen_masks.interface_seen_))
{
TAO_OutStream *os = this->ctx_->stream ();
*os << be_nl << be_nl
<< "// TAO_IDL - Generated from " << be_nl
<< "// " << __FILE__ << ":" << __LINE__;
*os << be_nl << be_nl
<< "namespace TAO" << be_nl
<< "{" << be_idt_nl
<< "class Collocation_Proxy_Broker;" << be_nl << be_nl
<< "template<typename T> class Narrow_Utils;" << be_nl
<< "template<typename T> class AbstractBase_Narrow_Utils;" << be_uidt_nl
<< "}";
}
return 0;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?