Public Member Functions | Protected Member Functions | Protected Attributes

TAO_Regular_POA Class Reference

#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 (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_POAparent_

Detailed Description

Implementation of the PortableServer::POA interface.

Definition at line 39 of file Regular_POA.h.


Constructor & Destructor Documentation

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 15 of file Regular_POA.cpp.

  : TAO_Root_POA (name,
                  poa_manager,
                  policies,
                  parent,
                  lock,
                  thread_lock,
                  orb_core,
                  object_adapter
                 ),
     parent_ (parent)
{
}

TAO_Regular_POA::~TAO_Regular_POA ( void   )  [virtual]

Definition at line 37 of file Regular_POA.cpp.

{
}


Member Function Documentation

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.

{
  // Remove POA from the parent
  if (this->parent_ != 0)
    {
      int const result = this->parent_->delete_child (this->name_);
      if (result != 0)
        {
          throw ::CORBA::OBJ_ADAPTER ();
        }
    }
}

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

Reimplemented from TAO_Root_POA.

Definition at line 56 of file Regular_POA.cpp.

{
  return (parent_ == 0);
}

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

Reimplemented from TAO_Root_POA.

Definition at line 62 of file Regular_POA.cpp.

{
  if (this->parent_ != 0)
    {
      return TAO_Root_POA::non_root_key_char ();
    }
  else
    {
      return TAO_Root_POA::root_key_type ();
    }
}

PortableServer::POA_ptr TAO_Regular_POA::the_parent ( void   ) 

Reimplemented from TAO_Root_POA.

Reimplemented in TAO_RT_POA.

Definition at line 10 of file Regular_POA.inl.


Member Data Documentation

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.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines