Add mapping logic, refactor stuff
This commit is contained in:
@@ -1,15 +1,18 @@
|
||||
#ifndef SENSOR_H_
|
||||
#define SENSOR_H_
|
||||
|
||||
#include <iostream>
|
||||
#include <Printable.h>
|
||||
|
||||
class Sensor {
|
||||
class Sensor : public Printable {
|
||||
public:
|
||||
// Read the current value
|
||||
virtual int value() = 0;
|
||||
// Name for displaying. Should be descriptive, e.g. "GPU" or the label from
|
||||
// libsensors.
|
||||
virtual std::string name() = 0;
|
||||
|
||||
virtual int max() const;
|
||||
virtual void max(int value);
|
||||
|
||||
protected:
|
||||
int mMax = 0;
|
||||
};
|
||||
|
||||
#endif // SENSOR_H_
|
||||
|
||||
Reference in New Issue
Block a user