Merge pull request #2220 from DOCGroup/revert-2217-jwi-inetwraning
[ACE_TAO.git] / TAO / TAO_IDL / be / be_consumes.cpp
blob319930737e3afaa62f7d6403d6d82a7824f1bd97
1 #include "be_consumes.h"
2 #include "be_eventtype.h"
3 #include "be_visitor.h"
5 be_consumes::be_consumes (UTL_ScopedName *n,
6 AST_Type *consumes_type)
7 : COMMON_Base (false,
8 false),
9 AST_Decl (AST_Decl::NT_consumes,
10 n),
11 AST_Field (AST_Decl::NT_consumes,
12 consumes_type,
13 n),
14 AST_Consumes (n,
15 consumes_type),
16 be_decl (AST_Decl::NT_consumes,
17 n),
18 be_field (consumes_type,
23 be_consumes::~be_consumes ()
27 be_eventtype *
28 be_consumes::consumes_type () const
30 return
31 dynamic_cast<be_eventtype*> (
32 this->AST_Consumes::consumes_type ());
35 int
36 be_consumes::accept (be_visitor *visitor)
38 return visitor->visit_consumes (this);
41 void
42 be_consumes::destroy ()
44 this->AST_Consumes::destroy ();
45 this->be_field::destroy ();