summaryrefslogtreecommitdiff
path: root/trunk/TAO/docs/tutorials/Quoter/Event_Service/Stock_i.h
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/TAO/docs/tutorials/Quoter/Event_Service/Stock_i.h')
-rw-r--r--trunk/TAO/docs/tutorials/Quoter/Event_Service/Stock_i.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/trunk/TAO/docs/tutorials/Quoter/Event_Service/Stock_i.h b/trunk/TAO/docs/tutorials/Quoter/Event_Service/Stock_i.h
new file mode 100644
index 00000000000..b4c619e1a6a
--- /dev/null
+++ b/trunk/TAO/docs/tutorials/Quoter/Event_Service/Stock_i.h
@@ -0,0 +1,38 @@
+//
+// $Id$
+//
+
+#ifndef TAO_TUTORIAL_QUOTER_EVENT_SERVICE_STOCK_I_H
+#define TAO_TUTORIAL_QUOTER_EVENT_SERVICE_STOCK_I_H
+
+#include "QuoterS.h"
+#include <orbsvcs/CosEventCommS.h>
+#include <orbsvcs/CosEventChannelAdminC.h>
+
+class Quoter_Stock_i
+ : public virtual POA_Quoter::Modify_Stock
+{
+public:
+ Quoter_Stock_i (const char *symbol,
+ const char *full_name,
+ CORBA::Double price);
+
+ char *symbol () throw (CORBA::SystemException);
+ char *full_name () throw (CORBA::SystemException);
+ CORBA::Double price () throw (CORBA::SystemException);
+ void set_price (CORBA::Double new_price) throw (CORBA::SystemException);
+
+ void disconnect_push_supplier (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
+ throw (CORBA::SystemException);
+
+ void connect (CosEventChannelAdmin::SupplierAdmin_ptr supplier_admin);
+
+private:
+ Quoter::Event data_;
+
+ CosEventChannelAdmin::ProxyPushConsumer_var consumer_proxy_;
+
+ POA_CosEventComm::PushSupplier_tie<Quoter_Stock_i> supplier_personality_;
+};
+
+#endif /* TAO_TUTORIAL_QUOTER_EVENT_SERVICE_STOCK_I_H */