James Feist | af79dd3 | 2018-09-12 12:54:15 -0700 | [diff] [blame^] | 1 | #pragma once |
| 2 | |
| 3 | #include <Thresholds.hpp> |
| 4 | #include <sdbusplus/asio/object_server.hpp> |
| 5 | |
| 6 | struct 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 | }; |