1 // Reused from: $TAO_ROOT/orbsvcs/examples/RtEC/MCast
6 #include "orbsvcs/RtecEventCommS.h"
7 #include "orbsvcs/RtecEventChannelAdminC.h"
9 #if !defined (ACE_LACKS_PRAGMA_ONCE)
11 #endif /* ACE_LACKS_PRAGMA_ONCE */
13 class Supplier
: public POA_RtecEventComm::PushSupplier
16 // Simple supplier object
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
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.
42 RtecEventChannelAdmin::ProxyPushConsumer_var proxy_
;
46 #endif /* SUPPLIER_H */