summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_visitor_interface/interface_ch.cpp
diff options
context:
space:
mode:
authorparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2004-09-29 15:17:46 +0000
committerparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2004-09-29 15:17:46 +0000
commit9b52187edfe65c71883cc58578bdc33979f3b083 (patch)
tree4e2d7f8ddbb1de39279927a9a88b2f31f33b1ae1 /TAO/TAO_IDL/be/be_visitor_interface/interface_ch.cpp
parent6c93f38b0c9cc10e51b6821541ee1bc2384c2bf4 (diff)
downloadATCD-9b52187edfe65c71883cc58578bdc33979f3b083.tar.gz
ChangeLogTag: Wed Sep 29 10:12:43 2004 Jeff Parsons <j.parsons@vanderbilt.edu>
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_interface/interface_ch.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/interface_ch.cpp22
1 files changed, 21 insertions, 1 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_interface/interface_ch.cpp b/TAO/TAO_IDL/be/be_visitor_interface/interface_ch.cpp
index 675f9e648d5..40bfb4dd5c5 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/interface_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/interface_ch.cpp
@@ -207,11 +207,31 @@ be_visitor_interface_ch::visit_interface (be_interface *node)
*os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
+ if (node->session_component_child () == 1)
+ {
+ *os << "// These two are inherited from SessionComponent."
+ << be_nl << be_nl
+ << "virtual void ciao_preactivate (" << be_idt << be_idt_nl
+ << "ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS" << be_uidt_nl
+ << ")" << be_nl
+ << "ACE_THROW_SPEC ((" << be_idt_nl
+ << "CORBA::SystemException," << be_nl
+ << "::Components::CCMException" << be_uidt_nl
+ << "));" << be_uidt_nl << be_nl
+ << "virtual void ciao_postactivate (" << be_idt << be_idt_nl
+ << "ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS" << be_uidt_nl
+ << ")" << be_nl
+ << "ACE_THROW_SPEC ((" << be_idt_nl
+ << "CORBA::SystemException," << be_nl
+ << "::Components::CCMException" << be_uidt_nl
+ << "));" << be_uidt_nl << be_nl;
+ }
+
if (! node->is_abstract ())
{
node->analyze_parentage ();
}
-
+
// If we inherit from both CORBA::Object and CORBA::AbstractBase,
// we have to override _add_ref() to avoid ambiguity.
if (node->has_mixed_parentage ())