feat: implemented sysfs reader class, added new trim method to clean strings
This commit is contained in:
@@ -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