00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file PortableServer_PolicyFactory.h 00006 * 00007 * PortableServer_PolicyFactory.h,v 1.2 2005/11/04 09:26:55 ossama Exp 00008 * 00009 * @author Irfan Pyarali <irfan@oomworks.com> 00010 */ 00011 //============================================================================= 00012 00013 #ifndef TAO_PORTABLESERVER_POLICY_FACTORY_H 00014 #define TAO_PORTABLESERVER_POLICY_FACTORY_H 00015 00016 #include /**/ "ace/pre.h" 00017 00018 #include "tao/PI/PI.h" 00019 00020 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00021 # pragma once 00022 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00023 00024 #include "tao/LocalObject.h" 00025 00026 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00027 00028 /// Policy factory for all PortableServer related policies. 00029 class TAO_PortableServer_PolicyFactory 00030 : public virtual PortableInterceptor::PolicyFactory, 00031 public virtual TAO_Local_RefCounted_Object 00032 { 00033 public: 00034 CORBA::Policy_ptr create_policy (CORBA::PolicyType type, 00035 const CORBA::Any & value 00036 ACE_ENV_ARG_DECL_WITH_DEFAULTS) 00037 ACE_THROW_SPEC ((CORBA::SystemException, 00038 CORBA::PolicyError)); 00039 }; 00040 00041 TAO_END_VERSIONED_NAMESPACE_DECL 00042 00043 #include /**/ "ace/post.h" 00044 00045 #endif /* TAO_PORTABLESERVER_POLICY_FACTORY_H */