00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file Policy_Current_Impl.h 00006 * 00007 * $Id: Policy_Current_Impl.h 79118 2007-07-31 11:38:01Z johnnyw $ 00008 * 00009 * An implementation for the CORBA::PolicyManager interface. 00010 * 00011 * 00012 * @author Carlos O'Ryan (coryan@cs.wustl.edu) 00013 */ 00014 //============================================================================= 00015 00016 00017 #ifndef TAO_POLICY_CURRENT_IMPL_H 00018 #define TAO_POLICY_CURRENT_IMPL_H 00019 00020 #include /**/ "ace/pre.h" 00021 00022 #include /**/ "tao/TAO_Export.h" 00023 00024 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00025 # pragma once 00026 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00027 00028 #include "tao/orbconf.h" 00029 00030 #if (TAO_HAS_CORBA_MESSAGING == 1) 00031 00032 #include "tao/PolicyC.h" 00033 #include "tao/LocalObject.h" 00034 #include "tao/Policy_Set.h" 00035 00036 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00037 00038 class TAO_Policy_Current_Impl 00039 { 00040 public: 00041 00042 TAO_Policy_Current_Impl (void); 00043 00044 /// Obtain a single policy. 00045 CORBA::Policy_ptr get_policy (CORBA::PolicyType policy); 00046 00047 /// Obtain a single cached policy. 00048 CORBA::Policy_ptr get_cached_policy (TAO_Cached_Policy_Type type); 00049 00050 // = The CORBA::PolicyManager operations 00051 00052 CORBA::PolicyList * get_policy_overrides (const CORBA::PolicyTypeSeq & ts); 00053 void set_policy_overrides (const CORBA::PolicyList & policies, 00054 CORBA::SetOverrideType set_add); 00055 00056 private: 00057 /// The implementation. 00058 TAO_Policy_Set manager_impl_; 00059 }; 00060 00061 TAO_END_VERSIONED_NAMESPACE_DECL 00062 00063 #if defined (__ACE_INLINE__) 00064 # include "tao/Policy_Current_Impl.inl" 00065 #endif /* __ACE_INLINE__ */ 00066 00067 #endif /* TAO_HAS_CORBA_MESSAGING == 1 */ 00068 00069 #include /**/ "ace/post.h" 00070 00071 #endif /* TAO_POLICY_CURRENT_IMPL_H */