blob: 4c0fb2f14804f75ad88c45904689fb0c823e2418 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
//
// $Id$
//
#ifndef TAO_TUTORIALS_QUOTER_EVENT_SERVICE_STOCK_CONSUMER_H
#define TAO_TUTORIALS_QUOTER_EVENT_SERVICE_STOCK_CONSUMER_H
#include <orbsvcs/CosEventCommS.h>
#include <orbsvcs/CosEventChannelAdminC.h>
class Stock_Consumer : public POA_CosEventComm::PushConsumer {
public:
Stock_Consumer ();
void connect (CosEventChannelAdmin::EventChannel_ptr event_channel);
// Connect to the event channel, using <consumer_admin>
void disconnect ();
// Disconnect from the event channel.
void push (const CORBA::Any& data);
void disconnect_push_consumer (void);
private:
CosEventChannelAdmin::ProxyPushSupplier_var supplier_proxy_;
// The supplier proxy.
};
#endif /* TAO_TUTORIALS_QUOTER_EVENT_SERVICE_STOCK_CONSUMER_H */
|