00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file PI_PolicyFactory.h 00006 * 00007 * $Id: PI_PolicyFactory.h 81429 2008-04-24 18:49:54Z johnnyw $ 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/PI_includeC.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 ::CORBA::LocalObject 00037 { 00038 public: 00039 CORBA::Policy_ptr create_policy (CORBA::PolicyType type, 00040 const CORBA::Any & value); 00041 }; 00042 00043 TAO_END_VERSIONED_NAMESPACE_DECL 00044 00045 #endif /* TAO_HAS_INTERCEPTORS == 1 */ 00046 00047 #include /**/ "ace/post.h" 00048 00049 #endif /* TAO_PI_POLICY_FACTORY_H */