diff options
author | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2010-04-19 15:34:23 +0000 |
---|---|---|
committer | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2010-04-19 15:34:23 +0000 |
commit | 0d752fa416c7463990692047f5e0286630ad8540 (patch) | |
tree | 103e1a96587c984633dedb2492c9781a24e3b496 /CIAO/tools/IDL3_to_IDL2/idl3_to_idl2_visitor.cpp | |
parent | 5d78d8fc7b6b30bd353924517cc054ada8daa91f (diff) | |
download | ATCD-0d752fa416c7463990692047f5e0286630ad8540.tar.gz |
ChangeLogTag: Mon Apr 19 15:31:00 UTC 2010 Jeff Parsons <j.parsons@vanderbilt.edu>
Diffstat (limited to 'CIAO/tools/IDL3_to_IDL2/idl3_to_idl2_visitor.cpp')
-rw-r--r-- | CIAO/tools/IDL3_to_IDL2/idl3_to_idl2_visitor.cpp | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/CIAO/tools/IDL3_to_IDL2/idl3_to_idl2_visitor.cpp b/CIAO/tools/IDL3_to_IDL2/idl3_to_idl2_visitor.cpp index 441b27be38c..9882aecbded 100644 --- a/CIAO/tools/IDL3_to_IDL2/idl3_to_idl2_visitor.cpp +++ b/CIAO/tools/IDL3_to_IDL2/idl3_to_idl2_visitor.cpp @@ -235,7 +235,8 @@ idl3_to_idl2_visitor::visit_uses (AST_Uses *node) Identifier *orig_id = IdentifierHelper::original_local_name (node->local_name ()); - UTL_ScopedName *n = node->uses_type ()->name (); + AST_Type *ut = node->uses_type (); + UTL_ScopedName *n = ut->name (); ACE_CString impl_str = IdentifierHelper::orig_sn (n); const char *impl_name = impl_str.c_str (); @@ -275,12 +276,16 @@ idl3_to_idl2_visitor::visit_uses (AST_Uses *node) } else { - *os << "void connect_" << ext_port_name << " (in " - << impl_name << " conxn)" << be_idt_nl - << "raises (Components::AlreadyConnected, " - << "Components::InvalidConnection);" - << be_uidt_nl << be_nl - << impl_name << " disconnect_" + if (! ut->is_local ()) + { + *os << "void connect_" << ext_port_name << " (in " + << impl_name << " conxn)" << be_idt_nl + << "raises (Components::AlreadyConnected, " + << "Components::InvalidConnection);" + << be_uidt_nl << be_nl; + } + + *os << impl_name << " disconnect_" << ext_port_name << " ()" << be_idt_nl << "raises (Components::NoConnection);" << be_uidt_nl << be_nl |