diff options
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/Notify/Service.h')
-rw-r--r-- | TAO/orbsvcs/orbsvcs/Notify/Service.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Service.h b/TAO/orbsvcs/orbsvcs/Notify/Service.h new file mode 100644 index 00000000000..af8a28a2fd2 --- /dev/null +++ b/TAO/orbsvcs/orbsvcs/Notify/Service.h @@ -0,0 +1,53 @@ +/* -*- C++ -*- */ +/** + * @file Service.h + * + * $Id$ + * + * @author Pradeep Gore <pradeep@oomworks.com> + * + * + */ + +#ifndef TAO_NS_SERVICE_H +#define TAO_NS_SERVICE_H +#include "ace/pre.h" + +#include "notify_export.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "ace/Service_Config.h" +#include "orbsvcs/CosNotifyChannelAdminS.h" +#include "tao/PortableServer/PortableServer.h" + +/** + * @class TAO_NS_Service + * + * @brief Abstract ACE_Service_Object interface that is a + * factory for creating a Notify EventChannelFactory. + * Note that a Service creates only 1 Factory object. + * + */ +class TAO_Notify_Export TAO_NS_Service : public ACE_Service_Object +{ +public: + /// Define Service_Object method otherwise SunCC compiler complains. + virtual int init (int argc, char *argv[]) = 0; + + /// Init the service. + virtual void init (CORBA::ORB_ptr orb ACE_ENV_ARG_DECL) = 0; + + /// Create the Channel Factory. + virtual CosNotifyChannelAdmin::EventChannelFactory_ptr create ( + PortableServer::POA_ptr default_POA ACE_ENV_ARG_DECL + ) = 0; +}; + +#define TAO_NOTIFY_DEF_EMO_FACTORY_NAME "Notify_Default_Event_Manager_Objects_Factory" +#define TAO_NS_COS_NOTIFICATION_SERVICE_NAME "CosNotify_Service" + +#include "ace/post.h" +#endif /* TAO_NS_SERVICE_H */ |