owlps/owlps-positioning/mobile.cc

42 lines
497 B
C++
Raw Normal View History

#include "mobile.hh"
/*** Opérateurs ***/
Mobile Mobile::operator=(const Mobile &m)
{
if (this == &m)
return *this ;
this->WifiDevice::operator=(m) ;
return *this ;
}
bool Mobile::operator==(const Mobile &m) const
{
if (this == &m)
return true ;
return
this->WifiDevice::operator==(m) ;
}
bool Mobile::operator!=(const Mobile &m) const
{
return !(*this == m) ;
}
ostream &operator<<(ostream &os, const Mobile &m)
{
os << (WifiDevice) m ;
return os ;
}