[Positioner] Add Mobile::last_results
Allow to store the last results for each algorithm in a Mobile.
This commit is contained in:
parent
23d0708ca1
commit
feb5a715fa
|
@ -16,6 +16,7 @@
|
|||
#define _OWLPS_POSITIONING_MOBILE_HH_
|
||||
|
||||
#include "wifidevice.hh"
|
||||
#include "resultlist.hh"
|
||||
|
||||
#include <ostream>
|
||||
|
||||
|
@ -25,6 +26,9 @@
|
|||
/// localised
|
||||
class Mobile: public WifiDevice
|
||||
{
|
||||
protected:
|
||||
ResultList last_results ;
|
||||
|
||||
public:
|
||||
Mobile(const std::string &_ip_addr = "",
|
||||
const std::string &_mac_addr = "",
|
||||
|
@ -36,10 +40,20 @@ public:
|
|||
WifiDevice(wd) {}
|
||||
|
||||
Mobile(const Mobile &m):
|
||||
WifiDevice(m) {}
|
||||
WifiDevice(m), last_results(m.last_results) {}
|
||||
|
||||
~Mobile(void) {}
|
||||
|
||||
/** @name Read accessors */
|
||||
//@{
|
||||
const ResultList& get_last_results(void) const ;
|
||||
//@}
|
||||
|
||||
/** @name Write accessors */
|
||||
//@{
|
||||
void set_last_results(const ResultList &_last_results) ;
|
||||
//@}
|
||||
|
||||
/** @name Operators */
|
||||
//@{
|
||||
Mobile& operator=(const Mobile &m) ;
|
||||
|
@ -53,6 +67,26 @@ public:
|
|||
|
||||
|
||||
|
||||
/* *** Read accessors *** */
|
||||
|
||||
|
||||
inline const ResultList& Mobile::get_last_results() const
|
||||
{
|
||||
return last_results ;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* *** Write accessors *** */
|
||||
|
||||
|
||||
inline void Mobile::set_last_results(const ResultList &_last_results)
|
||||
{
|
||||
last_results = _last_results ;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* *** Operators *** */
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue