TAO::PG_Object_Group::MemberInfo Struct Reference

List of all members.

Public Member Functions

 MemberInfo (CORBA::Object_ptr member, const PortableGroup::Location &location)
 Construct an application-supplied member.

 MemberInfo (CORBA::Object_ptr member, const PortableGroup::Location &location, PortableGroup::GenericFactory_ptr factory, PortableGroup::GenericFactory::FactoryCreationId factory_id)
 Construct a infrastructure-created member.

 ~MemberInfo ()
 Destructor.


Public Attributes

CORBA::Object_var member_
 Reference to the member.

PortableGroup::GenericFactory_var factory_
PortableGroup::GenericFactory::FactoryCreationId factory_id_
 FactoryCreationId assigned to the member. Empty if application created.

PortableGroup::Location location_
 Location where this member exists.

CORBA::Boolean is_primary_
 TRUE if this is primary member.


Constructor & Destructor Documentation

TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO::PG_Object_Group::MemberInfo::MemberInfo CORBA::Object_ptr  member,
const PortableGroup::Location location
 

Construct an application-supplied member.

Definition at line 31 of file PG_Object_Group.cpp.

References PortableGroup::Location.

00034   : member_ (CORBA::Object::_duplicate (member))
00035   , factory_(PortableGroup::GenericFactory::_nil ())
00036   , location_ (location)
00037   , is_primary_ (0)
00038 {
00039 }

TAO::PG_Object_Group::MemberInfo::MemberInfo CORBA::Object_ptr  member,
const PortableGroup::Location location,
PortableGroup::GenericFactory_ptr  factory,
PortableGroup::GenericFactory::FactoryCreationId  factory_id
 

Construct a infrastructure-created member.

Definition at line 41 of file PG_Object_Group.cpp.

References PortableGroup::GenericFactory::FactoryCreationId, and PortableGroup::Location.

00046   : member_ (CORBA::Object::_duplicate (member))
00047   , factory_ (PortableGroup::GenericFactory::_duplicate (factory))
00048   , factory_id_ (factory_id)
00049   , location_ (location)
00050   , is_primary_ (0)
00051 {
00052 }

TAO::PG_Object_Group::MemberInfo::~MemberInfo  ) 
 

Destructor.

Definition at line 54 of file PG_Object_Group.cpp.

References CORBA::is_nil().

00055 {
00056   if( ! CORBA::is_nil (this->factory_.in()))
00057     {
00058       this->factory_->delete_object (this->factory_id_);
00059     }
00060 }


Member Data Documentation

PortableGroup::GenericFactory_var TAO::PG_Object_Group::MemberInfo::factory_
 

The factory that was used to create this object nil if application created.

Definition at line 68 of file PG_Object_Group.h.

PortableGroup::GenericFactory::FactoryCreationId TAO::PG_Object_Group::MemberInfo::factory_id_
 

FactoryCreationId assigned to the member. Empty if application created.

Definition at line 71 of file PG_Object_Group.h.

CORBA::Boolean TAO::PG_Object_Group::MemberInfo::is_primary_
 

TRUE if this is primary member.

Definition at line 78 of file PG_Object_Group.h.

Referenced by TAO::PG_Object_Group::distribute_iogr(), and TAO::PG_Object_Group::set_primary_member().

PortableGroup::Location TAO::PG_Object_Group::MemberInfo::location_
 

Location where this member exists.

Definition at line 74 of file PG_Object_Group.h.

Referenced by TAO::PG_Object_Group::distribute_iogr().

CORBA::Object_var TAO::PG_Object_Group::MemberInfo::member_
 

Reference to the member.

Definition at line 64 of file PG_Object_Group.h.

Referenced by TAO::PG_Object_Group::distribute_iogr(), TAO::PG_Object_Group::get_member_reference(), TAO::PG_Object_Group::remove_member(), and TAO::PG_Object_Group::set_primary_member().


The documentation for this struct was generated from the following files:
Generated on Sun Jan 27 16:24:49 2008 for TAO_PortableGroup by doxygen 1.3.6