blob: 76a60fb3f62bf7b3e191029d4e3e05ae91b5bd23 [file] [log] [blame]
#pragma once
#include "interfaces/metric.hpp"
#include "interfaces/sensor_listener.hpp"
class Metric : public interfaces::Metric, public interfaces::SensorListener
{
public:
const std::vector<MetricValue>& getReadings() const override
{
return readings;
}
void sensorUpdated(interfaces::Sensor&, uint64_t) override
{}
void sensorUpdated(interfaces::Sensor&, uint64_t, double value) override
{}
private:
std::vector<MetricValue> readings;
};