summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_visitor_root
diff options
context:
space:
mode:
authorparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2006-11-22 20:28:46 +0000
committerparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2006-11-22 20:28:46 +0000
commit491a19c582d1380d55684144283d7ff2ec7984cd (patch)
tree91c1657020930cd4f925f8fcf907573acead0895 /TAO/TAO_IDL/be/be_visitor_root
parent591bd4f595d2b9fc82410b344b27b566a344c540 (diff)
downloadATCD-491a19c582d1380d55684144283d7ff2ec7984cd.tar.gz
ChangeLogTag: Wed Nov 22 20:18:50 UTC 2006 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.cpp19
1 files changed, 17 insertions, 2 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_root/root.cpp b/TAO/TAO_IDL/be/be_visitor_root/root.cpp
index 44ae5a92566..74b1174c595 100644
--- a/TAO/TAO_IDL/be/be_visitor_root/root.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_root/root.cpp
@@ -272,8 +272,8 @@ int be_visitor_root::visit_root (be_root *node)
{
case TAO_CodeGen::TAO_ROOT_CH:
{
- be_visitor_traits visitor (&ctx);
- status = node->accept (&visitor);
+ be_visitor_traits traits_visitor (&ctx);
+ status = node->accept (&traits_visitor);
if (status == -1)
{
@@ -283,6 +283,21 @@ int be_visitor_root::visit_root (be_root *node)
"failed to generate traits\n"),
-1);
}
+
+ if (be_global->gen_template_export ())
+ {
+ be_visitor_template_export export_visitor (&ctx);
+ status = node->accept (&export_visitor);
+
+ if (status == -1)
+ {
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "(%N:%l) be_visitor_root::"
+ "visit_root - "
+ "failed to export templates\n"),
+ -1);
+ }
+ }
}
break;