32 lines
575 B
C++
32 lines
575 B
C++
#ifndef LMSENSORSFACADE_H_
|
|
#define LMSENSORSFACADE_H_
|
|
|
|
#include <memory>
|
|
#include <vector>
|
|
|
|
#include <sensors/sensors.h>
|
|
|
|
#include <sensor/Sensor.h>
|
|
|
|
class LMSensorsFacade {
|
|
public:
|
|
LMSensorsFacade();
|
|
~LMSensorsFacade();
|
|
|
|
std::vector<std::shared_ptr<Sensor>> TemperatureSensors();
|
|
std::vector<std::shared_ptr<Sensor>> RPMSensors();
|
|
|
|
void ReloadSensors();
|
|
|
|
private:
|
|
template <sensors_subfeature_type T>
|
|
std::vector<std::shared_ptr<Sensor>> Sensors();
|
|
void InitSensors();
|
|
void CleanupSensors();
|
|
|
|
private:
|
|
FILE *mConfigFile;
|
|
};
|
|
|
|
#endif // LMSENSORSFACADE_H_
|