00001 // -*- C++ -*- 00002 // 00003 // $Id: FILE_Addr.inl 69051 2005-10-28 16:14:56Z ossama $ 00004 00005 00006 #include "ace/SString.h" 00007 00008 ACE_BEGIN_VERSIONED_NAMESPACE_DECL 00009 00010 // Compare two addresses for equality. 00011 00012 ACE_INLINE bool 00013 ACE_FILE_Addr::operator == (const ACE_FILE_Addr &sap) const 00014 { 00015 return ACE_OS::strcmp (this->filename_, sap.filename_) == 0; 00016 } 00017 00018 // Compare two addresses for inequality. 00019 00020 ACE_INLINE bool 00021 ACE_FILE_Addr::operator != (const ACE_FILE_Addr &sap) const 00022 { 00023 return !((*this) == sap); // This is lazy, of course... ;-) 00024 } 00025 00026 // Return the path name used for the rendezvous point. 00027 00028 ACE_INLINE const ACE_TCHAR * 00029 ACE_FILE_Addr::get_path_name (void) const 00030 { 00031 return this->filename_; 00032 } 00033 00034 ACE_END_VERSIONED_NAMESPACE_DECL