Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tao / Messaging / Messaging_PolicyFactory.h
blob60423c6f9d1dbb622ee4263911babee017bd4350
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file Messaging_PolicyFactory.h
7 * @author Carlos O'Ryan <coryan@uci.edu>
8 * @author Ossama Othman <ossama@uci.edu>
9 */
10 //=============================================================================
13 #ifndef TAO_MESSAGING_POLICY_FACTORY_H
14 #define TAO_MESSAGING_POLICY_FACTORY_H
16 #include /**/ "ace/pre.h"
18 #include "tao/Messaging/messaging_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 /// Policy factory for all Messaging related policies.
37 class TAO_Messaging_PolicyFactory
38 : public virtual PortableInterceptor::PolicyFactory,
39 public virtual ::CORBA::LocalObject
41 public:
42 virtual CORBA::Policy_ptr create_policy (CORBA::PolicyType type,
43 const CORBA::Any & value);
46 TAO_END_VERSIONED_NAMESPACE_DECL
48 #if defined(_MSC_VER)
49 #pragma warning(pop)
50 #endif /* _MSC_VER */
52 #include /**/ "ace/post.h"
54 #endif /* TAO_MESSAGING_POLICY_FACTORY_H */