00001 // -*- C++ -*- 00002 00003 /** 00004 * @file RT_Properties.h 00005 * 00006 * $Id: RT_Properties.h 81422 2008-04-24 12:33:29Z johnnyw $ 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/RTCORBA/RTCORBA.h" 00022 00023 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00024 00025 /** 00026 * @class TAO_Notify_RT_Properties 00027 * 00028 * @brief RT specifc global properties are stored here. 00029 * 00030 */ 00031 class TAO_RT_Notify_Export TAO_Notify_RT_Properties 00032 { 00033 public: 00034 /// Constructor 00035 TAO_Notify_RT_Properties (void); 00036 00037 /// Destructor 00038 ~TAO_Notify_RT_Properties (); 00039 00040 /// Return singleton instance of this class. 00041 static TAO_Notify_RT_Properties * instance (void); 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 /** 00058 * @todo Remove this legacy TAO_Notify_RT_Properties typedef. 00059 */ 00060 typedef TAO_Notify_RT_Properties TAO_Notify_RT_PROPERTIES; 00061 00062 TAO_END_VERSIONED_NAMESPACE_DECL 00063 00064 #if defined (__ACE_INLINE__) 00065 #include "orbsvcs/Notify/RT_Properties.inl" 00066 #endif /* __ACE_INLINE__ */ 00067 00068 #include /**/ "ace/post.h" 00069 #endif /* TAO_Notify_RT_PROPERTIES_H */