summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_visitor_root/root_ci.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_root/root_ci.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_visitor_root/root_ci.cpp53
1 files changed, 53 insertions, 0 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_root/root_ci.cpp b/TAO/TAO_IDL/be/be_visitor_root/root_ci.cpp
new file mode 100644
index 00000000000..4a6001866d6
--- /dev/null
+++ b/TAO/TAO_IDL/be/be_visitor_root/root_ci.cpp
@@ -0,0 +1,53 @@
+//
+// $Id$
+//
+
+// ============================================================================
+//
+// = LIBRARY
+// TAO IDL
+//
+// = FILENAME
+// root_ci.cpp
+//
+// = DESCRIPTION
+// Visitor generating code for the Root in the client inline
+//
+// = AUTHOR
+// Aniruddha Gokhale
+//
+// ============================================================================
+
+ACE_RCSID (be_visitor_root,
+ root_ci,
+ "$Id$")
+
+// *********************************
+// Root visitor for client inline
+// *********************************
+
+be_visitor_root_ci::be_visitor_root_ci (be_visitor_context *ctx)
+ : be_visitor_root (ctx)
+{
+}
+
+be_visitor_root_ci::~be_visitor_root_ci (void)
+{
+}
+
+int
+be_visitor_root_ci::init (void)
+{
+ // first open the client-side inline file for writing
+ if (tao_cg->start_client_inline (be_global->be_get_client_inline_fname ())
+ == -1)
+ {
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "(%N:%l) be_visitor_root_ci - "
+ "Error opening client inline file\n"),
+ -1);
+ }
+
+ this->ctx_->stream (tao_cg->client_inline ());
+ return 0;
+}