diff options
author | Matthew Barth <msbarth@us.ibm.com> | 2017-02-17 15:39:36 -0600 |
---|---|---|
committer | Matthew Barth <msbarth@us.ibm.com> | 2017-03-09 15:13:33 -0600 |
commit | 293477d4650314935a3741c547efcb36d5efb340 (patch) | |
tree | a21cf9ae720be38a7d16f1a4cd33d9487dd130d9 /sensor_base.hpp | |
parent | ae0e96c3f98e57e5988b1621ec4c67d4b27cda4f (diff) | |
download | phosphor-fan-presence-293477d4650314935a3741c547efcb36d5efb340.tar.gz phosphor-fan-presence-293477d4650314935a3741c547efcb36d5efb340.zip |
Add fan presence application framework
Add class framework for detecting fans by tach
Change-Id: I45295fd6bcd81c62cef36320dfbc4f0da6092557
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Diffstat (limited to 'sensor_base.hpp')
-rw-r--r-- | sensor_base.hpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/sensor_base.hpp b/sensor_base.hpp new file mode 100644 index 0000000..92f53a7 --- /dev/null +++ b/sensor_base.hpp @@ -0,0 +1,30 @@ +#pragma once + + +namespace phosphor +{ +namespace fan +{ +namespace presence +{ + +class FanEnclosure; +class Sensor +{ + public: + Sensor() = delete; + Sensor(const Sensor&) = delete; + Sensor(Sensor&&) = delete; + Sensor& operator=(const Sensor&) = delete; + Sensor& operator=(Sensor&&) = delete; + virtual ~Sensor() = default; + + virtual bool isPresent() = 0; + + protected: + +}; + +} // namespace presence +} // namespace fan +} // namespace phosphor |