2
// component_ci.cpp,v 1.2 2003/03/30 15:19:31 bala Exp
5
// ============================================================================
14
// Visitor generating code for Components in the client inline.
19
// ============================================================================
21
ACE_RCSID (be_visitor_component,
23
"component_ci.cpp,v 1.2 2003/03/30 15:19:31 bala Exp")
25
// ******************************************************
26
// Component visitor for client inline
27
// ******************************************************
29
be_visitor_component_ci::be_visitor_component_ci (be_visitor_context *ctx)
30
: be_visitor_component (ctx)
34
be_visitor_component_ci::~be_visitor_component_ci (void)
39
be_visitor_component_ci::visit_component (be_component *node)
41
if (node->imported () || node->cli_inline_gen ())
46
TAO_OutStream *os = this->ctx_->stream ();
48
*os << "// TAO_IDL - Generated from" << be_nl
49
<< "// " << __FILE__ << ":" << __LINE__ << be_nl;
51
os->gen_ifdef_macro (node->flat_name (), "");
53
// Generate the constructor from stub and servant.
54
node->gen_stub_ctor (os);
57
<< "ACE_INLINE" << be_nl;
58
*os << node->name () << "::"
59
<< node->local_name () << " ("
60
<< be_idt << be_idt_nl
61
<< "IOP::IOR *ior," << be_nl
62
<< "TAO_ORB_Core *oc" << be_uidt_nl
65
*os << ": ACE_NESTED_CLASS (CORBA, Object) (ior, oc)";
67
*os << be_nl << "{" << be_idt_nl
71
node->cli_inline_gen (I_TRUE);