00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file EndpointPolicy_Factory.h 00006 * 00007 * $Id: EndpointPolicy_Factory.h 81429 2008-04-24 18:49:54Z johnnyw $ 00008 * 00009 * @author Yan Dai <dai_y@ociweb.com> 00010 */ 00011 //============================================================================= 00012 00013 00014 #ifndef TAO_ENDPOINTPOLICY_FACTORY_H 00015 #define TAO_ENDPOINTPOLICY_FACTORY_H 00016 00017 #include /**/ "ace/pre.h" 00018 00019 #include "tao/EndpointPolicy/EndpointPolicy_Export.h" 00020 00021 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00022 # pragma once 00023 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00024 00025 #include "tao/PI/PI.h" 00026 #include "tao/LocalObject.h" 00027 00028 // This is to remove "inherits via dominance" warnings from MSVC. 00029 // MSVC is being a little too paranoid. 00030 #if defined(_MSC_VER) 00031 #pragma warning(push) 00032 #pragma warning(disable:4250) 00033 #endif /* _MSC_VER */ 00034 00035 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00036 00037 // Forward declarations. 00038 class TAO_ORB_Core; 00039 00040 /// Policy factory for the endpoint policies. 00041 class TAO_EndpointPolicy_Export TAO_EndpointPolicy_Factory 00042 : public virtual PortableInterceptor::PolicyFactory, 00043 public virtual ::CORBA::LocalObject 00044 { 00045 public: 00046 00047 TAO_EndpointPolicy_Factory (TAO_ORB_Core * orb_core); 00048 00049 virtual CORBA::Policy_ptr create_policy (CORBA::PolicyType type, 00050 const CORBA::Any & value); 00051 private: 00052 00053 TAO_ORB_Core * orb_core_; 00054 }; 00055 00056 TAO_END_VERSIONED_NAMESPACE_DECL 00057 00058 #if defined(_MSC_VER) 00059 #pragma warning(pop) 00060 #endif /* _MSC_VER */ 00061 00062 #include /**/ "ace/post.h" 00063 00064 #endif /* TAO_ENDPOINTPOLICY_FACTORY_H */