summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_visitor_interface/interface_ex_idl.cpp
blob: 3e486fdedf72493c235b9298031fa9f48ccd944f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44

//=============================================================================
/**
 *  @file    interface_ex_idl.cpp
 *
 *  Visitor generating code for Interfaces in the
 *  CIAO executor IDL file.
 *
 *  @author Jeff Parsons <j.parsons@vanderbilt.edu>
 */
//=============================================================================

#include "interface.h"

be_visitor_interface_ex_idl::be_visitor_interface_ex_idl (
  be_visitor_context *ctx)
  : be_visitor_interface (ctx)
{
}

be_visitor_interface_ex_idl::~be_visitor_interface_ex_idl ()
{
}

int
be_visitor_interface_ex_idl::visit_interface (be_interface *node)
{
  // Skip implied IDL nodes.
  if (node->original_interface () != nullptr)
    {
      return 0;
    }

  if (node->imported () || node->is_abstract ())
    {
      return 0;
    }

  node->gen_facet_idl (*this->ctx_->stream ());

  return 0;
}