00001 // -*- C++ -*- 00002 00003 //======================================================================= 00004 /** 00005 * @file PG_MemberInfo.h 00006 * 00007 * PG_MemberInfo.h,v 1.9 2005/11/14 22:03:50 ossama Exp 00008 * 00009 * @author Ossama Othman <ossama@uci.edu> 00010 */ 00011 //======================================================================= 00012 00013 00014 #ifndef TAO_PG_MEMBER_INFO_H 00015 #define TAO_PG_MEMBER_INFO_H 00016 00017 #include /**/ "ace/pre.h" 00018 00019 #include "ace/config-all.h" 00020 00021 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00022 # pragma once 00023 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00024 00025 #include "orbsvcs/PortableGroupC.h" 00026 #include "ace/Unbounded_Set.h" 00027 00028 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00029 00030 /** 00031 * @class TAO_PG_MemberInfo 00032 * 00033 * @brief Structure that contains all member-specific information. 00034 * 00035 * Structure that contains all member-specific information. 00036 */ 00037 struct TAO_PG_MemberInfo 00038 { 00039 00040 /// Reference to the member. 00041 CORBA::Object_var member; 00042 00043 /// The location at which the member resides. 00044 PortableGroup::Location location; 00045 00046 /// Equality operator. 00047 /** 00048 * For the purposes of the member info set, only the location is 00049 * important. In particular, if a member already resides at the 00050 * given location, this equality operator will return true. 00051 */ 00052 bool operator== (const TAO_PG_MemberInfo & rhs); 00053 00054 }; 00055 00056 typedef ACE_Unbounded_Set<TAO_PG_MemberInfo> TAO_PG_MemberInfo_Set; 00057 00058 TAO_END_VERSIONED_NAMESPACE_DECL 00059 00060 #include /**/ "ace/post.h" 00061 00062 #endif /* TAO_PG_MEMBER_INFO_H */