00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file PortableServer_PolicyFactory.h 00006 * 00007 * $Id: PortableServer_PolicyFactory.h 81429 2008-04-24 18:49:54Z johnnyw $ 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 ::CORBA::LocalObject 00032 { 00033 public: 00034 CORBA::Policy_ptr create_policy (CORBA::PolicyType type, 00035 const CORBA::Any & value); 00036 }; 00037 00038 TAO_END_VERSIONED_NAMESPACE_DECL 00039 00040 #include /**/ "ace/post.h" 00041 00042 #endif /* TAO_PORTABLESERVER_POLICY_FACTORY_H */