TAO_CosNotification 4.0.0
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
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]

Public Member Functions

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

Protected Member Functions

virtual void set_policy (PortableServer::POA_ptr parent_poa, CORBA::PolicyList &policy_list)
 Set default POA policies.
 
virtual void set_persistent_policy (PortableServer::POA_ptr parent_poa, CORBA::PolicyList &policy_list)
 Set persistent POA policies.
 
void create_i (PortableServer::POA_ptr parent_poa, const char *poa_name, CORBA::PolicyList &policy_list)
 Apply the polices and create child POA.
 
PortableServer::ObjectIdlong_to_ObjectId (CORBA::Long id) const
 Convert id to ObjectID.
 

Protected Attributes

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

Additional Inherited Members

- Private Member Functions inherited from ACE_Copy_Disabled
 ACE_Copy_Disabled ()
 

Detailed Description

POA Abstraction.

Constructor & Destructor Documentation

◆ TAO_Notify_POA_Helper()

TAO_Notify_POA_Helper::TAO_Notify_POA_Helper ( )

Default Constructor.

◆ ~TAO_Notify_POA_Helper()

TAO_Notify_POA_Helper::~TAO_Notify_POA_Helper ( )
virtual

Destructor.

Member Function Documentation

◆ activate()

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

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

◆ activate_with_id()

CORBA::Object_ptr TAO_Notify_POA_Helper::activate_with_id ( PortableServer::Servant servant,
CORBA::Long id )

Activate Object, using existing ID.

◆ create_i()

void TAO_Notify_POA_Helper::create_i ( PortableServer::POA_ptr parent_poa,
const char * poa_name,
CORBA::PolicyList & policy_list )
protected

Apply the polices and create child POA.

◆ deactivate()

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

Deactivate Object with ID.

◆ destroy()

void TAO_Notify_POA_Helper::destroy ( )

Destroy underlying POA.

◆ get_unique_id()

ACE_CString TAO_Notify_POA_Helper::get_unique_id ( )

Generate a unique id for each POA created.

Factory for generating unique ids for the POAs.

◆ id_to_reference()

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

Convert ID to reference.

◆ init() [1/2]

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

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

◆ init() [2/2]

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

Create a new PortableServer::POA.

◆ init_persistent()

void TAO_Notify_POA_Helper::init_persistent ( PortableServer::POA_ptr parent_poa,
const char * poa_name )

Create a new persistent PortableServer::POA.

◆ long_to_ObjectId()

PortableServer::ObjectId * TAO_Notify_POA_Helper::long_to_ObjectId ( CORBA::Long id) const
protected

Convert id to ObjectID.

◆ poa()

PortableServer::POA_ptr TAO_Notify_POA_Helper::poa ( )

Get underlying POA.

◆ reference_to_servant()

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

Convert reference to pointer to servant.

◆ servant_to_reference()

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

◆ set_persistent_policy()

void TAO_Notify_POA_Helper::set_persistent_policy ( PortableServer::POA_ptr parent_poa,
CORBA::PolicyList & policy_list )
protectedvirtual

Set persistent POA policies.

◆ set_policy()

void TAO_Notify_POA_Helper::set_policy ( PortableServer::POA_ptr parent_poa,
CORBA::PolicyList & policy_list )
protectedvirtual

Set default POA policies.

Member Data Documentation

◆ id_factory_

TAO_Notify_ID_Factory TAO_Notify_POA_Helper::id_factory_
protected

ID Factory for objects.

◆ poa_

PortableServer::POA_var TAO_Notify_POA_Helper::poa_
protected

POA.


The documentation for this class was generated from the following files: