
//=============================================================================
/**
 *  @file    structure_fwd_ch.cpp
 *
 *  $Id: structure_fwd_ch.cpp 91816 2010-09-17 08:35:56Z johnnyw $
 *
 *  Visitor generating code for be_structure_fwd node in the client header.
 *
 *
 *  @author Jeff Parsons
 */
//=============================================================================


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;
}
