RT_Current.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file   RT_Current.h
00006  *
00007  *  RT_Current.h,v 1.10 2006/03/10 07:19:16 jtc Exp
00008  *
00009  *  @author Carlos O'Ryan (coryan@cs.wustl.edu)
00010  */
00011 //=============================================================================
00012 
00013 
00014 #ifndef TAO_RT_CURRENT_H
00015 #define TAO_RT_CURRENT_H
00016 #include /**/ "ace/pre.h"
00017 
00018 #include "tao/orbconf.h"
00019 
00020 #if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
00021 
00022 #define TAO_RTCORBA_SAFE_INCLUDE
00023 #include "tao/RTCORBA/RTCORBAC.h"
00024 #undef TAO_RTCORBA_SAFE_INCLUDE
00025 
00026 #include "tao/LocalObject.h"
00027 
00028 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00029 # pragma once
00030 #endif /* ACE_LACKS_PRAGMA_ONCE */
00031 
00032 #if defined(_MSC_VER)
00033 #pragma warning(push)
00034 #pragma warning(disable:4250)
00035 #endif /* _MSC_VER */
00036 
00037 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00038 
00039 /**
00040  * @class TAO_RT_Current
00041  *
00042  * @brief RTCORBA::Current interface iplementation.
00043  *
00044  * Allows setting/getting the priority of the current thread.
00045  */
00046 class TAO_RTCORBA_Export TAO_RT_Current
00047   : public RTCORBA::Current
00048   , public TAO_Local_RefCounted_Object
00049 {
00050 public:
00051 
00052   /// Default constructor.
00053   TAO_RT_Current (TAO_ORB_Core *orb_core);
00054 
00055   virtual RTCORBA::Priority the_priority (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
00056     ACE_THROW_SPEC ((CORBA::SystemException));
00057 
00058   virtual void the_priority (RTCORBA::Priority the_priority
00059                              ACE_ENV_ARG_DECL_WITH_DEFAULTS)
00060     ACE_THROW_SPEC ((CORBA::SystemException));
00061 
00062 protected:
00063 
00064   /// Protected destructor to enforce proper memory management of this
00065   /// reference counted object.
00066   virtual ~TAO_RT_Current (void);
00067 
00068 private:
00069 
00070   /// ORB Core that owns us.
00071   TAO_ORB_Core * const orb_core_;
00072 
00073 };
00074 
00075 TAO_END_VERSIONED_NAMESPACE_DECL
00076 
00077 #if defined(_MSC_VER)
00078 #pragma warning(pop)
00079 #endif /* _MSC_VER */
00080 
00081 #endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
00082 
00083 #include /**/ "ace/post.h"
00084 #endif /* TAO_RT_CURRENT_H */

Generated on Thu Nov 9 12:58:00 2006 for TAO_RTCORBA by doxygen 1.3.6