diff options
Diffstat (limited to 'sensor_base.hpp')
-rw-r--r-- | sensor_base.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sensor_base.hpp b/sensor_base.hpp index 92f53a7..2dc2b8d 100644 --- a/sensor_base.hpp +++ b/sensor_base.hpp @@ -19,9 +19,19 @@ class Sensor Sensor& operator=(Sensor&&) = delete; virtual ~Sensor() = default; + Sensor(const std::string& id, + FanEnclosure& fanEnc) : + id(id), + fanEnc(fanEnc) + { + //Nothing to do here + } + virtual bool isPresent() = 0; protected: + const std::string id; + FanEnclosure& fanEnc; }; |