summaryrefslogtreecommitdiffstats
path: root/presence/sensor_base.hpp
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@fuzziesquirrel.com>2017-07-12 15:57:14 -0400
committerPatrick Williams <patrick@stwcx.xyz>2017-08-02 20:18:19 +0000
commit372b22c3ebcdfa606c95f4b9afac5cfcbb7eaebb (patch)
tree62c25bdd9f4d9ad4772185b0b1026c7aae8f4ef8 /presence/sensor_base.hpp
parent76596b2190d82ff00707ff6fb4e751cfff4c8ae8 (diff)
downloadphosphor-fan-presence-372b22c3ebcdfa606c95f4b9afac5cfcbb7eaebb.tar.gz
phosphor-fan-presence-372b22c3ebcdfa606c95f4b9afac5cfcbb7eaebb.zip
presence: Switch to new framework
Switch the main application logic to the output produced by the new parser previously. Remove unused code. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> Change-Id: If8b262bd80fd0f0135aeea55e578fb3c7f44339a
Diffstat (limited to 'presence/sensor_base.hpp')
-rw-r--r--presence/sensor_base.hpp59
1 files changed, 0 insertions, 59 deletions
diff --git a/presence/sensor_base.hpp b/presence/sensor_base.hpp
deleted file mode 100644
index c206e70..0000000
--- a/presence/sensor_base.hpp
+++ /dev/null
@@ -1,59 +0,0 @@
-#pragma once
-
-
-namespace phosphor
-{
-namespace fan
-{
-namespace presence
-{
-
-// Forward declare FanEnclosure
-class FanEnclosure;
-/**
- * @class Sensor
- * @brief Base sensor implementation to be extended
- * @details A type of presence detection sensor would extend this to override
- * how presences is determined by the fan enclosure containing that type
- */
-class Sensor
-{
- public:
- Sensor() = delete;
- Sensor(const Sensor&) = delete;
- Sensor(Sensor&&) = delete;
- Sensor& operator=(const Sensor&) = delete;
- Sensor& operator=(Sensor&&) = delete;
- virtual ~Sensor() = default;
-
- /**
- * @brief Constructs Sensor Object
- *
- * @param[in] id - ID name of this sensor
- * @param[in] fanEnc - Reference to the fan enclosure with this sensor
- */
- Sensor(const std::string& id,
- FanEnclosure& fanEnc) :
- id(id),
- fanEnc(fanEnc)
- {
- //Nothing to do here
- }
-
- /**
- * @brief Presence function that must be implemented within the derived
- * type of sensor's implementation on how presence is determined
- */
- virtual bool isPresent() = 0;
-
- protected:
- /** @brief ID name of this sensor */
- const std::string id;
- /** @brief Reference to the fan enclosure containing this sensor */
- FanEnclosure& fanEnc;
-
-};
-
-} // namespace presence
-} // namespace fan
-} // namespace phosphor
OpenPOWER on IntegriCloud