00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file RT_PolicyFactory.h 00006 * 00007 * $Id: RT_PolicyFactory.h 82354 2008-07-22 11:34:18Z johnnyw $ 00008 * 00009 * @author Angelo Corsaro <corsaro@cs.wustl.edu> 00010 * @author Ossama Othman <ossama@uci.edu> 00011 */ 00012 //============================================================================= 00013 00014 00015 #ifndef TAO_RT_POLICY_FACTORY_H 00016 #define TAO_RT_POLICY_FACTORY_H 00017 00018 #include /**/ "ace/pre.h" 00019 00020 #include "tao/orbconf.h" 00021 00022 #if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0 00023 00024 #include "tao/RTCORBA/rtcorba_export.h" 00025 00026 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00027 # pragma once 00028 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00029 00030 #include "tao/PI/PI.h" 00031 #include "tao/LocalObject.h" 00032 00033 // This is to remove "inherits via dominance" warnings from MSVC. 00034 // MSVC is being a little too paranoid. 00035 #if defined(_MSC_VER) 00036 #pragma warning(push) 00037 #pragma warning(disable:4250) 00038 #endif /* _MSC_VER */ 00039 00040 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00041 00042 /// Policy factory for all RTCORBA related policies. 00043 class TAO_RT_PolicyFactory 00044 : public virtual PortableInterceptor::PolicyFactory, 00045 public virtual ::CORBA::LocalObject 00046 { 00047 public: 00048 virtual CORBA::Policy_ptr create_policy (CORBA::PolicyType type, 00049 const CORBA::Any &value); 00050 00051 virtual CORBA::Policy_ptr _create_policy (CORBA::PolicyType type); 00052 }; 00053 00054 TAO_END_VERSIONED_NAMESPACE_DECL 00055 00056 #if defined(_MSC_VER) 00057 #pragma warning(pop) 00058 #endif /* _MSC_VER */ 00059 00060 #endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */ 00061 00062 #include /**/ "ace/post.h" 00063 00064 #endif /* TAO_RT_POLICY_FACTORY_H */