blob: 0edcd2dc01557760f1a84df31f7e39069d122a3c [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)),
15 reportManager(objServer)
16 {}
17
18 private:
19 std::shared_ptr<sdbusplus::asio::object_server> objServer;
20 ReportManager reportManager;
21};