FOSSredder
0.5.0
Loading...
Searching...
No Matches
XlntTableWriterAdapter.h
Go to the documentation of this file.
1
5
6
#pragma once
7
8
#include "
core/ports/infra/xlsx-writer/IXlsxWriter.h
"
9
10
#include <memory>
11
12
namespace
core::ports::diagnostics
{
13
class
IErrorReporter
;
14
}
15
16
namespace
infra::xlsx_writer
{
17
18
class
XlntTableWriterAdapter
final :
public
core::ports::xlsx_writer::IXlsxWriter
{
19
public
:
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
26
private
:
27
std::shared_ptr<core::ports::diagnostics::IErrorReporter> errorReporter_;
28
};
29
30
}
// namespace infra::xlsx_writer
IXlsxWriter.h
Declares the XLSX writing port used by the export layer.
core::ports::diagnostics::IErrorReporter
Port for reporting structured diagnostic error events.
Definition
IErrorReporter.h:18
core::ports::xlsx_writer::IXlsxWriter
Writes tabular export data to XLSX workbooks.
Definition
IXlsxWriter.h:17
infra::xlsx_writer::XlntTableWriterAdapter::writeTable
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.
Definition
XlntTableWriterAdapter.cpp:22
infra::xlsx_writer::XlntTableWriterAdapter::XlntTableWriterAdapter
XlntTableWriterAdapter(std::shared_ptr< core::ports::diagnostics::IErrorReporter > errorReporter)
Definition
XlntTableWriterAdapter.cpp:17
core::ports::diagnostics
Definition
StatementImportJobSystem.h:23
infra::xlsx_writer
Definition
XlntTableWriterAdapter.h:16
infra
xlsx-writer
include
xlsx-writer
XlntTableWriterAdapter.h
Generated by
1.14.0