Matthew Barth | 293477d | 2017-02-17 15:39:36 -0600 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | |
| 4 | namespace phosphor |
| 5 | { |
| 6 | namespace fan |
| 7 | { |
| 8 | namespace presence |
| 9 | { |
| 10 | |
| 11 | class FanEnclosure; |
| 12 | class Sensor |
| 13 | { |
| 14 | public: |
| 15 | Sensor() = delete; |
| 16 | Sensor(const Sensor&) = delete; |
| 17 | Sensor(Sensor&&) = delete; |
| 18 | Sensor& operator=(const Sensor&) = delete; |
| 19 | Sensor& operator=(Sensor&&) = delete; |
| 20 | virtual ~Sensor() = default; |
| 21 | |
Matthew Barth | d640382 | 2017-02-17 17:10:19 -0600 | [diff] [blame] | 22 | Sensor(const std::string& id, |
| 23 | FanEnclosure& fanEnc) : |
| 24 | id(id), |
| 25 | fanEnc(fanEnc) |
| 26 | { |
| 27 | //Nothing to do here |
| 28 | } |
| 29 | |
Matthew Barth | 293477d | 2017-02-17 15:39:36 -0600 | [diff] [blame] | 30 | virtual bool isPresent() = 0; |
| 31 | |
| 32 | protected: |
Matthew Barth | d640382 | 2017-02-17 17:10:19 -0600 | [diff] [blame] | 33 | const std::string id; |
| 34 | FanEnclosure& fanEnc; |
Matthew Barth | 293477d | 2017-02-17 15:39:36 -0600 | [diff] [blame] | 35 | |
| 36 | }; |
| 37 | |
| 38 | } // namespace presence |
| 39 | } // namespace fan |
| 40 | } // namespace phosphor |