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>
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