Add readString PMBus function
This function will return the data read as an
std::string.
Change-Id: Idd7afbd9b4c7e602fad3146d941f03366140948b
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
diff --git a/pmbus.hpp b/pmbus.hpp
index 89274dc..cad77bf 100644
--- a/pmbus.hpp
+++ b/pmbus.hpp
@@ -199,6 +199,16 @@
uint64_t read(const std::string& name, Type type);
/**
+ * Read a string from file in sysfs.
+ *
+ * @param[in] name - path concatenated to basePath to read
+ * @param[in] type - Path type
+ *
+ * @return string - The data read from the file.
+ */
+ std::string readString(const std::string& name, Type type);
+
+ /**
* Writes an integer value to the file, therefore doing
* a PMBus write.
*