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 310 of file Object_Adapter.h.


Constructor & Destructor Documentation

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

Definition at line 1039 of file Object_Adapter.cpp.

01040 {
01041 }


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 1061 of file Object_Adapter.cpp.

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

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

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 1044 of file Object_Adapter.cpp.

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

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

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 1076 of file Object_Adapter.cpp.

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

01079 {
01080   return this->object_adapter_->persistent_poa_name_map_->unbind (folded_name);
01081 }


The documentation for this class was generated from the following files:
Generated on Sun Jan 27 13:27:26 2008 for TAO_PortableServer by doxygen 1.3.6