blob: 0dbc71b67f05c1ab26027acf509f18f58f920a14 [file] [log] [blame]
#pragma once
#include <string>
#include "interfaces.hpp"
#include "sysfs/util.hpp"
/*
* 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;
};