FOSSredder 0.5.0
Loading...
Searching...
No Matches
OpenCvAnalysisRendererAdapter.h
Go to the documentation of this file.
1
5
6#pragma once
7
9
10#include <memory>
11
13class IErrorReporter;
14}
15
17
19public:
20 explicit OpenCvAnalysisRendererAdapter(std::shared_ptr<core::ports::diagnostics::IErrorReporter> errorReporter);
21
22 bool renderToImage(const std::filesystem::path& outputPath,
23 const std::string& title,
24 const core::ports::analysis::AnalysisResult& result) const override;
25
26private:
27 std::shared_ptr<core::ports::diagnostics::IErrorReporter> errorReporter_;
28};
29
30} // namespace infra::analysis_rendering
Declares the analysis rendering port used by the export layer.
Renders analysis results to image artifacts.
Port for reporting structured diagnostic error events.
bool renderToImage(const std::filesystem::path &outputPath, const std::string &title, const core::ports::analysis::AnalysisResult &result) const override
Renders one analysis artifact to an image file.
OpenCvAnalysisRendererAdapter(std::shared_ptr< core::ports::diagnostics::IErrorReporter > errorReporter)