Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tao / DiffServPolicy / DiffServPolicy_ORBInitializer.h
blobcf3dd677fc1f0f7f5819b23715a77f2abf3fc5a6
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file DiffServPolicy_ORBInitializer.h
7 * @author Jaiganesh Balasubramanian <jai@dre.vanderbilt.edu>
8 * Johnny Willemsen <jwillemsen@remedy.nl>
9 */
10 //=============================================================================
13 #ifndef TAO_DIFFSERV_POLICY_ORB_INITIALIZER_H
14 #define TAO_DIFFSERV_POLICY_ORB_INITIALIZER_H
16 #include /**/ "ace/pre.h"
18 #include "tao/DiffServPolicy/DiffServPolicy_Export.h"
20 #if !defined (ACE_LACKS_PRAGMA_ONCE)
21 # pragma once
22 #endif /* ACE_LACKS_PRAGMA_ONCE */
24 #include "tao/PI/PI.h"
25 #include "tao/LocalObject.h"
27 // This is to remove "inherits via dominance" warnings from MSVC.
28 // MSVC is being a little too paranoid.
29 #if defined(_MSC_VER)
30 #pragma warning(push)
31 #pragma warning(disable:4250)
32 #endif /* _MSC_VER */
34 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
36 /// DiffServ Policy ORB initializer.
37 class TAO_DiffServPolicy_Export TAO_DiffServPolicy_ORBInitializer
38 : public virtual PortableInterceptor::ORBInitializer
39 , public virtual ::CORBA::LocalObject
41 public:
42 virtual void pre_init (PortableInterceptor::ORBInitInfo_ptr info);
44 virtual void post_init (PortableInterceptor::ORBInitInfo_ptr info);
46 private:
47 /// Register DiffServ policy factories.
48 void register_policy_factories (PortableInterceptor::ORBInitInfo_ptr info);
50 private:
51 PortableInterceptor::PolicyFactory_var policy_factory_;
54 TAO_END_VERSIONED_NAMESPACE_DECL
56 #if defined(_MSC_VER)
57 #pragma warning(pop)
58 #endif /* _MSC_VER */
60 #include /**/ "ace/post.h"
62 #endif /* TAO_DIFFSERV_POLICY_ORB_INITIALIZER_H */