diff options
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_module/cdr_op.cpp')
-rw-r--r-- | TAO/TAO_IDL/be/be_visitor_module/cdr_op.cpp | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_module/cdr_op.cpp b/TAO/TAO_IDL/be/be_visitor_module/cdr_op.cpp new file mode 100644 index 00000000000..540057da455 --- /dev/null +++ b/TAO/TAO_IDL/be/be_visitor_module/cdr_op.cpp @@ -0,0 +1,52 @@ +// +// $Id$ +// + +// ============================================================================ +// +// = LIBRARY +// TAO IDL +// +// = FILENAME +// cdr_op.cpp +// +// = DESCRIPTION +// Visitor generating code for the CDR operators for types defined in Module's +// scope. +// +// = AUTHOR +// Aniruddha Gokhale +// +// ============================================================================ + +ACE_RCSID (be_visitor_module, + cdr_op, + "$Id: cdr_op.cpp,v 1.2 1999/05/28 02:16:43 coryan Exp ") + +// *************************************************************************** +// Module visitor for generating CDR operator declarations in the client header +// and stub +// *************************************************************************** + +be_visitor_module_cdr_op::be_visitor_module_cdr_op (be_visitor_context *ctx) + : be_visitor_module (ctx) +{ +} + +be_visitor_module_cdr_op::~be_visitor_module_cdr_op (void) +{ +} + +int +be_visitor_module_cdr_op::visit_module (be_module *node) +{ + if (this->visit_scope (node) == -1) + { + ACE_ERROR_RETURN ((LM_ERROR, + "(%N:%l) be_visitor_module_cdr_op::visit_module - " + "codegen for scope failed\n"), + -1); + } + + return 0; +} |