summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/be')
-rw-r--r--TAO/TAO_IDL/be/be_interface.cpp18
-rw-r--r--TAO/TAO_IDL/be/be_visitor_exception/exception_cs.cpp8
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/amh_ch.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/interface_ci.cpp6
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/interface_cs.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/interface_ss.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/ami_cs.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/arglist.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/operation.cpp52
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/cdr_op_cs.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/valuetype.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_ch.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_ch.cpp9
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_cs.cpp6
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_ch.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_cs.cpp4
16 files changed, 72 insertions, 57 deletions
diff --git a/TAO/TAO_IDL/be/be_interface.cpp b/TAO/TAO_IDL/be/be_interface.cpp
index d6911950150..d1bb3fea82a 100644
--- a/TAO/TAO_IDL/be/be_interface.cpp
+++ b/TAO/TAO_IDL/be/be_interface.cpp
@@ -494,7 +494,7 @@ be_interface::gen_stub_ctor (TAO_OutStream *os)
<< "TAO_Abstract_ServantBase *servant" << be_uidt_nl
<< ")"
<< be_nl;
- *os << ": CORBA_Object (objref, _tao_collocated, servant)";
+ *os << ": Object (objref, _tao_collocated, servant)";
if (this->has_mixed_parentage_)
{
@@ -515,7 +515,7 @@ be_interface::gen_stub_ctor (TAO_OutStream *os)
}
*os << "," << be_nl
- << "CORBA_AbstractBase (objref, _tao_collocated, servant)"
+ << "CORBA::AbstractBase (objref, _tao_collocated, servant)"
<< be_uidt << be_uidt;
}
else
@@ -564,9 +564,15 @@ be_interface::gen_var_defn (char *interface_name)
*ch << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
+ // Note the private inheritance from TAO_Base_var to emphasize that
+ // a given _var does not satisfy the IS-A relationship. _var
+ // classes are merely IMPLEMENTED-IN-TERMS-OF TAO_Base_var. This
+ // also invalidates assignments like:
+ // Foo_var v;
+ // TAO_Base_var * t = &v;
*ch << "class " << be_global->stub_export_macro ()
<< " " << namebuf
- << " : public TAO_Base_var" << be_nl;
+ << " : private TAO_Base_var" << be_nl;
*ch << "{" << be_nl;
*ch << "public:" << be_idt_nl;
@@ -642,7 +648,7 @@ be_interface::gen_var_defn (char *interface_name)
*ch << "CORBA::Object *" << be_nl;
}
- *ch << "ACE_ENV_ARG_DECL_NOT_USED" << be_uidt_nl
+ *ch << "ACE_ENV_ARG_DECL" << be_uidt_nl
<< ");" << be_uidt_nl;
if (this->is_abstract ())
@@ -664,8 +670,8 @@ be_interface::gen_var_defn (char *interface_name)
*ch << "private:" << be_idt_nl;
*ch << interface_name << "_ptr ptr_;" << be_nl;
*ch << "// Unimplemented - prevents widening assignment." << be_nl;
- *ch << interface_name << "_var (const TAO_Base_var &rhs);" << be_nl;
- *ch << interface_name << "_var &operator= (const TAO_Base_var &rhs);"
+ *ch << interface_name << "_var (const TAO_Base_var & rhs);" << be_nl;
+ *ch << interface_name << "_var & operator= (const TAO_Base_var & rhs);"
<< be_uidt_nl;
*ch << "};";
diff --git a/TAO/TAO_IDL/be/be_visitor_exception/exception_cs.cpp b/TAO/TAO_IDL/be/be_visitor_exception/exception_cs.cpp
index 7a03815c3ba..f8a4e3fc6c2 100644
--- a/TAO/TAO_IDL/be/be_visitor_exception/exception_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_exception/exception_cs.cpp
@@ -65,7 +65,7 @@ int be_visitor_exception_cs::visit_exception (be_exception *node)
// Default constructor.
*os << node->name () << "::" << node->local_name ()
<< " (void)" << be_idt_nl;
- *os << ": CORBA_UserException (" << be_idt << be_idt << be_idt_nl
+ *os << ": CORBA::UserException (" << be_idt << be_idt << be_idt_nl
<< "\"" << node->repoID () << "\"," << be_nl
<< "\"" << node->local_name () << "\"" << be_uidt_nl
<< ")" << be_uidt << be_uidt << be_uidt_nl;
@@ -81,7 +81,7 @@ int be_visitor_exception_cs::visit_exception (be_exception *node)
// Copy constructor.
*os << node->name () << "::" << node->local_name () << " (const ::"
<< node->name () << " &_tao_excp)" << be_idt_nl;
- *os << ": CORBA_UserException (" << be_idt << be_idt << be_idt_nl
+ *os << ": CORBA::UserException (" << be_idt << be_idt << be_idt_nl
<< "_tao_excp._rep_id ()," << be_nl
<< "_tao_excp._name ()" << be_uidt_nl
<< ")" << be_uidt << be_uidt << be_uidt_nl;
@@ -115,7 +115,7 @@ int be_visitor_exception_cs::visit_exception (be_exception *node)
*os << node->name () << "::operator= (const ::"
<< node->name () << " &_tao_excp)" << be_nl
<< "{" << be_idt_nl
- << "this->CORBA_UserException::operator= "
+ << "this->UserException::operator= "
<< "(_tao_excp);";
// Assign each individual member.
@@ -296,7 +296,7 @@ int be_visitor_exception_cs::visit_exception (be_exception *node)
-1);
}
- *os << " : CORBA_UserException ("
+ *os << " : CORBA::UserException ("
<< be_idt << be_idt << be_idt << be_idt_nl
<< "\"" << node->repoID () << "\"," << be_nl
<< "\"" << node->local_name () << "\"" << be_uidt_nl
diff --git a/TAO/TAO_IDL/be/be_visitor_interface/amh_ch.cpp b/TAO/TAO_IDL/be/be_visitor_interface/amh_ch.cpp
index 24c03a490fe..574cee004b2 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/amh_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/amh_ch.cpp
@@ -107,7 +107,7 @@ be_visitor_amh_interface_ch::visit_interface (be_interface *node)
{
// We do not inherit from anybody, hence we do so from the base
// CORBA::Object class.
- *os << "public virtual CORBA_Object" << be_uidt_nl;
+ *os << "public virtual CORBA::Object" << be_uidt_nl;
}
// Generate the body.
diff --git a/TAO/TAO_IDL/be/be_visitor_interface/interface_ci.cpp b/TAO/TAO_IDL/be/be_visitor_interface/interface_ci.cpp
index 9a83fb4d255..ee37390f8e8 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/interface_ci.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/interface_ci.cpp
@@ -75,13 +75,13 @@ be_visitor_interface_ci::visit_interface (be_interface *node)
<< "ACE_INLINE" << be_nl
<< node->name () << "::" << node->local_name ()
<< " (void)" << be_idt_nl
- << ": CORBA_AbstractBase ()" << be_uidt_nl
+ << ": CORBA::AbstractBase ()" << be_uidt_nl
<< "{}" << be_nl << be_nl;
*os << "ACE_INLINE" << be_nl
<< node->name () << "::" << node->local_name ()
<< " (const " << node->local_name () << " &rhs)" << be_idt_nl
- << ": CORBA_AbstractBase (rhs)" << be_uidt_nl
+ << ": CORBA::AbstractBase (rhs)" << be_uidt_nl
<< "{}" << be_nl << be_nl;
*os << "ACE_INLINE" << be_nl
@@ -91,7 +91,7 @@ be_visitor_interface_ci::visit_interface (be_interface *node)
<< "CORBA::Boolean _tao_collocated," << be_nl
<< "TAO_Abstract_ServantBase *servant" << be_uidt_nl
<< ")" << be_nl
- << ": CORBA_AbstractBase (objref, _tao_collocated, servant)"
+ << ": CORBA::AbstractBase (objref, _tao_collocated, servant)"
<< be_uidt_nl
<< "{}";
}
diff --git a/TAO/TAO_IDL/be/be_visitor_interface/interface_cs.cpp b/TAO/TAO_IDL/be/be_visitor_interface/interface_cs.cpp
index 47d301a24b5..845450e071c 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/interface_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/interface_cs.cpp
@@ -316,7 +316,7 @@ be_visitor_interface_cs::visit_interface (be_interface *node)
*os << "void" << be_nl
<< node->name () << "::_add_ref (void)" << be_nl
<< "{" << be_idt_nl
- << "this->CORBA_Object::_add_ref ();" << be_uidt_nl
+ << "this->Object::_add_ref ();" << be_uidt_nl
<< "}" << be_nl << be_nl;
}
@@ -538,7 +538,7 @@ be_visitor_interface_cs::visit_interface (be_interface *node)
}
else
{
- *os << "return this->CORBA_Object::_is_a (" << be_idt << be_idt_nl
+ *os << "return this->Object::_is_a (" << be_idt << be_idt_nl
<< "value" << be_nl
<< "ACE_ENV_ARG_PARAMETER" << be_uidt_nl
<< ");" << be_uidt << be_uidt_nl;
diff --git a/TAO/TAO_IDL/be/be_visitor_interface/interface_ss.cpp b/TAO/TAO_IDL/be/be_visitor_interface/interface_ss.cpp
index 0cc52dff024..3f11c294b27 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/interface_ss.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/interface_ss.cpp
@@ -251,7 +251,7 @@ be_visitor_interface_ss::visit_interface (be_interface *node)
*os << "{" << be_idt_nl;
*os << full_skel_name << " *_tao_impl = ("
<< full_skel_name << " *) _tao_servant;" << be_nl
- << "CORBA_InterfaceDef_ptr _tao_retval = 0;" << be_nl
+ << "CORBA::InterfaceDef_ptr _tao_retval = 0;" << be_nl
<< "CORBA::Boolean _tao_result = 0;" << be_nl << be_nl;
*os << "TAO_IFR_Client_Adapter *_tao_adapter =" << be_idt_nl
<< "ACE_Dynamic_Service<TAO_IFR_Client_Adapter>::instance ("
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/ami_cs.cpp b/TAO/TAO_IDL/be/be_visitor_operation/ami_cs.cpp
index 2da80088d2c..eecf9442577 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/ami_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/ami_cs.cpp
@@ -537,7 +537,7 @@ be_visitor_operation_ami_cs::gen_marshal_and_invoke (be_operation *node,
// the connection retry loop must be restarted so do not rethrow the
// caught exception.
*os << be_nl
- << "PortableInterceptor::ReplyStatus _tao_status =" << be_idt_nl
+ << "const PortableInterceptor::ReplyStatus _tao_status =" << be_idt_nl
<< "_tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER);" << be_uidt_nl
<< "ACE_TRY_CHECK;" << be_nl;
@@ -577,7 +577,7 @@ be_visitor_operation_ami_cs::gen_marshal_and_invoke (be_operation *node,
// support code, so we must explicitly check the status in the
// ClientRequestInfo object.
*os << be_nl
- << "PortableInterceptor::ReplyStatus _tao_status =" << be_idt_nl
+ << "const PortableInterceptor::ReplyStatus _tao_status =" << be_idt_nl
<< "_tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER);" << be_uidt_nl;
if (this->gen_check_exception (bt) == -1)
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/arglist.cpp b/TAO/TAO_IDL/be/be_visitor_operation/arglist.cpp
index 3d15b3b810d..e8156dd552f 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/arglist.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/arglist.cpp
@@ -53,7 +53,7 @@ be_visitor_operation_arglist::visit_operation (be_operation *node)
case TAO_CodeGen::TAO_OPERATION_ARGLIST_PROXY_IMPL_XH:
case TAO_CodeGen::TAO_OPERATION_ARGLIST_BASE_PROXY_IMPL_CH:
case TAO_CodeGen::TAO_OPERATION_ARGLIST_PROXY_IMPL_XS:
- *os << "CORBA_Object *_collocated_tao_target_";
+ *os << "CORBA::Object *_collocated_tao_target_";
if (node->argument_count () > 0)
{
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/operation.cpp b/TAO/TAO_IDL/be/be_visitor_operation/operation.cpp
index aa8fdb67a2f..8d83a268db7 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/operation.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/operation.cpp
@@ -778,9 +778,10 @@ be_visitor_operation::gen_marshal_and_invoke (
*os << be_nl
<< "if (_invoke_status == TAO_INVOKE_RESTART)" << be_idt_nl
<< "{" << be_idt_nl
- << "_tao_call.restart_flag (1);" << be_nl
- << "continue;" << be_uidt_nl
- << "}" << be_uidt_nl;
+ << "_tao_call.restart_flag (1);" << be_uidt_nl
+ << "}" << be_uidt_nl
+ << "else" << be_idt_nl
+ << "{" << be_idt_nl;
*os << "\n#endif /* TAO_HAS_INTERCEPTORS */" << be_nl;
@@ -923,8 +924,10 @@ be_visitor_operation::gen_marshal_and_invoke (
// one way operation since the sync scope policy may actually allow
// things such as LOCATION_FORWARD replies to be propagated back to
// the client (e.g. SYNC_WITH_TARGET).
+
*os << "else if (_invoke_status == TAO_INVOKE_RESTART)" << be_idt_nl
<< "{" << be_idt_nl
+ << "_tao_call.restart_flag (1);" << be_nl
<< "TAO_INTERCEPTOR (" << be_idt << be_idt_nl
<< "_tao_ri.reply_status (_invoke_status);" << be_nl
<< "_tao_vfr.receive_other (" << be_idt << be_idt_nl
@@ -932,10 +935,10 @@ be_visitor_operation::gen_marshal_and_invoke (
<< "ACE_ENV_ARG_PARAMETER" << be_uidt_nl
<< ");" << be_uidt_nl
<< "ACE_TRY_CHECK;" << be_uidt_nl
- << ")" << be_uidt_nl
- << be_nl
- << "continue;" << be_uidt_nl
- << "}" << be_uidt;
+ << ")" << be_uidt << be_uidt_nl
+ << "}" << be_uidt_nl
+ << "else" << be_idt_nl
+ << "{" << be_idt;
// If we reach here, we are ready to proceed.
// the code below this is for twoway operations only.
@@ -1139,8 +1142,12 @@ be_visitor_operation::gen_marshal_and_invoke (
}
*os << "ACE_TRY_CHECK;"
- << be_uidt_nl
- << "}" << be_uidt_nl;
+ << be_uidt_nl;
+
+ *os << "\n#endif /* TAO_HAS_INTERCEPTORS */" << be_nl;
+
+ *os << "}" << be_uidt << be_uidt_nl // End inner "else" block.
+ << "}" << be_uidt << be_uidt_nl; // End outer "else" block.
// Note that we do NOT catch the PortableInterceptor::ForwardRequest
// exception here. It is caught in the
@@ -1148,7 +1155,9 @@ be_visitor_operation::gen_marshal_and_invoke (
// prevent applications from being able to throw the exception in an
// effort to get an easy (but illegal) way to forward a request.
- *os << "ACE_CATCHANY" << be_idt_nl
+ *os << "\n#if TAO_HAS_INTERCEPTORS == 1" << be_nl
+ << "}" << be_uidt_nl
+ << "ACE_CATCHANY" << be_idt_nl
<< "{" << be_idt_nl;
// Update the exception field of the ClientRequestInfo.
@@ -1165,7 +1174,7 @@ be_visitor_operation::gen_marshal_and_invoke (
// the connection retry loop must be restarted so do not rethrow the
// caught exception.
*os << be_nl
- << "PortableInterceptor::ReplyStatus _tao_status =" << be_idt_nl
+ << "const PortableInterceptor::ReplyStatus _tao_status =" << be_idt_nl
<< "_tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER);" << be_uidt_nl
<< "ACE_TRY_CHECK;" << be_nl;
@@ -1208,7 +1217,7 @@ be_visitor_operation::gen_marshal_and_invoke (
// the connection retry loop must be restarted so do not throw the
// CORBA::UNKNOWN exception to convert the unhandled C++ exception.
*os << be_nl
- << "PortableInterceptor::ReplyStatus _tao_status =" << be_idt_nl
+ << "const PortableInterceptor::ReplyStatus _tao_status =" << be_idt_nl
<< "_tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER);" << be_uidt_nl
<< "ACE_TRY_CHECK;" << be_nl;
@@ -1248,7 +1257,7 @@ be_visitor_operation::gen_marshal_and_invoke (
// support code, so we must explicitly check the status in the
// ClientRequestInfo object.
*os << be_nl
- << "PortableInterceptor::ReplyStatus _tao_status =" << be_idt_nl
+ << "const PortableInterceptor::ReplyStatus _tao_status =" << be_idt_nl
<< "_tao_ri.reply_status (ACE_ENV_SINGLE_ARG_PARAMETER);" << be_uidt_nl;
if (this->gen_check_exception (bt) == -1)
@@ -1261,17 +1270,16 @@ be_visitor_operation::gen_marshal_and_invoke (
}
*os << be_nl
- << "if (_tao_status == PortableInterceptor::LOCATION_FORWARD" << be_nl
- << " || _tao_status == PortableInterceptor::TRANSPORT_RETRY)"
- << be_idt_nl
- << "{" << be_idt_nl
- << "continue;" << be_uidt_nl
- << "}" << be_uidt_nl;
-
+ << "if (_tao_status != PortableInterceptor::LOCATION_FORWARD" << be_nl
+ << " && _tao_status != PortableInterceptor::TRANSPORT_RETRY)"
+ << be_idt_nl;
+ // Continue to below break statement."
*os << "\n#endif /* TAO_HAS_INTERCEPTORS */" << be_nl;
- *os << be_nl << "break;" << be_uidt_nl
- << "}" << be_uidt;
+ *os << be_nl
+ << "if (_invoke_status != TAO_INVOKE_RESTART)" << be_idt_nl
+ << "break;" << be_uidt << be_uidt_nl
+ << "}" << be_uidt << be_uidt;
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/cdr_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/cdr_op_cs.cpp
index cc7e3f561ef..c062e2825ce 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/cdr_op_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/cdr_op_cs.cpp
@@ -82,7 +82,7 @@ be_visitor_valuetype_cdr_op_cs::visit_valuetype (be_valuetype *node)
<< ")" << be_uidt_nl
<< "{" << be_idt_nl;
*os << "return" << be_idt_nl
- << "CORBA_ValueBase::_tao_marshal (" << be_idt << be_idt_nl
+ << "CORBA::ValueBase::_tao_marshal (" << be_idt << be_idt_nl
<< "strm," << be_nl
<< "ACE_const_cast (" << be_idt << be_idt_nl
<< node->full_name () << " *," << be_nl
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype.cpp
index 6248fd149a7..0b97eda4a5f 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype.cpp
@@ -1008,12 +1008,12 @@ be_visitor_valuetype::gen_init_defn (be_valuetype *node)
*os << "class " << be_global->stub_export_macro ()
<< " " << node->local_name ()
- << "_init : public CORBA_ValueFactoryBase" << be_nl;
+ << "_init : public CORBA::ValueFactoryBase" << be_nl;
// Generate the body.
*os << "{" << be_nl
<< "public:" << be_idt_nl
- << "virtual ~" << node->local_name () << "_init ();" << be_nl;
+ << "virtual ~" << node->local_name () << "_init (void);" << be_nl;
*os << "virtual const char* tao_repository_id (void);\n" << be_nl;
*os << "// create () goes here" << be_nl;
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_ch.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_ch.cpp
index 34912629afb..636afaeda45 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_ch.cpp
@@ -151,7 +151,7 @@ be_visitor_valuetype_ch::visit_valuetype (be_valuetype *node)
** This is where we diverge for an ExceptionHolder ValueType.
** This is how we proceed:
** 1) Identify it is an AMH_ExceptionHolder class.
- ** 2) Inherit from CORBA_DefaultValueBaseRef i.e. provide a CONCRETE
+ ** 2) Inherit from CORBA::DefaultValueBaseRef i.e. provide a CONCRETE
** implementation for this ValueType! This is because the alternative
** design of deriving a concrete-exception-holder class that the IDL
** compiler again has to generate is superflous, unnecessary, more
@@ -199,7 +199,7 @@ be_visitor_valuetype_ch::visit_valuetype (be_valuetype *node)
*os << "," << be_nl;
}
- *os << "public virtual CORBA_DefaultValueRefCountBase";
+ *os << "public virtual CORBA::DefaultValueRefCountBase";
}
if (node->node_type () == AST_Decl::NT_eventtype)
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_ch.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_ch.cpp
index 4d057ca4d21..6565d3f6046 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_ch.cpp
@@ -73,7 +73,7 @@ be_visitor_valuetype_init_ch::visit_valuetype (be_valuetype *node)
//@@ If I'm generating concrete class I need a RefCounter.
os << "class " << be_global->stub_export_macro ()
<< " " << node->local_name ()
- << "_init : public virtual CORBA_ValueFactoryBase" << be_nl;
+ << "_init : public virtual CORBA::ValueFactoryBase" << be_nl;
// Generate the body.
os << "{" << be_nl
@@ -86,7 +86,8 @@ be_visitor_valuetype_init_ch::visit_valuetype (be_valuetype *node)
}
// Virtual destructor.
- os << "virtual ~" << node->local_name () << "_init (void);";
+ os << "virtual ~" << node->local_name () << "_init (void);"
+ << be_nl << be_nl;
if (this->visit_valuetype_scope (node) == -1)
@@ -101,7 +102,7 @@ be_visitor_valuetype_init_ch::visit_valuetype (be_valuetype *node)
// Generate _downcast method.
os << be_nl << be_nl
<< "static " << node->local_name () << "_init* "
- << "_downcast (CORBA_ValueFactoryBase* );";
+ << "_downcast (CORBA::ValueFactoryBase* );";
if (factory_style == FS_CONCRETE_FACTORY)
{
@@ -132,7 +133,7 @@ be_visitor_valuetype_init_ch::visit_valuetype (be_valuetype *node)
// Protected constructor.
os << be_uidt_nl << be_nl
<< "protected:" << be_idt_nl;
- os << node->local_name () << "_init ();";
+ os << node->local_name () << "_init (void);";
}
os << be_uidt_nl << "};";
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_cs.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_cs.cpp
index 7086baf33b2..121cf919a8b 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_cs.cpp
@@ -106,11 +106,11 @@ be_visitor_valuetype_init_cs::visit_valuetype (be_valuetype *node)
{
// generate create_for_unmarshal()
*os << be_nl << be_nl
- << "CORBA_ValueBase *" << be_nl
+ << "CORBA::ValueBase *" << be_nl
<< fname << "::create_for_unmarshal" << " "
<< "(void)" << be_nl
<< "{" << be_idt_nl
- << "CORBA_ValueBase *ret_val = 0;" << be_nl
+ << "CORBA::ValueBase *ret_val = 0;" << be_nl
<< "ACE_NEW_RETURN (" << be_idt << be_idt_nl
<< "ret_val," << be_nl
<< "OBV_" << node->full_name () << "," << be_nl
@@ -125,7 +125,7 @@ be_visitor_valuetype_init_cs::visit_valuetype (be_valuetype *node)
<< "CORBA::AbstractBase_ptr" << be_nl
<< fname << "::create_for_unmarshal_abstract (void)" << be_nl
<< "{" << be_idt_nl
- << "CORBA_AbstractBase *ret_val = 0;" << be_nl
+ << "CORBA::AbstractBase *ret_val = 0;" << be_nl
<< "ACE_NEW_RETURN (" << be_idt << be_idt_nl
<< "ret_val," << be_nl
<< "OBV_" << node->full_name () << "," << be_nl
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_ch.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_ch.cpp
index b0d443f93df..00ef4a5d46f 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_ch.cpp
@@ -128,7 +128,7 @@ be_visitor_valuetype_obv_ch::visit_valuetype (be_valuetype *node)
*os << "," << be_nl;
// dump the scoped name.
- *os << " public virtual CORBA_DefaultValueRefCountBase";
+ *os << " public virtual CORBA::DefaultValueRefCountBase";
}
*os << be_uidt_nl;
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_cs.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_cs.cpp
index a3b1702b7eb..e24df613acd 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_cs.cpp
@@ -104,7 +104,7 @@ be_visitor_valuetype_obv_cs::visit_valuetype (be_valuetype *node)
<< node->full_obv_skel_name ()
<< "::_add_ref (void)" << be_nl
<< "{" << be_idt_nl
- << "this->CORBA_DefaultValueRefCountBase::_add_ref ();"
+ << "this->DefaultValueRefCountBase::_add_ref ();"
<< be_uidt_nl
<< "}" << be_nl;
@@ -112,7 +112,7 @@ be_visitor_valuetype_obv_cs::visit_valuetype (be_valuetype *node)
<< node->full_obv_skel_name ()
<< "::_remove_ref (void)" << be_nl
<< "{" << be_idt_nl
- << "this->CORBA_DefaultValueRefCountBase::_remove_ref ();"
+ << "this->DefaultValueRefCountBase::_remove_ref ();"
<< be_uidt_nl
<< "}";
}