summaryrefslogtreecommitdiff
path: root/ACE/TAO/orbsvcs/DevGuideExamples/EventServices/OMG_TypedEC/Consumer_i.h
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/TAO/orbsvcs/DevGuideExamples/EventServices/OMG_TypedEC/Consumer_i.h')
-rw-r--r--ACE/TAO/orbsvcs/DevGuideExamples/EventServices/OMG_TypedEC/Consumer_i.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/ACE/TAO/orbsvcs/DevGuideExamples/EventServices/OMG_TypedEC/Consumer_i.h b/ACE/TAO/orbsvcs/DevGuideExamples/EventServices/OMG_TypedEC/Consumer_i.h
new file mode 100644
index 00000000000..6af0ab7bc63
--- /dev/null
+++ b/ACE/TAO/orbsvcs/DevGuideExamples/EventServices/OMG_TypedEC/Consumer_i.h
@@ -0,0 +1,31 @@
+// $Id$
+
+// Consumer_i.h
+// Implements a TypedPushConsumer.
+
+#ifndef _Consumer_i_h_
+#define _Consumer_i_h_
+
+#include "orbsvcs/CosTypedEventCommS.h"// for POA_CosTypedEventComm::TypedPushConsumer
+
+class Consumer_i
+: public virtual POA_CosTypedEventComm::TypedPushConsumer
+{
+ public:
+ // Constructor
+ Consumer_i(CORBA::ORB_ptr orb,
+ CORBA::Object_ptr obj);
+
+ // Override operations from TypedPushConsumer interface.
+ virtual CORBA::Object_ptr get_typed_consumer ();
+
+ virtual void push(const CORBA::Any & data) ;
+
+ virtual void disconnect_push_consumer();
+
+ private:
+ CORBA::ORB_var orb_;
+ CORBA::Object_var object_;
+};
+
+#endif // _Consumer_i_h_