blob: 32ce18e9e9dae983424a2959d55f55708e1a5fdb [file] [log] [blame]
#pragma once
#include "interfaces.hpp"
#include "util.hpp"
#include <string>
namespace pid_control
{
/*
* A ReadInterface that is expecting a path that's sysfs, but really could be
* any filesystem path.
*/
class SysFsRead : public ReadInterface
{
public:
explicit SysFsRead(const std::string& path) :
ReadInterface(), _path(FixupPath(path))
{}
ReadReturn read(void) override;
private:
const std::string _path;
};
} // namespace pid_control