Debian Codegraph @

src/helper/sysctl/sysfswriter.h

raw symbols SCIP
1 // SPDX-License-Identifier: GPL-3.0-or-later
2 // Copyright 2019 Juan Palacios <[email protected]>
3
4 #pragma once
5
6 #include "isysfswriter.h"
7 #include <filesystem>
8 #include <string_view>
9
10 class SysfsWriter final : public ISysfsWriter
11 {
12 public:
13 void write(std::filesystem::path const &sysfsEntry,
14 std::string const &value) override;
15
16 private:
17 static constexpr std::string_view sysfsPath{"/sys"};
18
19 bool isSysfsPath(std::filesystem::path const &path) const;
20 };