Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / BiDir_GIOP / BiDir_PolicyFactory.h
blob86768b42efe4b873cd57d0c2719f1958ddb7e4e8
1 // -*- C++ -*-
2 //
3 // ===================================================================
4 /**
5 * @file BiDir_PolicyFactory.h
7 * @author Balachandran Natarajan <bala@cs.wustl.edu>
8 */
9 // ===================================================================
10 #ifndef TAO_BIDIR_POLICY_FACTORY_H
11 #define TAO_BIDIR_POLICY_FACTORY_H
13 #include /**/ "ace/pre.h"
15 #include "tao/BiDir_GIOP/bidirgiop_export.h"
17 #if !defined (ACE_LACKS_PRAGMA_ONCE)
18 # pragma once
19 #endif /* ACE_LACKS_PRAGMA_ONCE */
21 #include "tao/PI/PI.h"
22 #include "tao/LocalObject.h"
24 // This is to remove "inherits via dominance" warnings from MSVC.
25 // MSVC is being a little too paranoid.
26 #if defined(_MSC_VER)
27 # pragma warning(push)
28 # pragma warning(disable:4250)
29 #endif /* _MSC_VER */
31 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
33 /// Policy factory for all Messaging related policies.
34 class TAO_BiDir_PolicyFactory
35 : public PortableInterceptor::PolicyFactory
36 , public ::CORBA::LocalObject
38 public:
39 CORBA::Policy_ptr create_policy (CORBA::PolicyType type,
40 const CORBA::Any & value) override;
43 TAO_END_VERSIONED_NAMESPACE_DECL
45 #if defined(_MSC_VER)
46 # pragma warning(pop)
47 #endif /* _MSC_VER */
50 #include /**/ "ace/post.h"
52 #endif /* TAO_BIDIR_POLICY_FACTORY_H */