summaryrefslogtreecommitdiffstats
path: root/sensor_base.hpp
blob: 92f53a74b25c07b9bd0d93acebb36e379a0ce34e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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