Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / orbsvcs / tests / EC_MT_Mcast / Supplier.h
blob3f131c1d4fa938771d0cb759dda30c5eff7ff7d5
1 // Reused from: $TAO_ROOT/orbsvcs/examples/RtEC/MCast
3 #ifndef SUPPLIER_H
4 #define SUPPLIER_H
6 #include "orbsvcs/RtecEventCommS.h"
7 #include "orbsvcs/RtecEventChannelAdminC.h"
9 #if !defined (ACE_LACKS_PRAGMA_ONCE)
10 # pragma once
11 #endif /* ACE_LACKS_PRAGMA_ONCE */
13 class Supplier : public POA_RtecEventComm::PushSupplier
15 // = TITLE
16 // Simple supplier object
18 // = DESCRIPTION
19 // This class is a supplier of events.
20 // It simply publishes one event type, when the perform_push()
21 // method is invoked it pushes the event through the event service
23 public:
24 Supplier (void);
25 // Constructor
27 void connect (RtecEventChannelAdmin::SupplierAdmin_ptr supplier_admin);
28 // Connect to the event channel
30 void disconnect (void);
31 // Disconnect from the event channel
33 void perform_push (void);
34 // Push a single event
36 // = The RtecEventComm::PushSupplier methods
38 virtual void disconnect_push_supplier (void);
39 // The skeleton methods.
41 private:
42 RtecEventChannelAdmin::ProxyPushConsumer_var proxy_;
43 // The proxy
46 #endif /* SUPPLIER_H */