diff options
author | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:21 +0000 |
---|---|---|
committer | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:21 +0000 |
commit | 3aff90f4a822fcf5d902bbfbcc9fa931d6191a8c (patch) | |
tree | 197c810e5f5bce17b1233a7cb8d7b50c0bcd25e2 /TAO/TAO_IDL/be/be_visitor_structure_fwd/structure_fwd_ch.cpp | |
parent | 6b846cf03c0bcbd8c276cb0af61a181e5f98eaae (diff) | |
download | ATCD-3aff90f4a822fcf5d902bbfbcc9fa931d6191a8c.tar.gz |
Repo restructuring
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_structure_fwd/structure_fwd_ch.cpp')
-rw-r--r-- | TAO/TAO_IDL/be/be_visitor_structure_fwd/structure_fwd_ch.cpp | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_structure_fwd/structure_fwd_ch.cpp b/TAO/TAO_IDL/be/be_visitor_structure_fwd/structure_fwd_ch.cpp new file mode 100644 index 00000000000..0df96e7e10a --- /dev/null +++ b/TAO/TAO_IDL/be/be_visitor_structure_fwd/structure_fwd_ch.cpp @@ -0,0 +1,55 @@ +// +// $Id$ +// + +// ============================================================================ +// +// = LIBRARY +// TAO IDL +// +// = FILENAME +// structure_fwd_ch.cpp +// +// = DESCRIPTION +// Visitor generating code for be_structure_fwd node in the client header. +// +// = AUTHOR +// Jeff Parsons +// +// ============================================================================ + +ACE_RCSID (be_visitor_structure_fwd, + structure_fwd_ch, + "$Id$") + +be_visitor_structure_fwd_ch::be_visitor_structure_fwd_ch ( + be_visitor_context *ctx + ) + : be_visitor_decl (ctx) +{ +} + +be_visitor_structure_fwd_ch::~be_visitor_structure_fwd_ch (void) +{ +} + +// Visit the interface_fwd_ch node. +int +be_visitor_structure_fwd_ch::visit_structure_fwd (be_structure_fwd *node) +{ + if (node->cli_hdr_gen () || node->imported ()) + { + return 0; + } + + TAO_OutStream *os = this->ctx_->stream (); + + be_structure *fd = + be_structure::narrow_from_decl (node->full_definition ()); + + // This will be a no-op if it has already been done for this node. + fd->gen_common_varout (os); + + node->cli_hdr_gen (true); + return 0; +} |