2009-12-07 16:03:53 +01:00
|
|
|
#ifndef _OWLPS_POSITIONING_REFERENCEPOINT_HH_
|
|
|
|
#define _OWLPS_POSITIONING_REFERENCEPOINT_HH_
|
|
|
|
|
|
|
|
#include "point3d.hh"
|
|
|
|
#include "measurement.hh"
|
2008-04-11 10:11:29 +02:00
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
#include <vector>
|
Incorporation de la dernière version de Julien
Extrait de son courriel :
« Par rapport à la précédente j'ai surtout corrigé des bugs. »
Note : la version du listener portable sur Fonera, envoyée en même temps
par Julien, viendra plus tard (le temps que je l'incorpore).
Détail des changements après analyse du code :
aggregator : correction de bogues.
positioning :
* Ajout d'un fichier de config format boost (cfg/config.cfg).
* Makefile : implantation des cibles "install" et "uninstall" ; la cible
"astyle" devient "style".
* accesspoint.{hh,cc}, area.cc, measurement.hh, point.{hh,cc},
referencepoint.{hh,cc} : cosmétique.
* owlps-positioning.c : correction de la lecture du fichier de config
(ajout d'une option permettant de spécifier un fichier alternatif).
* server.cc : essentiellement correction des requêtes.
* libowlps-positioning.{hh,cc} : passage de "unsigned long long" à
"uint64_t" comme type de retour de timeval_to_ms().
writeInDb :
* Ajout de la gestion d'un fichier de config.
* Ajout de deux scripts pour la BDD.
git-svn-id: https://pif.pu-pm.univ-fcomte.fr/svn/loc@96 785a6c6c-259e-4ff1-8b91-dc31627914f0
2009-07-01 15:39:58 +02:00
|
|
|
|
2009-12-07 16:03:53 +01:00
|
|
|
using namespace std ;
|
2008-04-11 10:11:29 +02:00
|
|
|
|
2009-12-07 16:03:53 +01:00
|
|
|
class ReferencePoint: public Point3D
|
2010-05-21 10:35:15 +02:00
|
|
|
{
|
|
|
|
protected:
|
2009-12-07 16:03:53 +01:00
|
|
|
vector<Measurement> measurements ;
|
2010-05-21 10:35:15 +02:00
|
|
|
|
|
|
|
public:
|
2009-12-11 13:52:21 +01:00
|
|
|
ReferencePoint(const float &_x = 0, const float &_y = 0, const float &_z = 0):
|
|
|
|
Point3D(_x, _y, _z) {}
|
2009-12-07 16:03:53 +01:00
|
|
|
ReferencePoint(const Point3D &p): Point3D(p) {}
|
2009-12-11 13:52:21 +01:00
|
|
|
ReferencePoint(const ReferencePoint &rp):
|
|
|
|
Point3D(rp), measurements(rp.measurements) {}
|
2009-12-07 16:03:53 +01:00
|
|
|
|
|
|
|
~ReferencePoint() ;
|
|
|
|
|
|
|
|
vector<Measurement> get_measurements() const ;
|
|
|
|
|
|
|
|
// float get_ss_square_distance(const vector<Measurement> &m) const ;
|
|
|
|
// void add_measurement(const string &mac_a, const int &value) ;
|
|
|
|
// bool get_power_for_ap(const string &ap_mac, float *p) const ;
|
|
|
|
|
|
|
|
ReferencePoint operator=(const ReferencePoint &rp) ;
|
|
|
|
|
|
|
|
friend ostream &operator<<(ostream &os, ReferencePoint &rp) ;
|
|
|
|
} ;
|
|
|
|
|
|
|
|
#endif // _OWLPS_POSITIONING_REFERENCEPOINT_HH_
|