diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2010-01-15 09:11:53 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2010-01-15 09:11:53 +0000 |
commit | 0ed2aea6a0a3f1f8d2ee6170c84e3d78887044f1 (patch) | |
tree | ea9867ea3121378cb28692669a0d8372b18bca1a /CIAO/tools/IDL3_to_IDL2/idl3_to_idl2_visitor.cpp | |
parent | f9ae35007ca2a1d1df6f377b1901554f6843f6d8 (diff) | |
download | ATCD-0ed2aea6a0a3f1f8d2ee6170c84e3d78887044f1.tar.gz |
Fri Jan 15 09:11:56 UTC 2010 Johnny Willemsen <jwillemsen@remedy.nl>
* tools/IDL3_to_IDL2/checking_visitor.cpp
* tools/IDL3_to_IDL2/checking_visitor.h
* tools/IDL3_to_IDL2/idl3_to_idl2_visitor.cpp
* tools/IDL3_to_IDL2/idl3_to_idl2_visitor.h
* tools/IDL3_to_XMI/IDL3_to_XMI_visitor.cpp
* tools/IDL3_to_XMI/IDL3_to_XMI_visitor.h
* tools/IDL3_to_XMI/IR_Simulator_visitor.cpp
* tools/IDL3_to_XMI/IR_Simulator_visitor.h
Updated for tao_idl changes
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 | 32 |
1 files changed, 19 insertions, 13 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 69aa084c186..843cee92f42 100644 --- a/CIAO/tools/IDL3_to_IDL2/idl3_to_idl2_visitor.cpp +++ b/CIAO/tools/IDL3_to_IDL2/idl3_to_idl2_visitor.cpp @@ -43,7 +43,7 @@ idl3_to_idl2_visitor::visit_module (AST_Module *node) ACE_CString name = IdentifierHelper::try_escape (node->original_local_name ()); - + *os << "module " << name.c_str () << be_nl << "{" << be_idt; @@ -139,7 +139,7 @@ idl3_to_idl2_visitor::visit_component (AST_Component *node) long nsupports = node->n_supports (); *os << " : " - << (base != 0 + << (base != 0 ? IdentifierHelper::orig_sn (base->name ()).c_str () : "Components::CCMObject"); @@ -189,14 +189,14 @@ idl3_to_idl2_visitor::visit_provides (AST_Provides *node) { Identifier *orig_id = IdentifierHelper::original_local_name (node->local_name ()); - + UTL_ScopedName *n = node->provides_type ()->name (); ACE_CString impl_name = IdentifierHelper::orig_sn (n); *os << be_nl << be_nl << impl_name.c_str () << " provide_" << orig_id << " ();"; - + orig_id->destroy (); delete orig_id; orig_id = 0; @@ -208,7 +208,7 @@ int idl3_to_idl2_visitor::visit_uses (AST_Uses *node) { *os << be_nl << be_nl; - + Identifier *orig_id = IdentifierHelper::original_local_name (node->local_name ()); @@ -249,7 +249,7 @@ idl3_to_idl2_visitor::visit_uses (AST_Uses *node) << impl_name.c_str () << " get_connection_" << orig_id << " ();"; } - + orig_id->destroy (); delete orig_id; orig_id = 0; @@ -259,7 +259,7 @@ idl3_to_idl2_visitor::visit_uses (AST_Uses *node) int idl3_to_idl2_visitor::visit_publishes (AST_Publishes *node) -{ +{ Identifier *orig_id = IdentifierHelper::original_local_name (node->local_name ()); @@ -277,7 +277,7 @@ idl3_to_idl2_visitor::visit_publishes (AST_Publishes *node) << impl_name.c_str () << "Consumer unsubscribe_" << orig_id << " (in Components::Cookie ck)" << be_idt_nl << "raises (Components::InvalidConnection);" << be_uidt; - + orig_id->destroy (); delete orig_id; orig_id = 0; @@ -304,7 +304,7 @@ idl3_to_idl2_visitor::visit_emits (AST_Emits *node) << impl_name.c_str () << "Consumer disconnect_" << orig_id << " ()" << be_idt_nl << "raises (Components::NoConnection);" << be_uidt; - + orig_id->destroy (); delete orig_id; orig_id = 0; @@ -325,7 +325,7 @@ idl3_to_idl2_visitor::visit_consumes (AST_Consumes *node) *os << be_nl << be_nl << impl_name.c_str () << "Consumer get_consumer_" << orig_id << " ();"; - + orig_id->destroy (); delete orig_id; orig_id = 0; @@ -352,6 +352,12 @@ idl3_to_idl2_visitor::visit_connector (AST_Connector *) } int +idl3_to_idl2_visitor::visit_param_holder (AST_Param_Holder *) +{ + return 0; +} + +int idl3_to_idl2_visitor::visit_eventtype (AST_EventType *node) { if (node->imported ()) @@ -500,7 +506,7 @@ idl3_to_idl2_visitor::visit_home (AST_Home *node) { key_name = IdentifierHelper::orig_sn (key->name ()); - + *os << "in " << key_name.c_str () << " key"; } @@ -557,7 +563,7 @@ idl3_to_idl2_visitor::visit_root (AST_Root *node) "_IDL2.idl", "_TAO_IDL_", "_IDL_"); - + if (status == -1) { ACE_ERROR_RETURN ((LM_ERROR, @@ -575,7 +581,7 @@ idl3_to_idl2_visitor::visit_root (AST_Root *node) *os << be_nl; } - ACE_CString raw_filename = idl_global->included_idl_files ()[i]; + ACE_CString raw_filename = idl_global->included_idl_files ()[i]; bool excluded_file_found = this->match_excluded_file (raw_filename.c_str ()); |