feat: implemented sysfs reader class, added new trim method to clean strings
This commit is contained in:
1 parent
f04de7ea34
commit
6e1cdec81f
2 files changed
+45
No files matched your search
@@ -36,5 +36,9 @@ class SysfsReader
|
||||
SysfsStatus read_status() const;
|
||||
|
||||
private:
|
||||
/// @brief Helper method for trimming trailing whitespaces and
|
||||
/// newline indicators
|
||||
/// @param String from the m_path file
|
||||
static void trim_in_place(std::string& string);
|
||||
std::filesystem::path m_path; // Path to the input file.
|
||||
};
|
||||
Reference in new issue
Block a user