1 #pragma once
2 
3 #include "interfaces.hpp"
4 #include "util.hpp"
5 
6 #include <string>
7 
8 /*
9  * A ReadInterface that is expecting a path that's sysfs, but really could be
10  * any filesystem path.
11  */
12 class SysFsRead : public ReadInterface
13 {
14   public:
15     SysFsRead(const std::string& path) : ReadInterface(), _path(FixupPath(path))
16     {}
17 
18     ReadReturn read(void) override;
19 
20   private:
21     const std::string _path;
22 };
23