TAO_PortableGroup 4.0.0
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
TAO::PG_Object_Group_Manipulator Class Reference

PortableGroup::ObjectGroupManager implementation. More...

#include <PG_Object_Group_Manipulator.h>

Collaboration diagram for TAO::PG_Object_Group_Manipulator:
Collaboration graph
[legend]

Public Member Functions

 PG_Object_Group_Manipulator ()
 Constructor.
 
 ~PG_Object_Group_Manipulator ()=default
 Destructor.
 
void init (CORBA::ORB_ptr orb, PortableServer::POA_ptr poa)
 
PortableGroup::ObjectGroup_ptr create_object_group (const char *type_id, const char *domain_id, PortableGroup::ObjectGroupId &group_id)
 
PortableGroup::ObjectGroup_ptr create_object_group_using_id (const char *type_id, const char *domain_id, const PortableGroup::ObjectGroupId &group_id)
 
PortableGroup::ObjectGroup_ptr remove_profiles (PortableGroup::ObjectGroup_ptr group, PortableGroup::ObjectGroup_ptr profile) const
 
PortableGroup::ObjectGroup_ptr merge_iors (TAO_IOP::TAO_IOR_Manipulation::IORList &iors) const
 
int set_primary (TAO_IOP::TAO_IOR_Property *prop, PortableGroup::ObjectGroup_ptr reference, CORBA::Object_ptr new_primary) const
 
void dump_membership (const char *label, PortableGroup::ObjectGroup_ptr member) const
 

Private Member Functions

void allocate_ogid (PortableGroup::ObjectGroupId &ogid)
 
PortableServer::ObjectIdconvert_ogid_to_oid (PortableGroup::ObjectGroupId ogid) const
 

Private Attributes

CORBA::ORB_var orb_
 The orb.
 
PortableServer::POA_var poa_
 Reference to the POA that created the object group references.
 
TAO_IOP::TAO_IOR_Manipulation_var iorm_
 The ORBs IORManipulation object.
 
TAO_SYNCH_MUTEX lock_ogid_
 Lock used to synchronize access to next_ogid_.
 
PortableGroup::ObjectGroupId next_ogid_
 Next ogid to be allocated.
 

Detailed Description

PortableGroup::ObjectGroupManager implementation.

The ObjectGroupManager provides the interface necessary to facilitate application-controlled object group membership.

Constructor & Destructor Documentation

◆ PG_Object_Group_Manipulator()

TAO::PG_Object_Group_Manipulator::PG_Object_Group_Manipulator ( )

Constructor.

◆ ~PG_Object_Group_Manipulator()

TAO::PG_Object_Group_Manipulator::~PG_Object_Group_Manipulator ( )
default

Destructor.

Member Function Documentation

◆ allocate_ogid()

void TAO::PG_Object_Group_Manipulator::allocate_ogid ( PortableGroup::ObjectGroupId & ogid)
private

Allocate an ogid for a new object group

◆ convert_ogid_to_oid()

PortableServer::ObjectId * TAO::PG_Object_Group_Manipulator::convert_ogid_to_oid ( PortableGroup::ObjectGroupId ogid) const
private

convert numeric OGID to Sequence<Octet> oid

◆ create_object_group()

PortableGroup::ObjectGroup_ptr TAO::PG_Object_Group_Manipulator::create_object_group ( const char * type_id,
const char * domain_id,
PortableGroup::ObjectGroupId & group_id )

Create an empty object group.

◆ create_object_group_using_id()

PortableGroup::ObjectGroup_ptr TAO::PG_Object_Group_Manipulator::create_object_group_using_id ( const char * type_id,
const char * domain_id,
const PortableGroup::ObjectGroupId & group_id )

Create an empty object group using a specific ID. Note that this should not also be used with create_object_group () as the next object group ID to use will not necessarily be unique.

◆ dump_membership()

void TAO::PG_Object_Group_Manipulator::dump_membership ( const char * label,
PortableGroup::ObjectGroup_ptr member ) const

◆ init()

void TAO::PG_Object_Group_Manipulator::init ( CORBA::ORB_ptr orb,
PortableServer::POA_ptr poa )

Initializes the group creator.

◆ merge_iors()

PortableGroup::ObjectGroup_ptr TAO::PG_Object_Group_Manipulator::merge_iors ( TAO_IOP::TAO_IOR_Manipulation::IORList & iors) const

◆ remove_profiles()

PortableGroup::ObjectGroup_ptr TAO::PG_Object_Group_Manipulator::remove_profiles ( PortableGroup::ObjectGroup_ptr group,
PortableGroup::ObjectGroup_ptr profile ) const

◆ set_primary()

int TAO::PG_Object_Group_Manipulator::set_primary ( TAO_IOP::TAO_IOR_Property * prop,
PortableGroup::ObjectGroup_ptr reference,
CORBA::Object_ptr new_primary ) const

Member Data Documentation

◆ iorm_

TAO_IOP::TAO_IOR_Manipulation_var TAO::PG_Object_Group_Manipulator::iorm_
private

The ORBs IORManipulation object.

◆ lock_ogid_

TAO_SYNCH_MUTEX TAO::PG_Object_Group_Manipulator::lock_ogid_
private

Lock used to synchronize access to next_ogid_.

◆ next_ogid_

PortableGroup::ObjectGroupId TAO::PG_Object_Group_Manipulator::next_ogid_
private

Next ogid to be allocated.

◆ orb_

CORBA::ORB_var TAO::PG_Object_Group_Manipulator::orb_
private

The orb.

◆ poa_

PortableServer::POA_var TAO::PG_Object_Group_Manipulator::poa_
private

Reference to the POA that created the object group references.


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