summaryrefslogtreecommitdiff
path: root/modules/TAO/TAO_IDL/ast/ast_consumes.cpp
blob: 7c3b61627833ec05462da269bf9f2f72603a5785 (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
// $Id$

#include "ast_consumes.h"
#include "ast_eventtype.h"
#include "ast_visitor.h"

AST_Consumes::AST_Consumes (UTL_ScopedName *n,
                            AST_EventType *consumes_type)
  : COMMON_Base (false,
                 false),
    AST_Decl (AST_Decl::NT_consumes,
              n),
    AST_Field (AST_Decl::NT_consumes,
               consumes_type,
               n)
{
}

AST_Consumes::~AST_Consumes (void)
{
}

AST_EventType *
AST_Consumes::consumes_type (void) const
{
  return AST_EventType::narrow_from_decl (this->field_type ());
}

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

int
AST_Consumes::ast_accept (ast_visitor *visitor)
{
  return visitor->visit_consumes (this);
}

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

IMPL_NARROW_FROM_DECL(AST_Consumes)