blob: 5121d1d83f886ae0da06f81dfec3e5028ce49a7d [file] [log] [blame]
Tomáš Peckaaf7b7042021-04-20 20:14:13 +02001/*
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
13namespace velia::system {
14
15class LED {
16public:
17 LED(const std::shared_ptr<::sysrepo::Connection>& srConn, std::filesystem::path sysfsLeds);
18
19private:
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}