00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file PI_PolicyFactory.h 00006 * 00007 * PI_PolicyFactory.h,v 1.4 2006/03/10 07:19:12 jtc Exp 00008 * 00009 * @author Tim Bradley <bradley_t@ociweb.com> 00010 */ 00011 //============================================================================= 00012 00013 #ifndef TAO_PI_POLICY_FACTORY_H 00014 #define TAO_PI_POLICY_FACTORY_H 00015 00016 #include /**/ "ace/pre.h" 00017 00018 #include "tao/orbconf.h" 00019 00020 #if TAO_HAS_INTERCEPTORS == 1 00021 00022 #include "tao/PI/pi_export.h" 00023 00024 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00025 # pragma once 00026 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00027 00028 #include "tao/LocalObject.h" 00029 #include "tao/PI/PolicyFactoryC.h" 00030 00031 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00032 00033 /// Policy factory for all PortableInterceptor related policies. 00034 class TAO_PI_Export TAO_PI_PolicyFactory 00035 : public virtual PortableInterceptor::PolicyFactory, 00036 public virtual TAO_Local_RefCounted_Object 00037 { 00038 public: 00039 CORBA::Policy_ptr create_policy (CORBA::PolicyType type, 00040 const CORBA::Any & value 00041 ACE_ENV_ARG_DECL_WITH_DEFAULTS) 00042 ACE_THROW_SPEC ((CORBA::SystemException, 00043 CORBA::PolicyError)); 00044 }; 00045 00046 TAO_END_VERSIONED_NAMESPACE_DECL 00047 00048 #endif /* TAO_HAS_INTERCEPTORS == 1 */ 00049 00050 #include /**/ "ace/post.h" 00051 00052 #endif /* TAO_PI_POLICY_FACTORY_H */