TAO_Object_Adapter::No_Hint_Strategy Class Reference

This class doesn't use any hints for POA active hint strategy. More...

#include <Object_Adapter.h>

Inheritance diagram for TAO_Object_Adapter::No_Hint_Strategy:

Inheritance graph
[legend]
Collaboration diagram for TAO_Object_Adapter::No_Hint_Strategy:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual ~No_Hint_Strategy (void)
virtual int find_persistent_poa (const poa_name &system_name, TAO_Root_POA *&poa)
virtual int bind_persistent_poa (const poa_name &folded_name, TAO_Root_POA *poa, poa_name_out system_name)
virtual int unbind_persistent_poa (const poa_name &folded_name, const poa_name &system_name)

Detailed Description

This class doesn't use any hints for POA active hint strategy.

This class will simply use the POA names as is. And since no hint is added, the IORs will be smaller.

Definition at line 291 of file Object_Adapter.h.


Constructor & Destructor Documentation

TAO_Object_Adapter::No_Hint_Strategy::~No_Hint_Strategy ( void   )  [virtual]

Definition at line 1041 of file Object_Adapter.cpp.

01042 {
01043 }


Member Function Documentation

int TAO_Object_Adapter::No_Hint_Strategy::bind_persistent_poa ( const poa_name folded_name,
TAO_Root_POA poa,
poa_name_out  system_name 
) [virtual]

Implements TAO_Object_Adapter::Hint_Strategy.

Definition at line 1063 of file Object_Adapter.cpp.

References ACE_NEW_RETURN, ACE_Map< KEY, VALUE >::bind(), TAO_Object_Adapter::Hint_Strategy::object_adapter_, and TAO_Object_Adapter::persistent_poa_name_map_.

01067 {
01068   int result =
01069     this->object_adapter_->persistent_poa_name_map_->bind (folded_name, poa);
01070   if (result == 0)
01071     ACE_NEW_RETURN (system_name,
01072                     poa_name (folded_name),
01073                     -1);
01074   return result;
01075 }

int TAO_Object_Adapter::No_Hint_Strategy::find_persistent_poa ( const poa_name system_name,
TAO_Root_POA *&  poa 
) [virtual]

Implements TAO_Object_Adapter::Hint_Strategy.

Definition at line 1046 of file Object_Adapter.cpp.

References TAO_Object_Adapter::activate_poa(), ACE_Map< KEY, VALUE >::find(), TAO_Object_Adapter::Hint_Strategy::object_adapter_, and TAO_Object_Adapter::persistent_poa_name_map_.

01049 {
01050   int result =
01051     this->object_adapter_->persistent_poa_name_map_->find (system_name,
01052                                                            poa);
01053   if (result != 0)
01054     {
01055       result =
01056         this->object_adapter_->activate_poa (system_name, poa);
01057     }
01058 
01059   return result;
01060 }

int TAO_Object_Adapter::No_Hint_Strategy::unbind_persistent_poa ( const poa_name folded_name,
const poa_name system_name 
) [virtual]

Implements TAO_Object_Adapter::Hint_Strategy.

Definition at line 1078 of file Object_Adapter.cpp.

References TAO_Object_Adapter::Hint_Strategy::object_adapter_, TAO_Object_Adapter::persistent_poa_name_map_, and ACE_Map< KEY, VALUE >::unbind().

01081 {
01082   return this->object_adapter_->persistent_poa_name_map_->unbind (folded_name);
01083 }


The documentation for this class was generated from the following files:
Generated on Tue Feb 2 17:41:31 2010 for TAO_PortableServer by  doxygen 1.4.7