feat: implemented sysfs reader class, added new trim method to clean strings

This commit is contained in:
2026-03-10 16:30:03 +00:00
parent f04de7ea34
commit 6e1cdec81f
2 changed files with 45 additions and 0 deletions

View File

@@ -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.
};