#ifndef _REFERENCEPOINT_HH_ #define _REFERENCEPOINT_HH_ #include #include #include "point.hh" #include "measurement.hh" using namespace std; class ReferencePoint { protected: Point coordinates; vector measurement_list; public: ReferencePoint(float x = 0, float y = 0, float z = 0) { coordinates.setX(x); coordinates.setY(y); coordinates.setZ(z); }; ReferencePoint(const ReferencePoint &rp) { coordinates = rp.coordinates; measurement_list = rp.measurement_list; }; ReferencePoint(Point c) { coordinates = c; }; ~ReferencePoint() { measurement_list.clear(); }; float getSsSquareDistance(vector m)const; Point getCoordinates()const { return coordinates; }; void addMeasurement(string mac_a, int value); void setCoordinates(Point p) { coordinates = p; }; ReferencePoint operator=(const ReferencePoint &rp); friend ostream &operator<<(ostream &os, ReferencePoint &rp); vector getMeasurementList()const { return measurement_list; }; bool getPowerForAp(string ap_mac, float * p)const; }; #endif