diff options
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Group.h')
-rw-r--r-- | TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Group.h | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Group.h b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Group.h index 36675657c15..7ea7453869e 100644 --- a/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Group.h +++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PG_Object_Group.h @@ -66,6 +66,11 @@ namespace TAO /// Location where this member exists PortableGroup::Location location_; + + /// TRUE if this is primary member + CORBA::Boolean is_primary_; + + /////////////// // Methods @@ -150,10 +155,21 @@ namespace TAO */ void group_specific_factories (PortableGroup::FactoryInfos & result) const; - // Note: primary location is a concept from FT CORBA. - // It doesn't hurt other PortableGroup-based services to - // have these two metods and the underlying member. - void set_primary_location (PortableGroup::Location & primary_location_); + /** + * Set the member at "location" to be primary. + * + * Note: primary location is a concept from FT CORBA. + * It doesn't hurt other PortableGroup-based services to + * have these two methods and the underlying members. + */ + void set_primary_location ( + const PortableGroup::Location & location + ACE_ENV_ARG_DECL) + ACE_THROW_SPEC ((PortableGroup::MemberNotFound)); + + /** + * get location of primary member + */ const PortableGroup::Location & primary_location() const; /** |