diff options
author | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2010-02-12 22:09:05 +0000 |
---|---|---|
committer | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2010-02-12 22:09:05 +0000 |
commit | 5f1ac152046fb3b06e67b0302a5db817cd9658db (patch) | |
tree | 1c2bf0fdc57bb2be4f8aa40439ff54ee0196419e /TAO/TAO_IDL/be/be_visitor_root | |
parent | a037a42153bd34c0761322eec0d15ab3456c2ca3 (diff) | |
download | ATCD-5f1ac152046fb3b06e67b0302a5db817cd9658db.tar.gz |
ChangeLogTag: Fri Feb 12 22:08:24 UTC 2010 Jeff Parsons <j.parsons@vanderbilt.edu>
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_root')
-rw-r--r-- | TAO/TAO_IDL/be/be_visitor_root/root.cpp | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_root/root.cpp b/TAO/TAO_IDL/be/be_visitor_root/root.cpp index 95e26f06557..b969860bb86 100644 --- a/TAO/TAO_IDL/be/be_visitor_root/root.cpp +++ b/TAO/TAO_IDL/be/be_visitor_root/root.cpp @@ -1478,6 +1478,52 @@ be_visitor_root::visit_home (be_home *node) } int +be_visitor_root::visit_connector (be_connector *node) +{ + // Instantiate a visitor context with a copy of our context. This info + // will be modified based on what type of node we are visiting. + be_visitor_context ctx (*this->ctx_); + ctx.node (node); + int status = 0; + + switch (this->ctx_->state ()) + { + case TAO_CodeGen::TAO_ROOT_CNH: + { + be_visitor_connector_dds_exh visitor (&ctx); + status = node->accept (&visitor); + break; + } + case TAO_CodeGen::TAO_ROOT_CNS: + { + be_visitor_connector_dds_exs visitor (&ctx); + status = node->accept (&visitor); + break; + } + // Skip these contexts, the connector impl is + // generated in a separate pass, using the states + // above. + case TAO_CodeGen::TAO_ROOT_EXH: + case TAO_CodeGen::TAO_ROOT_EXS: + break; + default: + // In all other cases, same as component. + return this->visit_component (node); + } + + if (status == -1) + { + ACE_ERROR_RETURN ((LM_ERROR, + ACE_TEXT ("be_visitor_root::") + ACE_TEXT ("visit_connector - ") + ACE_TEXT ("failed to accept visitor\n")), + -1); + } + + return 0; +} + +int be_visitor_root::visit_module (be_module *node) { // Instantiate a visitor context with a copy of our context. This info |