| 1 | // SPDX-License-Identifier: GPL-3.0-or-latercxx . . $ `<file>/src/helper/sysctl/sysfswriter.h`/ |
| 2 | // Copyright 2019 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include "isysfswriter.h"cxx . . $ `<file>/src/helper/sysctl/isysfswriter.h`/ |
| 7 | #include <filesystem> |
| 8 | #include <string_view> |
| 9 | |
| 10 | class SysfsWritercxx . . $ SysfsWriter# final : public ISysfsWritercxx . . $ ISysfsWriter# |
| 11 | { |
| 12 | public: |
| 13 | void writecxx . . $ SysfsWriter#write(b03b73af961d2abd).(stdcxx . . $ std/::filesystemcxx . . $ std/filesystem/::pathcxx . . $ std/filesystem/__cxx11/path# const &sysfsEntry, |
| 14 | stdcxx . . $ std/::stringcxx . . $ std/string# const &value) override; |
| 15 | |
| 16 | private: |
| 17 | static constexpr stdcxx . . $ std/::string_viewcxx . . $ std/string_view# sysfsPathcxx . . $ SysfsWriter#sysfsPath.{"/sys"}; |
| 18 | |
| 19 | bool isSysfsPathcxx . . $ SysfsWriter#isSysfsPath(ff86b37421e90a61).(stdcxx . . $ std/::filesystemcxx . . $ std/filesystem/::pathcxx . . $ std/filesystem/__cxx11/path# const &path) const; |
| 20 | }; |