/* * © Copyright 2014 – Urheberrechtshinweis * Alle Rechte vorbehalten / All Rights Reserved * * Programmcode ist urheberrechtlich geschuetzt. * Das Urheberrecht liegt, soweit nicht ausdruecklich anders gekennzeichnet, bei Frank Ebner. * Keine Verwendung ohne explizite Genehmigung. * (vgl. § 106 ff UrhG / § 97 UrhG) */ #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