3 // ============================================================================
5 * @file RTEvent_Supplier.h
7 * An example of using the RTEvent_Logging_Service.
9 * @author D A Hanvey (d.hanvey@qub.ac.uk)
11 // ============================================================================
13 #ifndef RTEVENT_SUPPLIER_H
14 #define RTEVENT_SUPPLIER_H
16 #include "orbsvcs/RtecEventCommS.h"
17 #include "orbsvcs/RTEventLogAdminC.h"
18 #include "orbsvcs/CosNamingC.h"
20 #if !defined (ACE_LACKS_PRAGMA_ONCE)
22 #endif /* ACE_LACKS_PRAGMA_ONCE */
24 class Supplier
: public POA_RtecEventComm::PushSupplier
27 // Simple supplier object
30 // This class is a supplier of events.
31 // It simply publishes one event type.
37 int run (int argc
, ACE_TCHAR
* argv
[]);
40 // = The RtecEventComm::PushSupplier methods
42 virtual void disconnect_push_supplier ();
43 // The skeleton methods.
47 CosNaming::NamingContext_var naming_context_
;
48 // Handle to the name service.
50 RTEventLogAdmin::EventLogFactory_var event_log_factory_
;
51 // The Event Log Factory that generates the events to be consumed.
53 RtecEventChannelAdmin::ProxyPushConsumer_var consumer_
;
54 // The proxy that we are connected to.
57 #endif /* RTEVENT_SUPPLIER_H */