TAO_Notify_POA_Helper Class Reference

POA Abstraction. More...

#include <POA_Helper.h>

Inheritance diagram for TAO_Notify_POA_Helper:

Inheritance graph
[legend]
Collaboration diagram for TAO_Notify_POA_Helper:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TAO_Notify_POA_Helper (void)
 Default Constructor.
void init (PortableServer::POA_ptr parent_poa, const char *poa_name ACE_ENV_ARG_DECL)
 Create a new PortableServer::POA.
void init (PortableServer::POA_ptr parent_poa ACE_ENV_ARG_DECL)
 Create a new PortableServer::POA. The name is chosen at random.
virtual ~TAO_Notify_POA_Helper ()
 Destructor.
PortableServer::POA_ptr poa (void)
 Get underlying POA.
void destroy (ACE_ENV_SINGLE_ARG_DECL)
 Destroy underlying POA.
CORBA::Object_ptr activate (PortableServer::Servant servant, CORBA::Long &id ACE_ENV_ARG_DECL)
 Activate Object, the POA will assign an ID and return its value.
CORBA::Object_ptr activate_with_id (PortableServer::Servant servant, CORBA::Long id ACE_ENV_ARG_DECL)
 Activate Object, using existing ID.
void deactivate (CORBA::Long id ACE_ENV_ARG_DECL) const
 Deactivate Object with ID.
CORBA::Object_ptr id_to_reference (CORBA::Long id ACE_ENV_ARG_DECL) const
 Convert ID to reference.
PortableServer::ServantBasereference_to_servant (CORBA::Object_ptr ptr ACE_ENV_ARG_DECL) const
 Convert reference to pointer to servant.
CORBA::Object_ptr servant_to_reference (PortableServer::ServantBase *servant ACE_ENV_ARG_DECL) const

Protected Member Functions

virtual void set_policy (PortableServer::POA_ptr parent_poa, CORBA::PolicyList &policy_list ACE_ENV_ARG_DECL)
 Set default POA policies.
void create_i (PortableServer::POA_ptr parent_poa, const char *poa_name, CORBA::PolicyList &policy_list ACE_ENV_ARG_DECL)
 Apply the polices and create child POA.
ACE_CString get_unique_id (void)
 Generate a unique id for each POA created.
PortableServer::ObjectIdlong_to_ObjectId (CORBA::Long id ACE_ENV_ARG_DECL) const
 Convert id to ObjectID.

Protected Attributes

PortableServer::POA_var poa_
 POA.
TAO_Notify_ID_Factory id_factory_
 ID Factory for objects.

Detailed Description

POA Abstraction.


Constructor & Destructor Documentation

TAO_Notify_POA_Helper::TAO_Notify_POA_Helper void   ) 
 

Default Constructor.

TAO_Notify_POA_Helper::~TAO_Notify_POA_Helper  )  [virtual]
 

Destructor.


Member Function Documentation

CORBA::Object_ptr TAO_Notify_POA_Helper::activate PortableServer::Servant  servant,
CORBA::Long &id  ACE_ENV_ARG_DECL
 

Activate Object, the POA will assign an ID and return its value.

CORBA::Object_ptr TAO_Notify_POA_Helper::activate_with_id PortableServer::Servant  servant,
CORBA::Long id  ACE_ENV_ARG_DECL
 

Activate Object, using existing ID.

void TAO_Notify_POA_Helper::create_i PortableServer::POA_ptr  parent_poa,
const char *  poa_name,
CORBA::PolicyList &policy_list  ACE_ENV_ARG_DECL
[protected]
 

Apply the polices and create child POA.

void TAO_Notify_POA_Helper::deactivate CORBA::Long id  ACE_ENV_ARG_DECL  )  const
 

Deactivate Object with ID.

void TAO_Notify_POA_Helper::destroy ACE_ENV_SINGLE_ARG_DECL   ) 
 

Destroy underlying POA.

ACE_CString TAO_Notify_POA_Helper::get_unique_id void   )  [protected]
 

Generate a unique id for each POA created.

Factory for generating unique ids for the POAs.

CORBA::Object_ptr TAO_Notify_POA_Helper::id_to_reference CORBA::Long id  ACE_ENV_ARG_DECL  )  const
 

Convert ID to reference.

void TAO_Notify_POA_Helper::init PortableServer::POA_ptr parent_poa  ACE_ENV_ARG_DECL  ) 
 

Create a new PortableServer::POA. The name is chosen at random.

Reimplemented in TAO_Notify_RT_POA_Helper.

void TAO_Notify_POA_Helper::init PortableServer::POA_ptr  parent_poa,
const char *poa_name  ACE_ENV_ARG_DECL
 

Create a new PortableServer::POA.

PortableServer::ObjectId * TAO_Notify_POA_Helper::long_to_ObjectId CORBA::Long id  ACE_ENV_ARG_DECL  )  const [protected]
 

Convert id to ObjectID.

PortableServer::POA_ptr TAO_Notify_POA_Helper::poa void   ) 
 

Get underlying POA.

PortableServer::ServantBase * TAO_Notify_POA_Helper::reference_to_servant CORBA::Object_ptr ptr  ACE_ENV_ARG_DECL  )  const
 

Convert reference to pointer to servant.

CORBA::Object_ptr TAO_Notify_POA_Helper::servant_to_reference PortableServer::ServantBase *servant  ACE_ENV_ARG_DECL  )  const
 

void TAO_Notify_POA_Helper::set_policy PortableServer::POA_ptr  parent_poa,
CORBA::PolicyList &policy_list  ACE_ENV_ARG_DECL
[protected, virtual]
 

Set default POA policies.


Member Data Documentation

TAO_Notify_ID_Factory TAO_Notify_POA_Helper::id_factory_ [protected]
 

ID Factory for objects.

PortableServer::POA_var TAO_Notify_POA_Helper::poa_ [protected]
 

POA.


The documentation for this class was generated from the following files:
Generated on Wed Nov 23 16:23:20 2005 for TAO_CosNotification by  doxygen 1.4.5