00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file Messaging_PolicyFactory.h 00006 * 00007 * $Id: Messaging_PolicyFactory.h 81429 2008-04-24 18:49:54Z johnnyw $ 00008 * 00009 * @author Carlos O'Ryan <coryan@uci.edu> 00010 * @author Ossama Othman <ossama@uci.edu> 00011 */ 00012 //============================================================================= 00013 00014 00015 #ifndef TAO_MESSAGING_POLICY_FACTORY_H 00016 #define TAO_MESSAGING_POLICY_FACTORY_H 00017 00018 #include /**/ "ace/pre.h" 00019 00020 #include "tao/Messaging/messaging_export.h" 00021 00022 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00023 # pragma once 00024 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00025 00026 #include "tao/PI/PI.h" 00027 #include "tao/LocalObject.h" 00028 00029 // This is to remove "inherits via dominance" warnings from MSVC. 00030 // MSVC is being a little too paranoid. 00031 #if defined(_MSC_VER) 00032 #pragma warning(push) 00033 #pragma warning(disable:4250) 00034 #endif /* _MSC_VER */ 00035 00036 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00037 00038 /// Policy factory for all Messaging related policies. 00039 class TAO_Messaging_PolicyFactory 00040 : public virtual PortableInterceptor::PolicyFactory, 00041 public virtual ::CORBA::LocalObject 00042 { 00043 public: 00044 virtual CORBA::Policy_ptr create_policy (CORBA::PolicyType type, 00045 const CORBA::Any & value); 00046 }; 00047 00048 TAO_END_VERSIONED_NAMESPACE_DECL 00049 00050 #if defined(_MSC_VER) 00051 #pragma warning(pop) 00052 #endif /* _MSC_VER */ 00053 00054 #include /**/ "ace/post.h" 00055 00056 #endif /* TAO_MESSAGING_POLICY_FACTORY_H */