2012-02-06 16:44:09 +01:00
|
|
|
/*
|
|
|
|
* This file is part of the Owl Positioning System (OwlPS).
|
|
|
|
* OwlPS is a project of the University of Franche-Comté
|
|
|
|
* (Université de Franche-Comté), France.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2009-12-11 17:56:31 +01:00
|
|
|
#include "mobile.hh"
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-01-16 12:23:07 +01:00
|
|
|
/* *** Operators *** */
|
2009-12-11 17:56:31 +01:00
|
|
|
|
|
|
|
|
2011-07-30 20:38:42 +02:00
|
|
|
Mobile& Mobile::operator=(const Mobile &m)
|
2009-12-11 17:56:31 +01:00
|
|
|
{
|
|
|
|
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) ;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-01-04 17:10:42 +01:00
|
|
|
std::ostream &operator<<(std::ostream &os, const Mobile &m)
|
2009-12-11 17:56:31 +01:00
|
|
|
{
|
|
|
|
os << (WifiDevice) m ;
|
|
|
|
|
|
|
|
return os ;
|
|
|
|
}
|