Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / orbsvcs / examples / Log / Event / Event_Supplier.h
blobe1639955cd79061822472c4818de0d8b0d8d40c3
1 /* -*- C++ -*- */
3 // ============================================================================
4 /**
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)
21 # pragma once
22 #endif /* ACE_LACKS_PRAGMA_ONCE */
24 class Supplier : public POA_CosEventComm::PushSupplier
26 // = TITLE
27 // Simple supplier object
29 // = DESCRIPTION
30 // This class is a supplier of events.
32 public:
33 Supplier ();
34 // Constructor
36 int run (int argc, ACE_TCHAR* argv[]);
37 // Run the test
39 // = The CosEventComm::PushSupplier methods
41 virtual void disconnect_push_supplier ();
42 // The skeleton methods.
44 private:
45 // = Data Members
46 CORBA::ORB_var orb_;
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 */