Merge pull request #2218 from jwillemsen/jwi-pthreadsigmask
[ACE_TAO.git] / TAO / tao / ZIOP / ZIOP_PolicyFactory.h
blob3bbcb77ee88d6e7aa9d2527d2738cabb8e197616
1 // -*- C -*-
2 //
3 // ===================================================================
4 /**
5 * @file ZIOP_PolicyFactory.h
7 * @author Johnny Willemsen <jwillemsen@remedy.nl>
8 */
9 // ===================================================================
10 #ifndef TAO_ZIOP_POLICY_FACTORY_H
11 #define TAO_ZIOP_POLICY_FACTORY_H
13 #include /**/ "ace/pre.h"
15 #include "tao/ZIOP/ziop_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_ZIOP_PolicyFactory
35 : public PortableInterceptor::PolicyFactory
36 , public ::CORBA::LocalObject
38 public:
39 virtual CORBA::Policy_ptr create_policy (CORBA::PolicyType type,
40 const CORBA::Any & value);
42 virtual CORBA::Policy_ptr _create_policy (CORBA::PolicyType type);
45 TAO_END_VERSIONED_NAMESPACE_DECL
47 #if defined(_MSC_VER)
48 # pragma warning(pop)
49 #endif /* _MSC_VER */
51 #include /**/ "ace/post.h"
53 #endif /* TAO_ZIOP_POLICY_FACTORY_H */