blob: b8c9fe2d733e91f26bda50570a83e59d3906a7f1 [file] [log] [blame]
Jagpal Singh Gillca8c7e92024-11-02 16:51:48 -07001#pragma once
2
3#include <sdbusplus/async.hpp>
4
5#include <set>
6#include <string>
7
8namespace cable
9{
10
11class Config
12{
13 public:
14 static constexpr auto configFileDir = "/var/lib/cablemonitor";
15 static constexpr auto configFileName = "cable-config.json";
16 explicit Config() = default;
17
18 using Cables = std::set<std::string>;
19
20 /** Process the configuration file */
21 static auto processConfig(std::string configFile)
22 -> sdbusplus::async::task<Cables>;
23};
24
25} // namespace cable