00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file RTScheduler_Initializer.h 00006 * 00007 * $Id: RTScheduler_Initializer.h 89511 2010-03-17 13:55:49Z vzykov $ 00008 * 00009 * @author Yamuna Krishnamurthy <yamuna@oomworks.com> 00010 */ 00011 //============================================================================= 00012 00013 00014 #ifndef TAO_RTSCHEDULER_INITIALIZER_H 00015 #define TAO_RTSCHEDULER_INITIALIZER_H 00016 00017 #include /**/ "ace/pre.h" 00018 00019 #include "tao/Basic_Types.h" 00020 #include "tao/RTScheduling/rtscheduler_export.h" 00021 #include "tao/RTScheduling/Current.h" 00022 00023 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00024 # pragma once 00025 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00026 00027 #include "tao/PI_Server/PI_Server.h" 00028 #include "tao/LocalObject.h" 00029 00030 // This is to remove "inherits via dominance" warnings from MSVC. 00031 // MSVC is being a little too paranoid. 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 /// RTCORBA ORB initializer. 00040 class TAO_RTScheduler_ORB_Initializer 00041 : public virtual PortableInterceptor::ORBInitializer 00042 , public virtual ::CORBA::LocalObject 00043 { 00044 public: 00045 virtual void pre_init (PortableInterceptor::ORBInitInfo_ptr info); 00046 00047 virtual void post_init (PortableInterceptor::ORBInitInfo_ptr info); 00048 00049 private: 00050 TAO_RTScheduler_Current_var current_; 00051 }; 00052 00053 TAO_END_VERSIONED_NAMESPACE_DECL 00054 00055 #if defined(_MSC_VER) 00056 #pragma warning(pop) 00057 #endif /* _MSC_VER */ 00058 00059 #include /**/ "ace/post.h" 00060 00061 #endif /* TAO_RTSCHEDULER_INITIALIZER_H */