Merge pull request #2216 from jwillemsen/jwi-cxxversionchecks
[ACE_TAO.git] / TAO / TAO_IDL / be / be_publishes.cpp
blobff23536a39bcf88ec702d0579211bc9dab99265c
1 #include "be_publishes.h"
2 #include "be_eventtype.h"
3 #include "be_visitor.h"
5 be_publishes::be_publishes (UTL_ScopedName *n,
6 AST_Type *publishes_type)
7 : COMMON_Base (false,
8 false),
9 AST_Decl (AST_Decl::NT_publishes,
10 n),
11 AST_Field (AST_Decl::NT_publishes,
12 publishes_type,
13 n),
14 AST_Publishes (n,
15 publishes_type),
16 be_decl (AST_Decl::NT_publishes,
17 n),
18 be_field (publishes_type,
23 be_publishes::~be_publishes ()
27 be_eventtype *
28 be_publishes::publishes_type () const
30 return
31 dynamic_cast<be_eventtype*> (
32 this->AST_Publishes::publishes_type ());
35 int
36 be_publishes::accept (be_visitor *visitor)
38 return visitor->visit_publishes (this);
41 void
42 be_publishes::destroy ()
44 this->AST_Publishes::destroy ();
45 this->be_field::destroy ();