Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / docs / tutorials / Quoter / Event_Service / Stock_Consumer.h
blobb5cb7b1d334d8ecd99173af477ddb241df94508a
2 #ifndef TAO_TUTORIALS_QUOTER_EVENT_SERVICE_STOCK_CONSUMER_H
3 #define TAO_TUTORIALS_QUOTER_EVENT_SERVICE_STOCK_CONSUMER_H
5 #include <orbsvcs/CosEventCommS.h>
6 #include <orbsvcs/CosEventChannelAdminC.h>
8 class Stock_Consumer : public POA_CosEventComm::PushConsumer {
9 public:
10 Stock_Consumer ();
12 void connect (CosEventChannelAdmin::EventChannel_ptr event_channel);
13 // Connect to the event channel, using <consumer_admin>
15 void disconnect ();
16 // Disconnect from the event channel.
18 void push (const CORBA::Any& data);
19 void disconnect_push_consumer ();
21 private:
22 CosEventChannelAdmin::ProxyPushSupplier_var supplier_proxy_;
23 // The supplier proxy.
26 #endif /* TAO_TUTORIALS_QUOTER_EVENT_SERVICE_STOCK_CONSUMER_H */