summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_visitor_eventtype/eventtype_obv_ch.cpp
blob: 99d5fd7e3fa80da47fb516cb1b5bf8baacb6fe3e (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
45
46
47
48
49
50
51
52

//
// $Id$
//

// ============================================================================
//
// = LIBRARY
//    TAO IDL
//
// = FILENAME
//    eventtype_obv_ch.cpp
//
// = DESCRIPTION
//    Visitor generating code for Eventtypes in the client header
//    OBV_ class
//    (see C++ mapping OMG 20.17)
//
// = AUTHOR
//    Jeff Parsons
//
// ============================================================================

ACE_RCSID (be_visitor_eventtype, 
           eventtype_obv_ch, 
           "$Id$")

// ******************************************************
// Eventtype visitor for client header
// ******************************************************

be_visitor_eventtype_obv_ch::be_visitor_eventtype_obv_ch (
    be_visitor_context *ctx
  )
  : be_visitor_valuetype (ctx)
{
}

be_visitor_eventtype_obv_ch::~be_visitor_eventtype_obv_ch (void)
{
}


// OBV_ class must be in OBV_ namespace.
int
be_visitor_eventtype_obv_ch::visit_eventtype (be_eventtype *node)
{
  be_visitor_context ctx (*this->ctx_);
  ctx.state (TAO_CodeGen::TAO_VALUETYPE_OBV_CH);
  be_visitor_valuetype_obv_ch visitor (&ctx);
  return visitor.visit_valuetype (node);
}