TAO_Regular_POA Class Reference

Implementation of the PortableServer::POA interface. More...

#include <Regular_POA.h>

Inheritance diagram for TAO_Regular_POA:

Inheritance graph
[legend]
Collaboration diagram for TAO_Regular_POA:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TAO_Regular_POA (const String &name, PortableServer::POAManager_ptr poa_manager, const TAO_POA_Policy_Set &policies, TAO_Root_POA *parent, ACE_Lock &lock, TAO_SYNCH_MUTEX &thread_lock, TAO_ORB_Core &orb_core, TAO_Object_Adapter *object_adapter)
virtual ~TAO_Regular_POA (void)
PortableServer::POA_ptr the_parent () throw (CORBA::SystemException)

Protected Member Functions

virtual void remove_from_parent_i ()
virtual CORBA::Boolean root (void) const
virtual char root_key_type (void)

Protected Attributes

TAO_Root_POAparent_

Detailed Description

Implementation of the PortableServer::POA interface.

Implementation of the PortableServer::POA interface.

Definition at line 37 of file Regular_POA.h.


Constructor & Destructor Documentation

TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_Regular_POA::TAO_Regular_POA const String name,
PortableServer::POAManager_ptr  poa_manager,
const TAO_POA_Policy_Set policies,
TAO_Root_POA parent,
ACE_Lock lock,
TAO_SYNCH_MUTEX thread_lock,
TAO_ORB_Core orb_core,
TAO_Object_Adapter object_adapter
 

Definition at line 14 of file Regular_POA.cpp.

References ACE_ENV_ARG_PARAMETER, PortableServer::POAManager_ptr, and TAO_Root_POA::String.

00023   : TAO_Root_POA (name,
00024                   poa_manager,
00025                   policies,
00026                   parent,
00027                   lock,
00028                   thread_lock,
00029                   orb_core,
00030                   object_adapter
00031                   ACE_ENV_ARG_PARAMETER),
00032      parent_ (parent)
00033 {
00034 }

TAO_Regular_POA::~TAO_Regular_POA void   )  [virtual]
 

Definition at line 36 of file Regular_POA.cpp.

00037 {
00038 }


Member Function Documentation

void TAO_Regular_POA::remove_from_parent_i  )  [protected, virtual]
 

Reimplemented from TAO_Root_POA.

Definition at line 41 of file Regular_POA.cpp.

References ACE_THROW, and TAO_Root_POA::delete_child().

00042 {
00043   // Remove POA from the parent
00044   if (this->parent_ != 0)
00045     {
00046       int result = this->parent_->delete_child (this->name_);
00047       if (result != 0)
00048         {
00049           ACE_THROW (CORBA::OBJ_ADAPTER ());
00050         }
00051     }
00052 }

CORBA::Boolean TAO_Regular_POA::root void   )  const [protected, virtual]
 

Reimplemented from TAO_Root_POA.

Definition at line 55 of file Regular_POA.cpp.

00056 {
00057   return (parent_ == 0);
00058 }

char TAO_Regular_POA::root_key_type void   )  [protected, virtual]
 

Reimplemented from TAO_Root_POA.

Definition at line 61 of file Regular_POA.cpp.

References TAO_Root_POA::non_root_key_char(), and TAO_Root_POA::root_key_type().

00062 {
00063   if (this->parent_ != 0)
00064     {
00065       return TAO_Root_POA::non_root_key_char ();
00066     }
00067   else
00068     {
00069       return TAO_Root_POA::root_key_type ();
00070     }
00071 }

PortableServer::POA_ptr TAO_Regular_POA::the_parent  )  throw (CORBA::SystemException)
 

Reimplemented from TAO_Root_POA.


Member Data Documentation

TAO_Root_POA* TAO_Regular_POA::parent_ [protected]
 

The parent of this POA, be aware that in case this pointer is nill, we are a parent. This can be achieved by deriving from this Regular_POA and pass a nill pointer as parent with the constructor.

Definition at line 66 of file Regular_POA.h.


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 12:46:04 2006 for TAO_PortableServer by doxygen 1.3.6