Policy_Manager.cpp

Go to the documentation of this file.
00001 // Policy_Manager.cpp,v 1.46 2006/03/10 07:19:06 jtc Exp
00002 
00003 #include "tao/Policy_Manager.h"
00004 
00005 #if (TAO_HAS_CORBA_MESSAGING == 1)
00006 
00007 #if !defined (__ACE_INLINE__)
00008 # include "tao/Policy_Manager.i"
00009 #endif /* ! __ACE_INLINE__ */
00010 
00011 
00012 ACE_RCSID (tao,
00013            Policy_Manager,
00014            "Policy_Manager.cpp,v 1.46 2006/03/10 07:19:06 jtc Exp")
00015 
00016 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00017 
00018 CORBA::PolicyList *
00019 TAO_Policy_Manager::get_policy_overrides (const CORBA::PolicyTypeSeq & ts
00020                                           ACE_ENV_ARG_DECL)
00021      ACE_THROW_SPEC ((CORBA::SystemException))
00022 {
00023   ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->mutex_, 0);
00024   return this->impl_.get_policy_overrides (ts ACE_ENV_ARG_PARAMETER);
00025 }
00026 
00027 void
00028 TAO_Policy_Manager::set_policy_overrides (const CORBA::PolicyList & policies,
00029                                           CORBA::SetOverrideType set_add
00030                                           ACE_ENV_ARG_DECL)
00031   ACE_THROW_SPEC ((CORBA::SystemException,
00032                    CORBA::InvalidPolicies))
00033 {
00034   ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->mutex_);
00035   this->impl_.set_policy_overrides (policies, set_add ACE_ENV_ARG_PARAMETER);
00036 }
00037 
00038 TAO_END_VERSIONED_NAMESPACE_DECL
00039 
00040 #endif /* TAO_HAS_CORBA_MESSAGING == 1 */

Generated on Thu Nov 9 11:54:20 2006 for TAO by doxygen 1.3.6