Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / docs / tutorials / Quoter / RT_Event_Service / Stock_Consumer.h
blobe493fd2d1dfe3e60f0814f36d7c90399a31999dc
2 #ifndef TAO_TUTORIALS_QUOTER_RT_EVENT_SERVICE_STOCK_CONSUMER_H
3 #define TAO_TUTORIALS_QUOTER_RT_EVENT_SERVICE_STOCK_CONSUMER_H
5 #include <orbsvcs/RtecEventCommS.h>
6 #include <orbsvcs/RtecEventChannelAdminC.h>
8 class Stock_Consumer : public POA_RtecEventComm::PushConsumer {
9 public:
10 Stock_Consumer ();
12 void connect (RtecEventChannelAdmin::EventChannel_ptr event_channel,
13 const RtecEventChannelAdmin::ConsumerQOS &subscriptions);
14 // Connect to the event channel, using <consumer_admin> and
15 // <subscriptions>
17 void disconnect ();
18 // Disconnect from the event channel.
20 void push (const RtecEventComm::EventSet& data);
21 void disconnect_push_consumer ();
23 private:
24 RtecEventChannelAdmin::ProxyPushSupplier_var supplier_proxy_;
25 // The supplier proxy.
28 #endif /* TAO_TUTORIALS_QUOTER_RT_EVENT_SERVICE_STOCK_CONSUMER_H */