summaryrefslogtreecommitdiff
path: root/TAO_IDL/be/be_visitor_sequence/any_op_ch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO_IDL/be/be_visitor_sequence/any_op_ch.cpp')
-rw-r--r--TAO_IDL/be/be_visitor_sequence/any_op_ch.cpp38
1 files changed, 20 insertions, 18 deletions
diff --git a/TAO_IDL/be/be_visitor_sequence/any_op_ch.cpp b/TAO_IDL/be/be_visitor_sequence/any_op_ch.cpp
index ef6c3d6458c..2b9ea6f3573 100644
--- a/TAO_IDL/be/be_visitor_sequence/any_op_ch.cpp
+++ b/TAO_IDL/be/be_visitor_sequence/any_op_ch.cpp
@@ -43,16 +43,18 @@ be_visitor_sequence_any_op_ch::visit_sequence (be_sequence *node)
*os << be_nl << be_nl;
+ *os << be_nl_2;
+
*os << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__;
-
- *os << be_nl << be_nl;
+
+*os << be_nl_2;
ACE_CString name = node->full_name ();
-
+
bool alt = be_global->alt_mapping ();
-
- be_module *module = 0;
+
+ be_module *module = 0;
if (node->is_nested ())
{
AST_Decl *d = node;
@@ -77,7 +79,7 @@ be_visitor_sequence_any_op_ch::visit_sequence (be_sequence *node)
// Some compilers handle "any" operators in a namespace
// corresponding to their module, others do not.
*os << "\n\n#if defined (ACE_ANY_OPS_USE_NAMESPACE)\n";
-
+
be_util::gen_nested_namespace_begin (os, module);
// Generate the Any <<= and >>= operators.
@@ -86,22 +88,22 @@ be_visitor_sequence_any_op_ch::visit_sequence (be_sequence *node)
<< " operator<<= ( ::CORBA::Any &, const ::"
<< name.c_str ()
<< " &); // copying version" << be_nl;
-
+
if (!alt)
- {
+ {
*os << macro
<< " void"
<< " operator<<= ( ::CORBA::Any &, ::"
<< name.c_str ()
<< "*); // noncopying version" << be_nl;
-
+
*os << macro
<< " ::CORBA::Boolean"
<< " operator>>= (const ::CORBA::Any &, ::"
<< name.c_str ()
<< " *&); // deprecated" << be_nl;
}
-
+
*os << macro
<< " ::CORBA::Boolean"
<< " operator>>= (const ::CORBA::Any &, const ::"
@@ -109,37 +111,37 @@ be_visitor_sequence_any_op_ch::visit_sequence (be_sequence *node)
<< " *&);";
be_util::gen_nested_namespace_end (os, module);
-
+
// Emit #else.
- *os << be_nl << be_nl
+ *os << be_nl_2
<< "#else\n\n";
}
}
*os << be_global->core_versioning_begin () << be_nl;
-
+
// Generate the Any <<= and >>= operators.
*os << macro
<< " void"
<< " operator<<= ( ::CORBA::Any &, const "
<< name.c_str ()
<< " &); // copying version" << be_nl;
-
+
if (!alt)
- {
+ {
*os << macro
<< " void"
<< " operator<<= ( ::CORBA::Any &, "
<< name.c_str ()
<< "*); // noncopying version" << be_nl;
-
+
*os << macro
<< " ::CORBA::Boolean"
<< " operator>>= (const ::CORBA::Any &, "
<< name.c_str ()
<< " *&); // deprecated" << be_nl;
}
-
+
*os << macro
<< " ::CORBA::Boolean"
<< " operator>>= (const ::CORBA::Any &, const "
@@ -153,7 +155,7 @@ be_visitor_sequence_any_op_ch::visit_sequence (be_sequence *node)
*os << "\n\n#endif";
}
-
+
node->cli_hdr_any_op_gen (true);
return 0;
}