summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_publishes.cpp
blob: fe9b3acba4664a0af1679360f0070bab62634304 (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
// $Id$

#include "be_publishes.h"
#include "be_eventtype.h"
#include "be_visitor.h"

be_publishes::be_publishes (UTL_ScopedName *n,
                            AST_EventType *publishes_type)
  : COMMON_Base (false,
                 false),
    AST_Decl (AST_Decl::NT_publishes,
              n),
    AST_Field (AST_Decl::NT_publishes,
               publishes_type,
               n),
    AST_Publishes (n,
                  publishes_type),
    be_decl (AST_Decl::NT_publishes,
             n),
    be_field (publishes_type,
              n)
{
}

be_publishes::~be_publishes (void)
{
}

be_eventtype *
be_publishes::publishes_type (void) const
{
  return
    be_eventtype::narrow_from_decl (
      this->AST_Publishes::publishes_type ());
}

int
be_publishes::accept (be_visitor *visitor)
{
  return visitor->visit_publishes (this);
}

void
be_publishes::destroy (void)
{
  this->AST_Publishes::destroy ();
  this->be_field::destroy ();
}

IMPL_NARROW_FROM_DECL (be_publishes)