blob: 775ea4553f1ae390bf4f84a7476f882231ee706c [file] [log] [blame]
#pragma once
#include "interfaces/report_factory.hpp"
#include <boost/asio/io_context.hpp>
#include <sdbusplus/asio/object_server.hpp>
class ReportFactory : public interfaces::ReportFactory
{
public:
ReportFactory(
boost::asio::io_context& ioc,
const std::shared_ptr<sdbusplus::asio::object_server>& objServer);
std::unique_ptr<interfaces::Report>
make(const std::string& name, const std::string& reportingType,
bool emitsReadingsSignal, bool logToMetricReportsCollection,
std::chrono::milliseconds period,
const ReadingParameters& metricParams,
interfaces::ReportManager& reportManager) const override;
private:
boost::asio::io_context& ioc;
std::shared_ptr<sdbusplus::asio::object_server> objServer;
};