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