diff options
Diffstat (limited to 'ACE/TAO/orbsvcs/examples/Log/RTEvent/RTEvent_Supplier.h')
-rw-r--r-- | ACE/TAO/orbsvcs/examples/Log/RTEvent/RTEvent_Supplier.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/ACE/TAO/orbsvcs/examples/Log/RTEvent/RTEvent_Supplier.h b/ACE/TAO/orbsvcs/examples/Log/RTEvent/RTEvent_Supplier.h new file mode 100644 index 00000000000..9e456ff78ee --- /dev/null +++ b/ACE/TAO/orbsvcs/examples/Log/RTEvent/RTEvent_Supplier.h @@ -0,0 +1,62 @@ +/* -*- C++ -*- */ + +// ============================================================================ +/** + * @file RTEvent_Supplier.h + * + * $Id$ + * + * An example of using the RTEvent_Logging_Service. + * + * + * + * @author D A Hanvey (d.hanvey@qub.ac.uk) + */ +// ============================================================================ + +#ifndef RTEVENT_SUPPLIER_H +#define RTEVENT_SUPPLIER_H + +#include "orbsvcs/RtecEventCommS.h" +#include "orbsvcs/RTEventLogAdminC.h" +#include "orbsvcs/CosNamingC.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +class Supplier : public POA_RtecEventComm::PushSupplier +{ + // = TITLE + // Simple supplier object + // + // = DESCRIPTION + // This class is a supplier of events. + // It simply publishes one event type. + // +public: + Supplier (void); + // Constructor + + int run (int argc, ACE_TCHAR* argv[]); + // Run the test + + // = The RtecEventComm::PushSupplier methods + + virtual void disconnect_push_supplier (void); + // The skeleton methods. + +private: + + // = Data Members + CosNaming::NamingContext_var naming_context_; + // Handle to the name service. + + RTEventLogAdmin::EventLogFactory_var event_log_factory_; + // The Event Log Factory that generates the events to be consumed. + + RtecEventChannelAdmin::ProxyPushConsumer_var consumer_; + // The proxy that we are connected to. +}; + +#endif /* RTEVENT_SUPPLIER_H */ |