1 #include "tao/Policy_Current.h"
3 #if (TAO_HAS_CORBA_MESSAGING == 1)
5 #include "tao/TSS_Resources.h"
7 #if !defined (__ACE_INLINE__)
8 # include "tao/Policy_Current.inl"
9 #endif /* ! __ACE_INLINE__ */
11 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
13 TAO_Policy_Current_Impl
&
14 TAO_Policy_Current::implementation (TAO_Policy_Current_Impl
¤t
)
16 TAO_TSS_Resources
* const tss
= TAO_TSS_Resources::instance ();
18 TAO_Policy_Current_Impl
*old
= tss
->policy_current_
;
19 tss
->policy_current_
= ¤t
;
23 TAO_Policy_Current_Impl
&
24 TAO_Policy_Current::implementation () const
26 return *TAO_TSS_Resources::instance ()->policy_current_
;
30 TAO_Policy_Current::get_policy (CORBA::PolicyType policy
)
32 TAO_Policy_Current_Impl
&impl
= this->implementation ();
34 return impl
.get_policy (policy
);
38 TAO_Policy_Current::get_policy_overrides (const CORBA::PolicyTypeSeq
& ts
)
41 TAO_Policy_Current_Impl
&impl
= this->implementation ();
43 return impl
.get_policy_overrides (ts
);
47 TAO_Policy_Current::set_policy_overrides (const CORBA::PolicyList
& policies
,
48 CORBA::SetOverrideType set_add
)
50 TAO_Policy_Current_Impl
&impl
= this->implementation ();
52 impl
.set_policy_overrides (policies
, set_add
);
56 TAO_Policy_Current::get_cached_policy (TAO_Cached_Policy_Type type
)
58 TAO_Policy_Current_Impl
&impl
= this->implementation ();
60 return impl
.get_cached_policy (type
);
63 TAO_END_VERSIONED_NAMESPACE_DECL
65 #endif /* TAO_HAS_CORBA_MESSAGING == 1 */