Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tao / DiffServPolicy / DiffServPolicy_Factory.h
blob10949423533c7dc31b9a9f62a69f48e595b3b776
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file DiffServPolicy_Factory.h
7 * @author Jaiganesh Balasubramanian <jai@dre.vanderbilt.edu>
8 * @author Johnny Willemsen <jwillemsen@remedy.nl>
9 */
10 //=============================================================================
13 #ifndef TAO_DIFFSERV_POLICY_FACTORY_H
14 #define TAO_DIFFSERV_POLICY_FACTORY_H
16 #include /**/ "ace/pre.h"
18 #include "tao/orbconf.h"
19 #include "tao/DiffServPolicy/DiffServPolicy_Export.h"
21 #if !defined (ACE_LACKS_PRAGMA_ONCE)
22 # pragma once
23 #endif /* ACE_LACKS_PRAGMA_ONCE */
25 #include "tao/PI/PI.h"
26 #include "tao/LocalObject.h"
28 // This is to remove "inherits via dominance" warnings from MSVC.
29 // MSVC is being a little too paranoid.
30 #if defined(_MSC_VER)
31 #pragma warning(push)
32 #pragma warning(disable:4250)
33 #endif /* _MSC_VER */
35 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
37 /// Policy factory for all DiffServ related policies.
38 class TAO_DiffServPolicy_Export TAO_DiffServ_PolicyFactory
39 : public virtual PortableInterceptor::PolicyFactory,
40 public virtual ::CORBA::LocalObject
42 public:
43 CORBA::Policy_ptr create_policy (CORBA::PolicyType type,
44 const CORBA::Any &value);
46 CORBA::Policy_ptr _create_policy (CORBA::PolicyType type);
49 TAO_END_VERSIONED_NAMESPACE_DECL
51 #if defined(_MSC_VER)
52 #pragma warning(pop)
53 #endif /* _MSC_VER */
55 #include /**/ "ace/post.h"
57 #endif /* TAO_DIFFSERV_POLICY_FACTORY_H */