2
// any_op_ch.cpp,v 1.9 2002/09/25 16:25:35 parsons Exp
5
// ============================================================================
14
// Visitor generating code for Enums for the Any operators
19
// ============================================================================
21
ACE_RCSID (be_visitor_enum,
23
"any_op_ch.cpp,v 1.9 2002/09/25 16:25:35 parsons Exp")
25
// ***************************************************************************
26
// Enum visitor for generating Any operator declarations in the client header
27
// ***************************************************************************
29
be_visitor_enum_any_op_ch::be_visitor_enum_any_op_ch (
30
be_visitor_context *ctx
32
: be_visitor_scope (ctx)
36
be_visitor_enum_any_op_ch::~be_visitor_enum_any_op_ch (void)
41
be_visitor_enum_any_op_ch::visit_enum (be_enum *node)
43
if (node->cli_hdr_any_op_gen () || node->imported ())
48
TAO_OutStream *os = this->ctx_->stream ();
50
*os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
51
<< "// " << __FILE__ << ":" << __LINE__;
53
// Generate the Any <<= and >>= operators.
55
<< be_global->stub_export_macro () << " void"
56
<< " operator<<= (CORBA::Any &, " << node->name ()
58
*os << be_global->stub_export_macro () << " CORBA::Boolean"
59
<< " operator>>= (const CORBA::Any &, "
60
<< node->name () << " &);";
62
node->cli_hdr_any_op_gen (1);