2 * Copyright (C) 2011-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
11 #include "utils/log.h"
19 CSysfsPath() = default;
20 CSysfsPath(const std::string
& path
) : m_path(path
) {}
21 ~CSysfsPath() = default;
28 std::ifstream
file(m_path
);
36 CLog::LogF(LOGERROR
, "error reading from '{}'", m_path
);
37 throw std::runtime_error("error reading from " + m_path
);
48 std::string
CSysfsPath::Get
<std::string
>();