00001 // -*- C++ -*- 00002 00003 /** 00004 * @file RT_POA_Helper.h 00005 * 00006 * $Id: RT_POA_Helper.h 81416 2008-04-24 10:26:10Z johnnyw $ 00007 * 00008 * @author Pradeep Gore <pradeep@oomworks.com> 00009 */ 00010 00011 #ifndef TAO_Notify_RT_POA_Helper_H 00012 #define TAO_Notify_RT_POA_Helper_H 00013 #include /**/ "ace/pre.h" 00014 00015 #include "orbsvcs/Notify/rt_notify_export.h" 00016 00017 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00018 # pragma once 00019 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00020 00021 #include "orbsvcs/Notify/POA_Helper.h" 00022 #include "orbsvcs/NotifyExtC.h" 00023 00024 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00025 00026 /** 00027 * @class TAO_Notify_RT_POA_Helper 00028 * 00029 * @brief Helper for creating RT POA objects. 00030 * 00031 */ 00032 class TAO_RT_Notify_Export TAO_Notify_RT_POA_Helper : public TAO_Notify_POA_Helper 00033 { 00034 public: 00035 /// Destructor 00036 ~TAO_Notify_RT_POA_Helper (void); 00037 00038 /// Create a new PortableServer::POA. 00039 /// The UNIQUE_ID, USER_ID , CLIENT_PROPAGATED and thread pool policy is applied to the new POA. 00040 void init (PortableServer::POA_ptr parent_poa, const char* poa_name, const NotifyExt::ThreadPoolParams& tp_params); 00041 00042 /// Create a new PortableServer::POA. The name is chosen at random. 00043 /// The UNIQUE_ID, USER_ID , CLIENT_PROPAGATED and thread pool policy is applied to the new POA. 00044 void init (PortableServer::POA_ptr parent_poa, const NotifyExt::ThreadPoolParams& tp_params); 00045 00046 /// Create a new PortableServer::POA. 00047 /// The UNIQUE_ID, USER_ID , CLIENT_PROPAGATED and thread lane policy is applied to the new POA. 00048 void init (PortableServer::POA_ptr parent_poa, const char* poa_name, 00049 const NotifyExt::ThreadPoolLanesParams& tpl_params); 00050 00051 /// Create a new PortableServer::POA. The name is chosen at random. 00052 /// The UNIQUE_ID, USER_ID , CLIENT_PROPAGATED and thread lane policy is applied to the new POA. 00053 void init (PortableServer::POA_ptr parent_poa, const NotifyExt::ThreadPoolLanesParams& tpl_params); 00054 00055 /// Create a new PortableServer::POA. The name is chosen at random. 00056 /// The CLIENT_PROPAGATED policy is applied to the new POA. 00057 void init (PortableServer::POA_ptr parent_poa); 00058 }; 00059 00060 TAO_END_VERSIONED_NAMESPACE_DECL 00061 00062 #include /**/ "ace/post.h" 00063 #endif /* TAO_Notify_RT_POA_Helper_H */