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