3 //=============================================================================
5 * @file Messaging_PolicyFactory.h
7 * @author Carlos O'Ryan <coryan@uci.edu>
8 * @author Ossama Othman <ossama@uci.edu>
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)
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.
31 #pragma warning(disable:4250)
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
42 virtual CORBA::Policy_ptr
create_policy (CORBA::PolicyType type
,
43 const CORBA::Any
& value
);
46 TAO_END_VERSIONED_NAMESPACE_DECL
52 #include /**/ "ace/post.h"
54 #endif /* TAO_MESSAGING_POLICY_FACTORY_H */