3 // ============================================================================
5 * @file Event_Supplier.h
7 * An example of using the Event_Logging_Service.
9 * @author D A Hanvey (d.hanvey@qub.ac.uk)
11 // ============================================================================
13 #ifndef EVENT_SUPPLIER_H
14 #define EVENT_SUPPLIER_H
16 #include "orbsvcs/DsEventLogAdminC.h"
17 #include "orbsvcs/CosEventCommS.h"
18 #include "orbsvcs/CosNamingC.h"
20 #if !defined (ACE_LACKS_PRAGMA_ONCE)
22 #endif /* ACE_LACKS_PRAGMA_ONCE */
24 class Supplier
: public POA_CosEventComm::PushSupplier
27 // Simple supplier object
30 // This class is a supplier of events.
36 int run (int argc
, ACE_TCHAR
* argv
[]);
39 // = The CosEventComm::PushSupplier methods
41 virtual void disconnect_push_supplier ();
42 // The skeleton methods.
47 // The ORB that we use.
49 CosNaming::NamingContext_var naming_context_
;
50 // Handle to the name service.
52 DsEventLogAdmin::EventLogFactory_var event_log_factory_
;
53 // The Event Log Factory that generates the events to be consumed.
55 CosEventChannelAdmin::ProxyPushConsumer_var consumer_
;
56 // The proxy that we are connected to.
59 #endif /* EVENT_SUPPLIER_H */