Changes to attempt to silence bcc64x
[ACE_TAO.git] / TAO / TAO_IDL / be / be_visitor_root / any_op.cpp
blob439da73062d97df6bbc59d6550378b90122ef67d
2 //=============================================================================
3 /**
4 * @file any_op.cpp
6 * Visitor generating code for the Any operators for types defined in Root's
7 * scope.
9 * @author Aniruddha Gokhale
11 //=============================================================================
13 #include "root.h"
15 // ***************************************************************************
16 // Root visitor for generating Any operator declarations in the client header
17 // and stub
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 ()
29 int
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
35 // pass is done.
36 switch (this->ctx_->state ())
38 case TAO_CodeGen::TAO_ROOT_ANY_OP_CH:
39 this->ctx_->stream (tao_cg->anyop_header ());
40 break;
41 case TAO_CodeGen::TAO_ROOT_ANY_OP_CS:
42 this->ctx_->stream (tao_cg->anyop_source ());
43 break;
44 default:
45 break;
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")),
54 -1);
57 return 0;