blob: 2f746da0b0fea26685ea25576469cab3b39f81cf [file] [log] [blame]
James Feistaf79dd32018-09-12 12:54:15 -07001#pragma once
2
3#include <Thresholds.hpp>
4#include <sdbusplus/asio/object_server.hpp>
5
6struct Sensor
7{
8 virtual ~Sensor() = default;
9 std::vector<thresholds::Threshold> thresholds;
10 std::shared_ptr<sdbusplus::asio::dbus_interface> sensorInterface;
11 std::shared_ptr<sdbusplus::asio::dbus_interface> thresholdInterfaceWarning;
12 std::shared_ptr<sdbusplus::asio::dbus_interface> thresholdInterfaceCritical;
13 double value = std::numeric_limits<double>::quiet_NaN();
14};