FOSSredder 0.5.0
Loading...
Searching...
No Matches
XlntTableWriterAdapter.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 XlntTableWriterAdapter(std::shared_ptr<core::ports::diagnostics::IErrorReporter> errorReporter);
21
22 bool writeTable(const std::filesystem::path& outputPath,
23 const std::vector<std::vector<std::string>>& rows,
24 const std::string& worksheetTitle) const override;
25
26private:
27 std::shared_ptr<core::ports::diagnostics::IErrorReporter> errorReporter_;
28};
29
30} // namespace infra::xlsx_writer
Declares the XLSX writing port used by the export layer.
Port for reporting structured diagnostic error events.
Writes tabular export data to XLSX workbooks.
Definition IXlsxWriter.h:17
bool writeTable(const std::filesystem::path &outputPath, const std::vector< std::vector< std::string > > &rows, const std::string &worksheetTitle) const override
Writes rows into a worksheet.
XlntTableWriterAdapter(std::shared_ptr< core::ports::diagnostics::IErrorReporter > errorReporter)