diff options
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_interface/ami_handler_ch.cpp')
-rw-r--r-- | TAO/TAO_IDL/be/be_visitor_interface/ami_handler_ch.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_interface/ami_handler_ch.cpp b/TAO/TAO_IDL/be/be_visitor_interface/ami_handler_ch.cpp index 8a47537176f..678314b2855 100644 --- a/TAO/TAO_IDL/be/be_visitor_interface/ami_handler_ch.cpp +++ b/TAO/TAO_IDL/be/be_visitor_interface/ami_handler_ch.cpp @@ -12,11 +12,11 @@ // // = DESCRIPTION // Visitor generating AMI Reply Handler code for Interfaces in the -// client header. +// client header. // // = AUTHOR // Aniruddha Gokhale and Alexander Babu Arulanthu -// <alex@cs.wustl.edu> +// <alex@cs.wustl.edu> // // ============================================================================ @@ -54,13 +54,13 @@ be_visitor_interface_ami_handler_ch::visit_interface (be_interface *node) ACE_OS::memset (namebuf, '\0', NAMEBUFSIZE); os = this->ctx_->stream (); - + // Generate the skeleton class name. // Start with whatever indentation level we are at. os->indent (); - // We shall have a POA_ prefix only if we are at the topmost level. + // We shall have a POA_ prefix only if we are at the topmost level. if (!node->is_nested ()) { // we are outermost @@ -82,8 +82,8 @@ be_visitor_interface_ami_handler_ch::visit_interface (be_interface *node) << "_ptr;" << be_nl; // Now generate the class definition. - // This class will inherit from the Messaging::ReplyHandler class. - *os << "class " << idl_global->stub_export_macro () + // This class will inherit from the Messaging::ReplyHandler class. + *os << "class " << idl_global->export_macro () << " " << namebuf << " : public POA_Messaging::ReplyHandler" << be_nl; @@ -95,20 +95,20 @@ be_visitor_interface_ami_handler_ch::visit_interface (be_interface *node) // Default constructor. *os << "protected:" << be_idt_nl << namebuf << " (void);\n" << be_uidt_nl; - - // Public portion starts. + + // Public portion starts. *os << "public:" << be_idt_nl - + // Copy constructor. << namebuf << " (const " << namebuf << "& rhs);" << be_nl - + // Destructor. << "virtual ~" << namebuf << " (void);\n\n" - + << be_nl; - + // Methods. - + // _is_a. *os << "virtual CORBA::Boolean _is_a (" << be_idt << be_idt_nl << "const char* logical_type_id," << be_nl @@ -116,12 +116,12 @@ be_visitor_interface_ami_handler_ch::visit_interface (be_interface *node) << "TAO_default_environment ()" << be_uidt << be_uidt_nl << ");\n" << be_uidt_nl; - + // _down_cast. *os << "virtual void* _downcast (" << be_idt << be_idt_nl << "const char* logical_type_id" << be_uidt_nl << ");\n" << be_uidt_nl; - + // add a skeleton for our _is_a method *os << "static void _is_a_skel (" << be_idt << be_idt_nl << "CORBA::ServerRequest &req," << be_nl @@ -193,7 +193,7 @@ be_visitor_interface_ami_handler_ch::visit_interface (be_interface *node) #if 0 // // @@ Alex: Do this: - // + // // Generate the collocated class be_visitor_context ctx (*this->ctx_); ctx.state (TAO_CodeGen::TAO_INTERFACE_COLLOCATED_SH); |