diff options
author | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2005-02-15 05:07:04 +0000 |
---|---|---|
committer | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2005-02-15 05:07:04 +0000 |
commit | 4d41b27dec39ebd713efcf681add7e90235a7f27 (patch) | |
tree | 53739f1a6019d8f65b570ebd95b77f4022d57ed1 /TAO/TAO_IDL/be/be_visitor_module | |
parent | 39de6a04c35038b8e4cc03260b928db0588ca921 (diff) | |
download | ATCD-4d41b27dec39ebd713efcf681add7e90235a7f27.tar.gz |
Mon Feb 14 23:05:55 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_module')
-rw-r--r-- | TAO/TAO_IDL/be/be_visitor_module/module.cpp | 124 |
1 files changed, 2 insertions, 122 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_module/module.cpp b/TAO/TAO_IDL/be/be_visitor_module/module.cpp index 2fbd779d4cd..063a22f5bf4 100644 --- a/TAO/TAO_IDL/be/be_visitor_module/module.cpp +++ b/TAO/TAO_IDL/be/be_visitor_module/module.cpp @@ -573,133 +573,13 @@ be_visitor_module::visit_valuetype_fwd (be_valuetype_fwd *node) int be_visitor_module::visit_eventtype (be_eventtype *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_CH: - { - be_visitor_eventtype_ch visitor (&ctx); - status = node->accept (&visitor); - break; - } - case TAO_CodeGen::TAO_ROOT_CI: - { - be_visitor_eventtype_ci visitor (&ctx); - status = node->accept (&visitor); - break; - } - case TAO_CodeGen::TAO_ROOT_CS: - { - be_visitor_eventtype_cs visitor (&ctx); - status = node->accept (&visitor); - break; - } - case TAO_CodeGen::TAO_ROOT_CDR_OP_CH: - { - be_visitor_eventtype_cdr_op_ch visitor (&ctx); - status = node->accept (&visitor); - break; - } - case TAO_CodeGen::TAO_ROOT_CDR_OP_CS: - { - be_visitor_eventtype_cdr_op_cs visitor (&ctx); - status = node->accept (&visitor); - break; - } - case TAO_CodeGen::TAO_ROOT_ANY_OP_CH: - { - be_visitor_eventtype_any_op_ch visitor (&ctx); - status = node->accept (&visitor); - break; - } - case TAO_CodeGen::TAO_ROOT_ANY_OP_CS: - { - be_visitor_eventtype_any_op_cs visitor (&ctx); - status = node->accept (&visitor); - break; - } - case TAO_CodeGen::TAO_ROOT_SH: - { - be_visitor_eventtype_sh visitor (&ctx); - status = node->accept (&visitor); - break; - } - case TAO_CodeGen::TAO_ROOT_SI: - { - be_visitor_eventtype_si visitor (&ctx); - status = node->accept (&visitor); - break; - } - case TAO_CodeGen::TAO_ROOT_SS: - { - be_visitor_eventtype_ss visitor (&ctx); - status = node->accept (&visitor); - break; - } - default: - return 0; // nothing to do. - } - - if (status == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_eventtype - " - "failed to accept visitor\n"), - -1); - } - - return 0; + return this->visit_valuetype (node); } int be_visitor_module::visit_eventtype_fwd (be_eventtype_fwd *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_CH: - { - be_visitor_eventtype_fwd_ch visitor (&ctx); - status = node->accept (&visitor); - break; - } - case TAO_CodeGen::TAO_ROOT_ANY_OP_CH: - { - be_visitor_eventtype_fwd_any_op_ch visitor (&ctx); - status = node->accept (&visitor); - break; - } - case TAO_CodeGen::TAO_ROOT_CDR_OP_CH: - { - be_visitor_eventtype_fwd_cdr_op_ch visitor (&ctx); - status = node->accept (&visitor); - break; - } - default: - return 0; // nothing to be done - } - - if (status == -1) - { - ACE_ERROR_RETURN ((LM_ERROR, - "(%N:%l) be_visitor_module::" - "visit_eventtype_fwd - " - "failed to accept visitor\n"), - -1); - } - - return 0; + return this->visit_valuetype_fwd (node); } int |