[Positioning] Add Stock::get_aps()

This commit is contained in:
Matteo Cypriani 2011-07-21 21:44:28 +02:00
parent d1b575c95e
commit 6c48bc7e29
1 changed files with 10 additions and 0 deletions

View File

@ -91,6 +91,9 @@ public:
//@{
/// Returns the number of access points
static unsigned int nb_aps(void) ;
/// Returns a reference to the AP list
static
std::tr1::unordered_map<std::string, AccessPoint>& get_aps(void) ;
/// Verify the existence of an AP
static bool ap_exists(const std::string &mac) ;
/// Reads the AccessPoint corresponding to a given MAC address
@ -213,6 +216,13 @@ inline unsigned int Stock::nb_aps()
}
inline
std::tr1::unordered_map<std::string, AccessPoint>& Stock::get_aps()
{
return aps ;
}
/**
* If the AccessPoint corresponding to \em mac does not exist, it is
* created.