1 #pragma once
2 
3 #include "interfaces.hpp"
4 #include "sysfs/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 
19     ReadReturn read(void) override;
20 
21   private:
22     const std::string _path;
23 };
24