35 lines
844 B
C++
35 lines
844 B
C++
|
#ifndef _OWLPS_POSITIONING_MOBILE_HH_
|
||
|
#define _OWLPS_POSITIONING_MOBILE_HH_
|
||
|
|
||
|
#include "wifidevice.hh"
|
||
|
|
||
|
#include <iostream>
|
||
|
|
||
|
using namespace std ;
|
||
|
|
||
|
#define MOBILE_DEFAULT_ANTENNA_GAIN 2
|
||
|
|
||
|
class Mobile: public WifiDevice
|
||
|
{
|
||
|
public:
|
||
|
Mobile(const string &_ip_addr,
|
||
|
const string &_mac_addr,
|
||
|
const float &_antenna_gain = MOBILE_DEFAULT_ANTENNA_GAIN,
|
||
|
const float &_trx_power = WIFIDEVICE_DEFAULT_TRX_POWER):
|
||
|
WifiDevice(_ip_addr, _mac_addr, _antenna_gain, _trx_power) {}
|
||
|
Mobile(const WifiDevice &wd):
|
||
|
WifiDevice(wd) {}
|
||
|
Mobile(const Mobile &m):
|
||
|
WifiDevice(m) {}
|
||
|
|
||
|
~Mobile() {}
|
||
|
|
||
|
Mobile operator=(const Mobile &m) ;
|
||
|
bool operator==(const Mobile &m) const ;
|
||
|
bool operator!=(const Mobile &m) const ;
|
||
|
|
||
|
friend ostream &operator<<(ostream &os, const Mobile &m) ;
|
||
|
} ;
|
||
|
|
||
|
#endif // _OWLPS_POSITIONING_MOBILE_HH_
|