11 #include "utils/log.h" 22 CSysfsPath(
const std::string& path) : m_path(path) {}
28 std::optional<T> Get()
32 std::ifstream file(m_path);
40 CLog::LogF(LOGERROR,
"error reading from '{}'", m_path);
46 catch (
const std::exception& e)
48 CLog::LogF(LOGERROR,
"exception reading from '{}': {}", m_path, e.what());
58 std::optional<std::string> CSysfsPath::Get<std::string>();
Definition: SysfsPath.h:18