Sensor Objects
This includes all the sensor objects including a few
implementations, including dbus and sysfs sensors.
Change-Id: I9897c79f9fd463f00f0e02aeb6c32ffa89635dbe
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/sysfs/sysfsread.hpp b/sysfs/sysfsread.hpp
new file mode 100644
index 0000000..0dbc71b
--- /dev/null
+++ b/sysfs/sysfsread.hpp
@@ -0,0 +1,25 @@
+#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;
+};