00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file PG_Location_Equal_To.h 00006 * 00007 * PG_Location_Equal_To.h,v 1.9 2006/03/14 06:14:34 jtc Exp 00008 * 00009 * @author Ossama Othman <ossama@uci.edu> 00010 */ 00011 //============================================================================= 00012 00013 00014 #ifndef TAO_PG_LOCATION_EQUAL_TO_H 00015 #define TAO_PG_LOCATION_EQUAL_TO_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/PortableGroup/PG_Operators.h" 00026 #include "orbsvcs/PortableGroup/portablegroup_export.h" 00027 #include "orbsvcs/PortableGroupC.h" 00028 00029 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00030 00031 /** 00032 * @class TAO_PG_Location_Equal_To 00033 * 00034 * @brief "Equal_To" function object that determines if two location 00035 * names are the same. 00036 * 00037 * This functor simply does a string comparison of each of the 00038 * elements in the given TAO_PortableGroup::Location name sequences. 00039 */ 00040 class TAO_PortableGroup_Export TAO_PG_Location_Equal_To 00041 { 00042 public: 00043 00044 /// Perform a string comparison on each of the sequence elements in 00045 /// the given locations. 00046 int operator() (const PortableGroup::Location &lhs, 00047 const PortableGroup::Location &rhs) const; 00048 00049 }; 00050 00051 TAO_END_VERSIONED_NAMESPACE_DECL 00052 00053 #if defined (__ACE_INLINE__) 00054 #include "orbsvcs/PortableGroup/PG_Location_Equal_To.inl" 00055 #endif /* __ACE_INLINE__ */ 00056 00057 #include /**/ "ace/post.h" 00058 00059 #endif /* TAO_PG_LOCATION_EQUAL_TO_H */