Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tao / RTScheduling / RTScheduler_Initializer.h
blob0ba5f293488ce80f016f923a5532e515b0e6a5b4
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file RTScheduler_Initializer.h
7 * @author Yamuna Krishnamurthy <yamuna@oomworks.com>
8 */
9 //=============================================================================
12 #ifndef TAO_RTSCHEDULER_INITIALIZER_H
13 #define TAO_RTSCHEDULER_INITIALIZER_H
15 #include /**/ "ace/pre.h"
17 #include "tao/Basic_Types.h"
18 #include "tao/RTScheduling/rtscheduler_export.h"
19 #include "tao/RTScheduling/Current.h"
21 #if !defined (ACE_LACKS_PRAGMA_ONCE)
22 # pragma once
23 #endif /* ACE_LACKS_PRAGMA_ONCE */
25 #include "tao/PI_Server/PI_Server.h"
26 #include "tao/LocalObject.h"
28 // This is to remove "inherits via dominance" warnings from MSVC.
29 // MSVC is being a little too paranoid.
30 #if defined(_MSC_VER)
31 #pragma warning(push)
32 #pragma warning(disable:4250)
33 #endif /* _MSC_VER */
35 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
37 /// RTCORBA ORB initializer.
38 class TAO_RTScheduler_ORB_Initializer
39 : public virtual PortableInterceptor::ORBInitializer
40 , public virtual ::CORBA::LocalObject
42 public:
43 void pre_init (PortableInterceptor::ORBInitInfo_ptr info) override;
45 void post_init (PortableInterceptor::ORBInitInfo_ptr info) override;
47 private:
48 TAO_RTScheduler_Current_var current_;
51 TAO_END_VERSIONED_NAMESPACE_DECL
53 #if defined(_MSC_VER)
54 #pragma warning(pop)
55 #endif /* _MSC_VER */
57 #include /**/ "ace/post.h"
59 #endif /* TAO_RTSCHEDULER_INITIALIZER_H */