summaryrefslogtreecommitdiffstats
path: root/sensor_base.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'sensor_base.hpp')
-rw-r--r--sensor_base.hpp30
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
OpenPOWER on IntegriCloud