2
// any_op_ch.cpp,v 1.13 2003/04/22 20:50:06 bala Exp
5
// ============================================================================
14
// Visitor generating code for Any operators for the Sequence
19
// ============================================================================
21
ACE_RCSID (be_visitor_sequence,
23
"any_op_ch.cpp,v 1.13 2003/04/22 20:50:06 bala Exp")
25
// ***************************************************************************
26
// Sequence visitor for generating Any operator declarations in the client header
27
// ***************************************************************************
29
be_visitor_sequence_any_op_ch::be_visitor_sequence_any_op_ch (
30
be_visitor_context *ctx
32
: be_visitor_decl (ctx)
36
be_visitor_sequence_any_op_ch::~be_visitor_sequence_any_op_ch (void)
41
be_visitor_sequence_any_op_ch::visit_sequence (be_sequence *node)
43
if (node->cli_hdr_any_op_gen ()
49
TAO_OutStream *os = this->ctx_->stream ();
51
*os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
52
<< "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
54
// Generate the Any <<= and >>= operators.
55
*os << be_global->stub_export_macro ();
57
<< " operator<<= (CORBA::Any &, const ";
59
*os << " &); // copying version" << be_nl;
60
*os << be_global->stub_export_macro ();
62
<< " operator<<= (CORBA::Any &, ";
64
*os << "*); // noncopying version" << be_nl;
65
*os << be_global->stub_export_macro ();
66
*os << " CORBA::Boolean"
67
<< " operator>>= (const CORBA::Any &, ";
69
*os << " *&); // deprecated" << be_nl;
70
*os << be_global->stub_export_macro ();
71
*os << " CORBA::Boolean"
72
<< " operator>>= (const CORBA::Any &, const ";
76
node->cli_hdr_any_op_gen (1);