summaryrefslogtreecommitdiff
path: root/ACE/TAO/TAO_IDL/be/be_publishes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/TAO/TAO_IDL/be/be_publishes.cpp')
-rw-r--r--ACE/TAO/TAO_IDL/be/be_publishes.cpp50
1 files changed, 50 insertions, 0 deletions
diff --git a/ACE/TAO/TAO_IDL/be/be_publishes.cpp b/ACE/TAO/TAO_IDL/be/be_publishes.cpp
new file mode 100644
index 00000000000..7b748de9fa3
--- /dev/null
+++ b/ACE/TAO/TAO_IDL/be/be_publishes.cpp
@@ -0,0 +1,50 @@
+// $Id$
+
+#include "be_publishes.h"
+#include "be_eventtype.h"
+#include "be_visitor.h"
+
+be_publishes::be_publishes (UTL_ScopedName *n,
+ AST_Type *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)