Tomáš Pecka | af7b704 | 2021-04-20 20:14:13 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2021 CESNET, https://photonics.cesnet.cz/ |
| 3 | * |
| 4 | * Written by Tomáš Pecka <tomas.pecka@cesnet.cz> |
| 5 | * |
| 6 | */ |
| 7 | #pragma once |
| 8 | |
| 9 | #include <filesystem> |
| 10 | #include <sysrepo-cpp/Session.hpp> |
| 11 | #include "utils/log-fwd.h" |
| 12 | |
| 13 | namespace velia::system { |
| 14 | |
| 15 | class LED { |
| 16 | public: |
| 17 | LED(const std::shared_ptr<::sysrepo::Connection>& srConn, std::filesystem::path sysfsLeds); |
| 18 | |
| 19 | private: |
| 20 | velia::Log m_log; |
| 21 | std::filesystem::path m_sysfsLeds; |
| 22 | std::shared_ptr<::sysrepo::Session> m_srSession; |
| 23 | std::shared_ptr<::sysrepo::Subscribe> m_srSubscribe; |
| 24 | }; |
| 25 | } |