Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / TAO_IDL / be / be_visitor_root / cdr_op.cpp
blobbd62a12046793838505fc3feeb58e2a339ddce73
2 //=============================================================================
3 /**
4 * @file cdr_op.cpp
6 * Visitor generating code for the CDR operators for types defined
7 * in Root's scope.
9 * @author Aniruddha Gokhale
11 //=============================================================================
13 #include "root.h"
15 // ***************************************************************************
16 // Root visitor for generating CDR operator declarations in the client header
17 // and stub
18 // ***************************************************************************
20 be_visitor_root_cdr_op::be_visitor_root_cdr_op (be_visitor_context *ctx)
21 : be_visitor_root (ctx)
25 be_visitor_root_cdr_op::~be_visitor_root_cdr_op (void)
29 int
30 be_visitor_root_cdr_op::visit_root (be_root *node)
32 if (this->visit_scope (node) == -1)
34 ACE_ERROR_RETURN ((LM_ERROR,
35 ACE_TEXT ("be_visitor_root_cdr_op::")
36 ACE_TEXT ("visit_root - codegen ")
37 ACE_TEXT ("for scope failed\n")),
38 -1);
41 return 0;