EPANET-RTX
1.1
real-time extension for the EPANET toolkit
|
A Point Class to store data tuples (date, value, quality, confidence) More...
#include <Point.h>
Public Member Functions | |
Point () | |
quality flag More... | |
Point (time_t time, double value=0., Qual_t qual=good, double confidence=0.) | |
Full Constructor, for explicitly setting all internal data within the point object. | |
Point | operator+ (const Point &point) const |
Point & | operator+= (const Point &point) |
Point | operator* (const double factor) const |
Point & | operator*= (const double factor) |
Point | operator/ (const double factor) const |
const bool | hasQual (Qual_t qual) const |
void | addQualFlag (Qual_t qual) |
Point | inverse () |
Static Public Member Functions | |
static Point | convertPoint (const Point &point, const Units &fromUnits, const Units &toUnits) |
static bool | comparePointTime (const Point &left, const Point &right) |
static Point | linearInterpolate (const Point &p1, const Point &p2, const time_t &t) |
Public Attributes | |
time_t | time |
double | value |
Qual_t | quality |
double | confidence |
bool | isValid |
Friends | |
std::ostream & | operator<< (std::ostream &outputStream, const Point &p) |
A Point Class to store data tuples (date, value, quality, confidence)
The point class keeps track of a piece of measurement data; time, value, and quality.
Point::Point | ( | ) |
quality flag
Empty Constructor, equivalent to Point(0,0,Point::missing,0)