2 //=============================================================================
6 * Visitor generating code for the Any operators for types defined in Root's
9 * @author Aniruddha Gokhale
11 //=============================================================================
15 // ***************************************************************************
16 // Root visitor for generating Any operator declarations in the client header
18 // ***************************************************************************
20 be_visitor_root_any_op::be_visitor_root_any_op (be_visitor_context
*ctx
)
21 : be_visitor_root (ctx
)
25 be_visitor_root_any_op::~be_visitor_root_any_op ()
30 be_visitor_root_any_op::visit_root (be_root
*node
)
32 if (be_global
->gen_anyop_files ())
34 // Switch streams, ctx will be reassigned when this
36 switch (this->ctx_
->state ())
38 case TAO_CodeGen::TAO_ROOT_ANY_OP_CH
:
39 this->ctx_
->stream (tao_cg
->anyop_header ());
41 case TAO_CodeGen::TAO_ROOT_ANY_OP_CS
:
42 this->ctx_
->stream (tao_cg
->anyop_source ());
49 if (this->visit_scope (node
) == -1)
51 ACE_ERROR_RETURN ((LM_ERROR
,
52 ACE_TEXT ("be_visitor_root::visit_root - ")
53 ACE_TEXT ("codegen for scope failed\n")),