Changes to attempt to silence bcc64x
[ACE_TAO.git] / TAO / orbsvcs / examples / Log / RTEvent / RTEvent_Supplier.h
blob4b48fd774a28e4bc445fb549749fc3d1e8eda93e
1 /* -*- C++ -*- */
3 // ============================================================================
4 /**
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)
21 # pragma once
22 #endif /* ACE_LACKS_PRAGMA_ONCE */
24 class Supplier : public POA_RtecEventComm::PushSupplier
26 // = TITLE
27 // Simple supplier object
29 // = DESCRIPTION
30 // This class is a supplier of events.
31 // It simply publishes one event type.
33 public:
34 Supplier ();
35 // Constructor
37 int run (int argc, ACE_TCHAR* argv[]);
38 // Run the test
40 // = The RtecEventComm::PushSupplier methods
42 virtual void disconnect_push_supplier ();
43 // The skeleton methods.
45 private:
46 // = Data Members
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 */