blob: efdebaa8cb2e89263bd8340cd8427fffbb6aa8e2 [file] [log] [blame]
Krzysztof Grobelny64b75a52020-09-18 10:17:16 +02001#pragma once
2
3#include "report_manager.hpp"
4
5#include <sdbusplus/asio/connection.hpp>
6#include <sdbusplus/asio/object_server.hpp>
7
8#include <memory>
9
10class Telemetry
11{
12 public:
13 Telemetry(std::shared_ptr<sdbusplus::asio::connection> bus) :
14 objServer(std::make_shared<sdbusplus::asio::object_server>(bus)),
Wludzik, Jozefcb88cfd2020-09-28 16:38:57 +020015 reportManager(bus, objServer)
Krzysztof Grobelny64b75a52020-09-18 10:17:16 +020016 {}
17
18 private:
19 std::shared_ptr<sdbusplus::asio::object_server> objServer;
20 ReportManager reportManager;
21};