1 //=============================================================================
5 * Visitor generating code for the Root in the implementation skeletons file
7 * @author Yamuna Krishnamurthy (yamuna@cs.wustl.edu)
9 //=============================================================================
13 be_visitor_root_is::be_visitor_root_is (be_visitor_context
*ctx
)
14 : be_visitor_root (ctx
)
18 be_visitor_root_is::~be_visitor_root_is ()
23 be_visitor_root_is::visit_root (be_root
*node
)
25 if (this->init () == -1)
27 ACE_ERROR_RETURN ((LM_ERROR
,
28 ACE_TEXT ("be_visitor_root_is::init - ")
29 ACE_TEXT ("failed to initialize\n")),
33 if (this->visit_scope (node
) == -1)
35 ACE_ERROR_RETURN ((LM_ERROR
,
36 ACE_TEXT ("be_visitor_root_is::visit_root - ")
37 ACE_TEXT ("codegen for scope failed\n")),
45 be_visitor_root_is::init ()
47 /// First open the file for writing.
49 tao_cg
->start_implementation_skeleton (
50 be_global
->be_get_implementation_skel_fname ());
54 ACE_ERROR_RETURN ((LM_ERROR
,
55 ACE_TEXT ("be_visitor_root_is::init - ")
56 ACE_TEXT ("Error opening impl source file\n")),
60 /// Initialize the stream.
61 this->ctx_
->stream (tao_cg
->implementation_skeleton ());