00001 // -*- C++ -*- 00002 00003 /** 00004 * @file RT_Properties.h 00005 * 00006 * RT_Properties.h,v 1.8 2006/03/14 06:14:34 jtc Exp 00007 * 00008 * @author Pradeep Gore <pradeep@oomworks.com> 00009 */ 00010 00011 #ifndef TAO_Notify_RT_PROPERTIES_H 00012 #define TAO_Notify_RT_PROPERTIES_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 "tao/TAO_Singleton.h" 00022 #include "tao/RTCORBA/RTCORBA.h" 00023 00024 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00025 00026 /** 00027 * @class TAO_Notify_RT_Properties 00028 * 00029 * @brief RT specifc global properties are stored here. 00030 * 00031 */ 00032 class TAO_RT_Notify_Export TAO_Notify_RT_Properties 00033 { 00034 friend class TAO_Singleton<TAO_Notify_RT_Properties, TAO_SYNCH_MUTEX>; 00035 00036 public: 00037 /// Constuctor 00038 TAO_Notify_RT_Properties (void); 00039 00040 /// Destructor 00041 ~TAO_Notify_RT_Properties (); 00042 00043 RTCORBA::RTORB_ptr rt_orb (void); 00044 void rt_orb (RTCORBA::RTORB_ptr rt_orb); 00045 00046 RTCORBA::Current_ptr current (void); 00047 void current (RTCORBA::Current_ptr current); 00048 00049 protected: 00050 /// RT-ORB 00051 RTCORBA::RTORB_var rt_orb_; 00052 00053 /// Current 00054 RTCORBA::Current_var current_; 00055 }; 00056 00057 TAO_RT_NOTIFY_SINGLETON_DECLARE (TAO_Singleton, TAO_Notify_RT_Properties, TAO_SYNCH_MUTEX) 00058 00059 typedef TAO_Singleton<TAO_Notify_RT_Properties, TAO_SYNCH_MUTEX> TAO_Notify_RT_PROPERTIES; 00060 00061 TAO_END_VERSIONED_NAMESPACE_DECL 00062 00063 #if defined (__ACE_INLINE__) 00064 #include "orbsvcs/Notify/RT_Properties.inl" 00065 #endif /* __ACE_INLINE__ */ 00066 00067 #include /**/ "ace/post.h" 00068 #endif /* TAO_Notify_RT_PROPERTIES_H */