3 //=============================================================================
5 * @file DiffServPolicy_Factory.h
7 * @author Jaiganesh Balasubramanian <jai@dre.vanderbilt.edu>
8 * @author Johnny Willemsen <jwillemsen@remedy.nl>
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)
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.
32 #pragma warning(disable:4250)
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
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
55 #include /**/ "ace/post.h"
57 #endif /* TAO_DIFFSERV_POLICY_FACTORY_H */