diff options
author | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:21 +0000 |
---|---|---|
committer | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:21 +0000 |
commit | 0e49389337be86641451a5c36c24bf742fe97523 (patch) | |
tree | 197c810e5f5bce17b1233a7cb8d7b50c0bcd25e2 /TAO/tao/Policy_Manager.cpp | |
parent | 8008dd09ccf88d4edef237a184a698cac42f2952 (diff) | |
download | ATCD-0e49389337be86641451a5c36c24bf742fe97523.tar.gz |
Repo restructuring
Diffstat (limited to 'TAO/tao/Policy_Manager.cpp')
-rw-r--r-- | TAO/tao/Policy_Manager.cpp | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/TAO/tao/Policy_Manager.cpp b/TAO/tao/Policy_Manager.cpp new file mode 100644 index 00000000000..5e7383c4cc8 --- /dev/null +++ b/TAO/tao/Policy_Manager.cpp @@ -0,0 +1,40 @@ +// $Id$ + +#include "tao/Policy_Manager.h" + +#if (TAO_HAS_CORBA_MESSAGING == 1) + +#if !defined (__ACE_INLINE__) +# include "tao/Policy_Manager.i" +#endif /* ! __ACE_INLINE__ */ + + +ACE_RCSID (tao, + Policy_Manager, + "$Id$") + +TAO_BEGIN_VERSIONED_NAMESPACE_DECL + +CORBA::PolicyList * +TAO_Policy_Manager::get_policy_overrides (const CORBA::PolicyTypeSeq & ts + ACE_ENV_ARG_DECL) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, ace_mon, this->mutex_, 0); + return this->impl_.get_policy_overrides (ts ACE_ENV_ARG_PARAMETER); +} + +void +TAO_Policy_Manager::set_policy_overrides (const CORBA::PolicyList & policies, + CORBA::SetOverrideType set_add + ACE_ENV_ARG_DECL) + ACE_THROW_SPEC ((CORBA::SystemException, + CORBA::InvalidPolicies)) +{ + ACE_GUARD (TAO_SYNCH_MUTEX, ace_mon, this->mutex_); + this->impl_.set_policy_overrides (policies, set_add ACE_ENV_ARG_PARAMETER); +} + +TAO_END_VERSIONED_NAMESPACE_DECL + +#endif /* TAO_HAS_CORBA_MESSAGING == 1 */ |