summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_visitor_valuetype/ami_exception_holder_ch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_valuetype/ami_exception_holder_ch.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/ami_exception_holder_ch.cpp51
1 files changed, 5 insertions, 46 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/ami_exception_holder_ch.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/ami_exception_holder_ch.cpp
index 32ebe90e547..84d1bd214c5 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/ami_exception_holder_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/ami_exception_holder_ch.cpp
@@ -18,8 +18,8 @@
//
// ============================================================================
-ACE_RCSID (be_visitor_valuetype,
- ami_exception_holder_ch,
+ACE_RCSID (be_visitor_valuetype,
+ ami_exception_holder_ch,
"$Id$")
// ******************************************************
@@ -38,58 +38,17 @@ be_visitor_valuetype_ami_exception_holder_ch::
}
int
-be_visitor_valuetype_ami_exception_holder_ch::visit_valuetype (
- be_valuetype *node
- )
-{
- TAO_OutStream *os = this->ctx_->stream ();
-
- // Generate the implemenation of the Messaging aware ORB.
- *os << be_nl << be_nl
- << "class _tao_" << node->local_name () << be_idt_nl
- << ": public ";
-
- if (!node->is_nested ())
- {
- *os << "OBV_";
- }
-
- *os << node->local_name () << "," << be_nl
- << " public virtual OBV_Messaging::ExceptionHolder," << be_nl
- << " public virtual ::CORBA::DefaultValueRefCountBase" << be_uidt_nl
- << "{" << be_nl;
- *os << "public:" << be_idt_nl;
- *os << "_tao_" << node->local_name () << " ();" << be_nl << be_nl;
- *os << "~_tao_" << node->local_name () << " ();";
-
- if (this->visit_valuetype_scope (node) == -1)
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "(%N:%l) be_visitor_valuetype_ami_"
- "exception_holder_cs::"
- "visit_valuetype - "
- "codegen for scope failed\n"),
- -1);
- }
-
- *os << be_uidt_nl
- << "};";
-
- return 0;
-}
-
-int
be_visitor_valuetype_ami_exception_holder_ch::visit_operation (
be_operation *node
)
{
be_visitor_context ctx (*this->ctx_);
-
+
// Using the implementation class visitor is strange, but we
// do it here because it's the only one that generates the
// environment variable in the operation signature without
// the trailing _WITH_DEFAULTS, which is what we want.
- // For performance reasons, we would rather there be a
+ // For performance reasons, we would rather there be a
// compile error if the user does not pass an environment
// variable, than create a default one, which causes extra
// TSS activity.
@@ -106,7 +65,7 @@ be_visitor_valuetype_ami_exception_holder_ch::visit_operation (
}
TAO_OutStream *os = this->ctx_->stream ();
-
+
*os << be_uidt;
return 0;