1 #include "tao/PortableServer/Regular_POA.h"
3 #if !defined (__ACE_INLINE__)
4 # include "tao/PortableServer/Regular_POA.inl"
5 #endif /* ! __ACE_INLINE__ */
7 #if !defined (CORBA_E_MICRO)
9 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
11 TAO_Regular_POA::TAO_Regular_POA (const TAO_Root_POA::String
&name
,
12 PortableServer::POAManager_ptr poa_manager
,
13 const TAO_POA_Policy_Set
&policies
,
16 TAO_SYNCH_MUTEX
&thread_lock
,
17 TAO_ORB_Core
&orb_core
,
18 TAO_Object_Adapter
*object_adapter
)
32 TAO_Regular_POA::remove_from_parent_i ()
34 // Remove POA from the parent
35 if (this->parent_
!= 0)
37 int const result
= this->parent_
->delete_child (this->name_
);
40 throw ::CORBA::OBJ_ADAPTER ();
46 TAO_Regular_POA::root () const
48 return (parent_
== 0);
52 TAO_Regular_POA::root_key_type ()
54 if (this->parent_
!= 0)
56 return TAO_Root_POA::non_root_key_char ();
60 return TAO_Root_POA::root_key_type ();
64 TAO_END_VERSIONED_NAMESPACE_DECL