summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/ast/ast_publishes.cpp
blob: eef6365b30436621ada9628a731242843f6a5df9 (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
#include "ast_publishes.h"
#include "ast_visitor.h"

AST_Decl::NodeType const
AST_Publishes::NT = AST_Decl::NT_publishes;

AST_Publishes::AST_Publishes (UTL_ScopedName *n,
                              AST_Type *publishes_type)
  : COMMON_Base (),
    AST_Decl (AST_Decl::NT_publishes,
              n),
    AST_Field (AST_Decl::NT_publishes,
               publishes_type,
               n)
{
}

AST_Publishes::~AST_Publishes ()
{
}

AST_Type *
AST_Publishes::publishes_type () const
{
  return this->field_type ();
}

void
AST_Publishes::dump (ACE_OSTREAM_TYPE &o)
{
  this->dump_i (o, "publishes ");
  this->AST_Field::dump (o);
}

int
AST_Publishes::ast_accept (ast_visitor *visitor)
{
  return visitor->visit_publishes (this);
}

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