60 lines
1.0 KiB
C++
60 lines
1.0 KiB
C++
#ifndef BEACON_H
|
|
#define BEACON_H
|
|
|
|
#include "../MACAddress.h"
|
|
|
|
/**
|
|
* represents a single beacon
|
|
* a beacon is represented by its MAC-Address and
|
|
* may provide a sending power TXP
|
|
*/
|
|
class Beacon {
|
|
|
|
private:
|
|
|
|
/** the AP's MAC-Address */
|
|
MACAddress mac;
|
|
|
|
/** OPTIONAL the beacons sending power */
|
|
float txp;
|
|
|
|
public:
|
|
|
|
/** empty ctor */
|
|
Beacon() {
|
|
;
|
|
}
|
|
|
|
/** ctor with MAC and TXP */
|
|
Beacon(const MACAddress& mac, const float& txp) : mac(mac), txp(txp) {
|
|
;
|
|
}
|
|
|
|
/** ctor with MAC and TXP */
|
|
Beacon(const std::string& mac, const float& txp) : mac(mac), txp(txp) {
|
|
;
|
|
}
|
|
|
|
/** ctor with MAC and without TXP */
|
|
Beacon(const MACAddress& mac) : mac(mac), txp() {
|
|
;
|
|
}
|
|
|
|
/** ctor with MAC and without TXP */
|
|
Beacon(const std::string& mac) : mac(mac), txp() {
|
|
;
|
|
}
|
|
|
|
public:
|
|
|
|
/** get the AP's MAC address */
|
|
inline const MACAddress& getMAC() const {return mac;}
|
|
|
|
/** OPTIONAL: get the AP's ssid (if any) */
|
|
inline const float& getTXP() const {return txp;}
|
|
|
|
|
|
};
|
|
|
|
#endif // BEACON_H
|