libusermetrics
|
An update to a Metric. More...
#include <libusermetricsinput/MetricUpdate.h>
Public Member Functions | |
MetricUpdate (QObject *parent=0) | |
This constructor cannot be used - the class is pure-virtual. | |
virtual | ~MetricUpdate () |
Destructor. | |
virtual void | addData (double data)=0 |
Add data to a UserMetricsInputMetricUpdate. | |
virtual void | addNull ()=0 |
Add unknown data to an update. | |
An update to a Metric.
This is a short-lived class representing an update for a particular use to a Metric.
|
explicit |
This constructor cannot be used - the class is pure-virtual.
|
virtual |
Destructor.
|
pure virtual |
Add data to a UserMetricsInputMetricUpdate.
data | The double-valued data to add |
Each call to this method appends a new day's data to the update. So the first call adds data for today, the second call adds data for yesterday, and so on.
|
pure virtual |
Add unknown data to an update.
If data is not known for a particular day, then null can be added.