Service.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 /**
00004  *  @file Service.h
00005  *
00006  *  Service.h,v 1.22 2006/03/14 06:14:34 jtc Exp
00007  *
00008  *  @author Pradeep Gore <pradeep@oomworks.com>
00009  */
00010 
00011 #ifndef TAO_Notify_SERVICE_H
00012 #define TAO_Notify_SERVICE_H
00013 #include /**/ "ace/pre.h"
00014 
00015 #include "orbsvcs/Notify/notify_serv_export.h"
00016 
00017 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00018 # pragma once
00019 #endif /* ACE_LACKS_PRAGMA_ONCE */
00020 
00021 #include "tao/Versioned_Namespace.h"
00022 
00023 #include "ace/Service_Object.h"
00024 #include "ace/Service_Config.h"
00025 #include "ace/CORBA_macros.h"
00026 
00027 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00028 
00029 namespace PortableServer
00030 {
00031   class POA;
00032   typedef POA *POA_ptr;
00033 }
00034 
00035 namespace CosNotifyChannelAdmin
00036 {
00037   class EventChannelFactory;
00038   typedef EventChannelFactory *EventChannelFactory_ptr;
00039 }
00040 
00041 namespace CORBA
00042 {
00043   class ORB;
00044   typedef ORB *ORB_ptr;
00045 }
00046 
00047 /**
00048  * @class TAO_Notify_Service
00049  *
00050  * @brief Abstract ACE_Service_Object interface that is a
00051  * factory for creating a Notify EventChannelFactory.
00052  *        Note that a Service creates only 1 Factory object.
00053  *
00054  */
00055 class TAO_Notify_Serv_Export TAO_Notify_Service : public ACE_Service_Object
00056 {
00057 public:
00058   /// Destructor.
00059   virtual ~TAO_Notify_Service (void);
00060 
00061   /// Init the service from configurator
00062   virtual int init (int argc, ACE_TCHAR *argv[]) = 0;
00063 
00064   /// Init the service.
00065   virtual void init_service (CORBA::ORB_ptr orb ACE_ENV_ARG_DECL) = 0;
00066 
00067   /// Create the Channel Factory.
00068   virtual CosNotifyChannelAdmin::EventChannelFactory_ptr create (
00069       PortableServer::POA_ptr default_POA ACE_ENV_ARG_DECL
00070     ) = 0;
00071 };
00072 
00073 TAO_END_VERSIONED_NAMESPACE_DECL
00074 
00075 #define TAO_NOTIFY_DEF_EMO_FACTORY_NAME "Notify_Default_Event_Manager_Objects_Factory"
00076 
00077 #define TAO_NOTIFICATION_SERVICE_NAME "TAO_Notify_Service"
00078 
00079 #define TAO_COS_NOTIFICATION_SERVICE_NAME "TAO_CosNotify_Service"
00080 
00081 #define TAO_RT_NOTIFICATION_SERVICE_NAME "TAO_RT_Notify_Service"
00082 
00083 #include /**/ "ace/post.h"
00084 #endif /* TAO_Notify_SERVICE_H */

Generated on Thu Nov 9 13:24:16 2006 for TAO_CosNotification by doxygen 1.3.6