summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_visitor_operation/ami_handler_result_arg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_operation/ami_handler_result_arg.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/ami_handler_result_arg.cpp186
1 files changed, 0 insertions, 186 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/ami_handler_result_arg.cpp b/TAO/TAO_IDL/be/be_visitor_operation/ami_handler_result_arg.cpp
deleted file mode 100644
index 034b57745f0..00000000000
--- a/TAO/TAO_IDL/be/be_visitor_operation/ami_handler_result_arg.cpp
+++ /dev/null
@@ -1,186 +0,0 @@
-//
-// $Id$
-//
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO IDL
-//
-// = FILENAME
-// ami_handler_result_arg.cpp
-//
-// = DESCRIPTION
-// Visitor that generates the result argument in a call back method
-// of a Reply Handler.
-//
-// = AUTHOR
-// Aniruddha Gokhale and Alexander Babu Arulanthu
-// <alex@cs.wustl.edu>
-//
-// ============================================================================
-
-#include "idl.h"
-#include "be.h"
-#include "be_visitor_argument.h"
-
-ACE_RCSID(be_visitor_operation, ami_handler_result_arg, "$Id$")
-
-
-// ************************************************************
-// Visitor for parameter list in AMI Handler call back declarations
-// and definitions.
-// ************************************************************
-
-be_visitor_operation_ami_handler_result_arg::be_visitor_operation_ami_handler_result_arg (be_visitor_context *ctx)
- : be_visitor_decl (ctx)
-{
-}
-
-be_visitor_operation_ami_handler_result_arg::~be_visitor_operation_ami_handler_result_arg (void)
-{
-}
-
-int
-be_visitor_operation_ami_handler_result_arg::visit_array (be_array *node)
-{
- TAO_OutStream *os = this->ctx_->stream (); // get output stream
-
- be_type *bt = be_type::narrow_from_decl (node);
-
- *os << "const " << bt->type_name (node) << " _tao_ami_result";
-
- return 0;
-}
-
-int
-be_visitor_operation_ami_handler_result_arg::visit_enum (be_enum *node)
-{
- TAO_OutStream *os = this->ctx_->stream (); // get output stream
- *os << this->type_name (node) << " _tao_ami_result" ;
- return 0;
-}
-
-int
-be_visitor_operation_ami_handler_result_arg::visit_interface (be_interface *node)
-{
- TAO_OutStream *os = this->ctx_->stream (); // get output stream
- *os << this->type_name (node, "_ptr") << " _tao_ami_result";
- return 0;
-}
-
-int
-be_visitor_operation_ami_handler_result_arg::visit_interface_fwd (be_interface_fwd *node)
-{
- TAO_OutStream *os = this->ctx_->stream (); // get output stream
- *os << this->type_name (node, "_ptr") << " _tao_ami_result";
- return 0;
-}
-
-int
-be_visitor_operation_ami_handler_result_arg::visit_native (be_native *node)
-{
- TAO_OutStream *os = this->ctx_->stream (); // get output stream
- *os << this->type_name (node) << " _tao_ami_result";
- return 0;
-}
-
-int
-be_visitor_operation_ami_handler_result_arg::visit_predefined_type (be_predefined_type *node)
-{
- TAO_OutStream *os = this->ctx_->stream (); // get output stream
-
- // check if the type is an any
- if (node->pt () == AST_PredefinedType::PT_any)
- {
- *os << "const " << this->type_name (node) << " &" << " _tao_ami_result";
- }
- else if (node->pt () == AST_PredefinedType::PT_pseudo) // e.g., CORBA::Object
- {
- *os << this->type_name (node, "_ptr") << " _tao_ami_result";
- }
- else // simple predefined types
- {
- *os << this->type_name (node) << " _tao_ami_result";
- }
-
- return 0;
-}
-
-int
-be_visitor_operation_ami_handler_result_arg::visit_sequence (be_sequence *node)
-{
- TAO_OutStream *os = this->ctx_->stream (); // get the stream
- *os << "const " << this->type_name (node) << " &" << " _tao_ami_result";
- return 0;
-}
-
-int
-be_visitor_operation_ami_handler_result_arg::visit_string (be_string *node)
-{
- TAO_OutStream *os = this->ctx_->stream (); // get the stream
-
- if (node->width () == sizeof (char))
- {
- *os << "const char *" << " _tao_ami_result";
- }
- else
- {
- *os << "const CORBA::WChar *" << " _tao_ami_result";
- }
-
- return 0;
-}
-
-int
-be_visitor_operation_ami_handler_result_arg::visit_structure (be_structure *node)
-{
- TAO_OutStream *os = this->ctx_->stream (); // get the stream
- *os << "const " << this->type_name (node) << " &" << " _tao_ami_result";
- return 0;
-}
-
-int
-be_visitor_operation_ami_handler_result_arg::visit_union (be_union *node)
-{
- TAO_OutStream *os = this->ctx_->stream (); // get the stream
- *os << "const " << this->type_name (node) << " &" << " _tao_ami_result";
- return 0;
-}
-
-int
-be_visitor_operation_ami_handler_result_arg::visit_typedef (be_typedef *node)
-{
- this->ctx_->alias (node);
- if (node->primitive_base_type ()->accept (this) == -1)
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "be_visitor_operation_ami_handler_result_arg::"
- "visit_typedef - "
- "accept on primitive type failed\n"),
- -1);
- }
- this->ctx_->alias (0);
- return 0;
-}
-
-
-#ifdef IDL_HAS_VALUETYPE
-
-int
-be_visitor_operation_ami_handler_result_arg::visit_valuetype (be_valuetype *node)
-{
- TAO_OutStream *os = this->ctx_->stream (); // get the stream
- *os << this->type_name (node) << " *" << " _tao_ami_result";
- return 0;
-}
-
-int
-be_visitor_operation_ami_handler_result_arg::visit_valuetype_fwd (be_valuetype_fwd *node)
-{
- TAO_OutStream *os = this->ctx_->stream (); // get the stream
- *os << "const " << this->type_name (node) << " *" << " _tao_ami_result";
- return 0;
-}
-
-#endif /* IDL_HAS_VALUETYPE */