Krzysztof Grobelny | 64b75a5 | 2020-09-18 10:17:16 +0200 | [diff] [blame^] | 1 | #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 | |
| 10 | class 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 | }; |