#include <wipal/wifi/addr_mapping.hh>
Public Member Functions | |
addr_mapping (const std::string &) | |
unsigned | operator[] (const wifi::addr &) |
operator std::ostream & () | |
template<class T> | |
std::ostream & | operator<< (const T &) |
Protected Member Functions | |
void | load (std::istream &) |
Load the mapping from the file at creation when the file exists. Store it at deletion so it could be used later, or loaded in a database using a LOAD DATA INFILE SQL command.
wifi::addr_mapping::addr_mapping | ( | const std::string & | filename | ) | [inline] |
unsigned wifi::addr_mapping::operator[] | ( | const wifi::addr & | a | ) | [inline] |
Retrieve the index of a corresponding IEEE 802.11 address.
When the address exists in the mapping, just return its index. Else, insert the address into the mapping with a new index and return this index.
void wifi::addr_mapping::load | ( | std::istream & | in | ) | [inline, protected] |
tool::datafile::operator std::ostream & | ( | ) | [inline, inherited] |
Retrieve the underlying C++ stream.
std::ostream & tool::datafile::operator<< | ( | const T & | data | ) | [inline, inherited] |
Formatted output.