38 lines
1022 B
C++
38 lines
1022 B
C++
#ifndef _OWLPS_POSITIONING_REFERENCEPOINT_HH_
|
|
#define _OWLPS_POSITIONING_REFERENCEPOINT_HH_
|
|
|
|
#include "point3d.hh"
|
|
#include "measurement.hh"
|
|
|
|
#include <iostream>
|
|
#include <vector>
|
|
|
|
using namespace std ;
|
|
|
|
class ReferencePoint: public Point3D
|
|
{
|
|
protected:
|
|
vector<Measurement> measurements ;
|
|
|
|
public:
|
|
ReferencePoint(const float &_x = 0, const float &_y = 0, const float &_z = 0
|
|
): Point3D(_x, _y, _z) {}
|
|
ReferencePoint(const Point3D &p): Point3D(p) {}
|
|
ReferencePoint(const ReferencePoint &rp): Point3D(rp),
|
|
measurements(rp.measurements) {}
|
|
|
|
~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_
|