Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / PI_Server / PortableServer_PolicyFactory.h
blob96b73cb34a71fc3eb610ffc6290e838b7a747efc
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file PortableServer_PolicyFactory.h
7 * @author Irfan Pyarali <irfan@oomworks.com>
8 */
9 //=============================================================================
11 #ifndef TAO_PORTABLESERVER_POLICY_FACTORY_H
12 #define TAO_PORTABLESERVER_POLICY_FACTORY_H
14 #include /**/ "ace/pre.h"
16 #include "tao/PI/PI.h"
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
19 # pragma once
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 #include "tao/LocalObject.h"
24 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
26 /// Policy factory for all PortableServer related policies.
27 class TAO_PortableServer_PolicyFactory
28 : public virtual PortableInterceptor::PolicyFactory,
29 public virtual ::CORBA::LocalObject
31 public:
32 CORBA::Policy_ptr create_policy (CORBA::PolicyType type,
33 const CORBA::Any & value);
36 TAO_END_VERSIONED_NAMESPACE_DECL
38 #include /**/ "ace/post.h"
40 #endif /* TAO_PORTABLESERVER_POLICY_FACTORY_H */