Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / EndpointPolicy / EndpointPolicy_ORBInitializer.h
blob6767efd439c27e82ae5ba2f849e448723b473119
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file EndpointPolicy_ORBInitializer.h
7 * @author Yan Dai <dai_y@ociweb.com>
8 */
9 //=============================================================================
12 #ifndef TAO_ENDPOINTPOLICY_ORB_INITIALIZER_H
13 #define TAO_ENDPOINTPOLICY_ORB_INITIALIZER_H
15 #include /**/ "ace/pre.h"
17 #include "tao/EndpointPolicy/EndpointPolicy_Export.h"
19 #if !defined (ACE_LACKS_PRAGMA_ONCE)
20 # pragma once
21 #endif /* ACE_LACKS_PRAGMA_ONCE */
23 #include "tao/PI/PI.h"
24 #include "tao/LocalObject.h"
26 // This is to remove "inherits via dominance" warnings from MSVC.
27 // MSVC is being a little too paranoid.
28 #if defined(_MSC_VER)
29 #pragma warning(push)
30 #pragma warning(disable:4250)
31 #endif /* _MSC_VER */
33 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
35 /// EndpointPolicy ORB initializer.
36 class TAO_EndpointPolicy_ORBInitializer
37 : public virtual PortableInterceptor::ORBInitializer,
38 public virtual ::CORBA::LocalObject
40 public:
41 /**
42 * @name PortableInterceptor::ORBInitializer Methods
44 * The following methods are required by the
45 * PortableInterceptor::ORBInitializer interface.
47 //@{
48 virtual void pre_init (PortableInterceptor::ORBInitInfo_ptr info);
50 virtual void post_init (PortableInterceptor::ORBInitInfo_ptr info);
51 //@}
53 private:
54 /// Register Endpoint policy factories.
55 void register_policy_factories (PortableInterceptor::ORBInitInfo_ptr info);
58 TAO_END_VERSIONED_NAMESPACE_DECL
60 #if defined(_MSC_VER)
61 #pragma warning(pop)
62 #endif /* _MSC_VER */
64 #include /**/ "ace/post.h"
66 #endif /* TAO_ENDPOINTPOLICY_ORB_INITIALIZER_H */