Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

TAO_Policy_Current Class Reference

#include <Policy_Manager.h>

Inheritance diagram for TAO_Policy_Current:

Inheritance graph
[legend]
Collaboration diagram for TAO_Policy_Current:

Collaboration graph
[legend]
List of all members.

Public Methods

 TAO_Policy_Current (void)
 Constructor. More...

CORBA::Policy_ptr get_policy (CORBA::PolicyType policy ACE_ENV_ARG_DECL_WITH_DEFAULTS)
 Obtain a single policy. More...

virtual CORBA::PolicyListget_policy_overrides (const CORBA::PolicyTypeSeq &ts ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException)
virtual void set_policy_overrides (const CORBA::PolicyList &policies, CORBA::SetOverrideType set_add ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException, CORBA::InvalidPolicies)
CORBA::Policy_ptr get_cached_policy (TAO_Cached_Policy_Type type)
 Obtain a single cached policy. More...

TAO_Policy_Current_Implimplementation (void) const
TAO_Policy_Current_Implimplementation (TAO_Policy_Current_Impl &)

Constructor & Destructor Documentation

ACE_INLINE TAO_Policy_Current::TAO_Policy_Current void   
 

Constructor.

Definition at line 63 of file Policy_Manager.i.

00064 {
00065 }


Member Function Documentation

ACE_INLINE CORBA::Policy_ptr TAO_Policy_Current::get_cached_policy TAO_Cached_Policy_Type    type
 

Obtain a single cached policy.

Definition at line 124 of file Policy_Manager.i.

References TAO_Policy_Current_Impl::get_cached_policy, implementation, and TAO_Cached_Policy_Type.

Referenced by TAO_Stub::buffering_constraint, TAO_Stub::connection_timeout, TAO_Stub::relative_roundtrip_timeout, TAO_ORB_Core::stubless_connection_timeout, TAO_ORB_Core::stubless_relative_roundtrip_timeout, and TAO_ORB_Core::stubless_sync_scope.

00125 {
00126   TAO_Policy_Current_Impl &impl = this->implementation ();
00127 
00128   return impl.get_cached_policy (type);
00129 }

ACE_INLINE CORBA::Policy_ptr TAO_Policy_Current::get_policy CORBA::PolicyType policy    ACE_ENV_ARG_DECL_WITH_DEFAULTS
 

Obtain a single policy.

Definition at line 90 of file Policy_Manager.i.

References ACE_ENV_ARG_DECL, ACE_ENV_ARG_PARAMETER, TAO_Policy_Current_Impl::get_policy, and implementation.

Referenced by TAO_Stub::get_client_policy.

00093 {
00094   TAO_Policy_Current_Impl &impl = this->implementation ();
00095 
00096   return impl.get_policy (policy ACE_ENV_ARG_PARAMETER);
00097 }

ACE_INLINE CORBA::PolicyList * TAO_Policy_Current::get_policy_overrides const CORBA::PolicyTypeSeq &ts    ACE_ENV_ARG_DECL_WITH_DEFAULTS throw (CORBA::SystemException) [virtual]
 

Implements CORBA::PolicyManager.

Definition at line 100 of file Policy_Manager.i.

References ACE_ENV_ARG_DECL, ACE_ENV_ARG_PARAMETER, and TAO_Policy_Current_Impl::get_policy_overrides.

00105 {
00106   TAO_Policy_Current_Impl &impl = this->implementation ();
00107 
00108   return impl.get_policy_overrides (ts ACE_ENV_ARG_PARAMETER);
00109 }

TAO_Policy_Current_Impl & TAO_Policy_Current::implementation TAO_Policy_Current_Impl  
 

Definition at line 21 of file Policy_Manager.cpp.

References TAO_TSS_Singleton::instance, and TAO_TSS_Resources::policy_current_.

00022 {
00023   TAO_TSS_Resources *tss =
00024     TAO_TSS_RESOURCES::instance ();
00025 
00026   TAO_Policy_Current_Impl *old = tss->policy_current_;
00027   tss->policy_current_ = &current;
00028   return *old;
00029 }

TAO_Policy_Current_Impl & TAO_Policy_Current::implementation void    const
 

Definition at line 32 of file Policy_Manager.cpp.

References TAO_TSS_Singleton::instance.

Referenced by get_cached_policy, and get_policy.

00033 {
00034   return *TAO_TSS_RESOURCES::instance ()->policy_current_;
00035 }

ACE_INLINE void TAO_Policy_Current::set_policy_overrides const CORBA::PolicyList   policies,
CORBA::SetOverrideType set_add    ACE_ENV_ARG_DECL_WITH_DEFAULTS
throw (CORBA::SystemException, CORBA::InvalidPolicies) [virtual]
 

Implements CORBA::PolicyManager.

Definition at line 112 of file Policy_Manager.i.

References ACE_ENV_ARG_DECL, ACE_ENV_ARG_PARAMETER, and TAO_Policy_Current_Impl::set_policy_overrides.

00117 {
00118   TAO_Policy_Current_Impl &impl = this->implementation ();
00119 
00120   impl.set_policy_overrides (policies, set_add ACE_ENV_ARG_PARAMETER);
00121 }


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 15:34:55 2003 for TAO by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002