Created
November 13, 2018 22:30
-
-
Save nlharri/7d87d4e258cae6a4529de22102ab4bcd to your computer and use it in GitHub Desktop.
WiFiScannerLinux - wifiap.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string> | |
#include "wifiap.h" | |
WifiAP::WifiAP(std::string name, int rssi) { | |
this->name = name; | |
this->rssi = rssi; | |
} | |
std::string WifiAP::getName() { | |
return this->name; | |
} | |
int WifiAP::getRSSI() { | |
return this->rssi; | |
} | |
void WifiAP::setRSSI(int rssi) { | |
this->rssi = rssi; | |
} | |
void WifiAP::setRatio(double ratio) { | |
this->ratio = ratio; | |
} | |
double WifiAP::getRatio() { | |
return this->ratio; | |
} | |
bool WifiAP::operator<(const WifiAP& ap) { | |
return this->rssi < ap.rssi; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment