summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_visitor_operation/ami_exception_holder_operation_ch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_operation/ami_exception_holder_operation_ch.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/ami_exception_holder_operation_ch.cpp93
1 files changed, 0 insertions, 93 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/ami_exception_holder_operation_ch.cpp b/TAO/TAO_IDL/be/be_visitor_operation/ami_exception_holder_operation_ch.cpp
deleted file mode 100644
index 9a02c6cc2f1..00000000000
--- a/TAO/TAO_IDL/be/be_visitor_operation/ami_exception_holder_operation_ch.cpp
+++ /dev/null
@@ -1,93 +0,0 @@
-//
-// $Id$
-//
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO IDL
-//
-// = FILENAME
-// ami_exception_holder_operation_ch.cpp
-//
-// = DESCRIPTION
-// Visitor generating code for AMI Handler call back operation in
-// the client header.
-//
-// = AUTHOR
-// Aniruddha Gokhale and Alexander Babu Arulanthu
-// <alex@cs.wustl.edu>
-//
-// ============================================================================
-
-#include "idl.h"
-#include "idl_extern.h"
-#include "be.h"
-
-#include "be_visitor_operation.h"
-
-ACE_RCSID(be_visitor_operation, ami_exception_holder_operation_ch, "$Id$")
-
-
-// ************************************************************
-// Operation visitor for server header
-// ************************************************************
-
-be_visitor_operation_ami_exception_holder_operation_ch::be_visitor_operation_ami_exception_holder_operation_ch (be_visitor_context *ctx)
- : be_visitor_operation (ctx)
-{
-}
-
-be_visitor_operation_ami_exception_holder_operation_ch::~be_visitor_operation_ami_exception_holder_operation_ch (void)
-{
-}
-
-int
-be_visitor_operation_ami_exception_holder_operation_ch::visit_operation (be_operation *node)
-{
- TAO_OutStream *os; // output stream
-
- os = this->ctx_->stream ();
- this->ctx_->node (node); // save the node
-
- os->indent (); // start with the current indentation level
-
- // every operation is declared virtual in the client code
- *os << be_idt << "virtual ";
-
- // STEP I: generate the return type. Return type is simpy void.
- *os << "void raise_";
-
- // check if we are an attribute node in disguise
- if (this->ctx_->attribute ())
- {
- // now check if we are a "get" or "set" operation
- if (node->nmembers () == 1) // set
- *os << "set_";
- else
- *os << "get_";
- }
-
- // Generate the operation name.
- *os << node->local_name ()
- << " (";
-
- if (!idl_global->exception_support ())
- *os << "CORBA::Environment &ACE_TRY_ENV =" << be_idt << be_idt_nl
- << "TAO_default_environment ()" << be_uidt << be_uidt;
- *os << ")" << be_idt;
-
- // now generate the throw specs
- if (this->gen_throw_spec (node) == -1)
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- ASYS_TEXT ("(%N:%l) be_visitor_operation_ami_exception_holder_operation_ch")
- ASYS_TEXT ("::visit_operation - ")
- ASYS_TEXT ("Failed to generate throw spec\n")),
- -1);
- }
-
- *os << ";\n" << be_uidt << be_uidt;
-
- return 0;
-}