Changes to attempt to silence bcc64x
[ACE_TAO.git] / TAO / orbsvcs / tests / EC_MT_Mcast / Supplier.h
blob8f848d01721293a4e6e8743a7b98b21abb124866
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 ();
25 // Constructor
27 void connect (RtecEventChannelAdmin::SupplierAdmin_ptr supplier_admin);
28 // Connect to the event channel
30 void disconnect ();
31 // Disconnect from the event channel
33 void perform_push ();
34 // Push a single event
36 // = The RtecEventComm::PushSupplier methods
38 virtual void disconnect_push_supplier ();
39 // The skeleton methods.
41 private:
42 RtecEventChannelAdmin::ProxyPushConsumer_var proxy_;
43 // The proxy
46 #endif /* SUPPLIER_H */