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
{
12 void connect (CosEventChannelAdmin::EventChannel_ptr event_channel
);
13 // Connect to the event channel, using <consumer_admin>
16 // Disconnect from the event channel.
18 void push (const CORBA::Any
& data
);
19 void disconnect_push_consumer ();
22 CosEventChannelAdmin::ProxyPushSupplier_var supplier_proxy_
;
23 // The supplier proxy.
26 #endif /* TAO_TUTORIALS_QUOTER_EVENT_SERVICE_STOCK_CONSUMER_H */