#include <Regular_POA.h>
Inheritance diagram for TAO_Regular_POA:
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 (void) |
Protected Member Functions | |
virtual void | remove_from_parent_i (void) |
virtual CORBA::Boolean | root (void) const |
virtual char | root_key_type (void) |
Protected Attributes | |
TAO_Root_POA * | parent_ |
Implementation of the PortableServer::POA interface.
Definition at line 39 of file Regular_POA.h.
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 | |||
) |
TAO_Regular_POA::~TAO_Regular_POA | ( | void | ) | [virtual] |
void TAO_Regular_POA::remove_from_parent_i | ( | void | ) | [protected, virtual] |
Reimplemented from TAO_Root_POA.
Definition at line 42 of file Regular_POA.cpp.
References TAO_Root_POA::delete_child(), and parent_.
00043 { 00044 // Remove POA from the parent 00045 if (this->parent_ != 0) 00046 { 00047 int const result = this->parent_->delete_child (this->name_); 00048 if (result != 0) 00049 { 00050 throw ::CORBA::OBJ_ADAPTER (); 00051 } 00052 } 00053 }
CORBA::Boolean TAO_Regular_POA::root | ( | void | ) | const [protected, virtual] |
Reimplemented from TAO_Root_POA.
Definition at line 56 of file Regular_POA.cpp.
References parent_.
00057 { 00058 return (parent_ == 0); 00059 }
char TAO_Regular_POA::root_key_type | ( | void | ) | [protected, virtual] |
Reimplemented from TAO_Root_POA.
Definition at line 62 of file Regular_POA.cpp.
References TAO_Root_POA::non_root_key_char(), and TAO_Root_POA::root_key_type().
00063 { 00064 if (this->parent_ != 0) 00065 { 00066 return TAO_Root_POA::non_root_key_char (); 00067 } 00068 else 00069 { 00070 return TAO_Root_POA::root_key_type (); 00071 } 00072 }
TAO_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE PortableServer::POA_ptr TAO_Regular_POA::the_parent | ( | void | ) |
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 67 of file Regular_POA.h.
Referenced by remove_from_parent_i(), and root().