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     explicit SysFsRead(const std::string& path) :
16         ReadInterface(), _path(FixupPath(path))
17     {}
18 
19     ReadReturn read(void) override;
20 
21   private:
22     const std::string _path;
23 };
24