summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_visitor_module/module_ih.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_module/module_ih.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_visitor_module/module_ih.cpp52
1 files changed, 52 insertions, 0 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_module/module_ih.cpp b/TAO/TAO_IDL/be/be_visitor_module/module_ih.cpp
new file mode 100644
index 00000000000..92eacef28aa
--- /dev/null
+++ b/TAO/TAO_IDL/be/be_visitor_module/module_ih.cpp
@@ -0,0 +1,52 @@
+// $Id$
+
+// ============================================================================
+//
+// = LIBRARY
+// TAO IDL
+//
+// = FILENAME
+// module_ih.cpp
+//
+// = DESCRIPTION
+// Visitor generating code for Module in the implementation header
+//
+// = AUTHOR
+// Yamuna Krishnamurthy (yamuna@cs.wustl.edu)
+//
+// ============================================================================
+
+ACE_RCSID (be_visitor_module,
+ module_ih,
+ "$Id$")
+
+// ************************************************************
+// Module visitor for server header
+// ************************************************************
+
+be_visitor_module_ih::be_visitor_module_ih (be_visitor_context *ctx)
+ : be_visitor_module (ctx)
+{
+}
+
+be_visitor_module_ih::~be_visitor_module_ih (void)
+{
+}
+
+int
+be_visitor_module_ih::visit_module (be_module *node)
+{
+ if (!node->impl_hdr_gen () && !node->imported ())
+ {
+ if (this->visit_scope (node) == -1)
+ {
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "(%N:%l) be_visitor_module_ih::"
+ "visit_module - "
+ "codegen for scope failed\n"),
+ -1);
+ }
+ }
+
+ return 0;
+}