1#ifndef OPENXLSX_XLSTREAMWRITER_HPP
2#define OPENXLSX_XLSTREAMWRITER_HPP
4#include "OpenXLSX-Exports.hpp"
56 bool isStreamActive()
const;
62 void appendRow(
const std::vector<XLCellValue>& values);
68 void appendRow(
const std::vector<XLStreamCell>& cells);
70 std::string getTempFilePath()
const;
79 void appendRowImpl(
const std::vector<T>& items);
81 void flushWriteBuffer();
82 void flushSheetDataClose();
86 static constexpr size_t kFlushThreshold = 256 * 1024;
88 std::filesystem::path m_tempPath;
89 std::ofstream m_stream;
90 uint32_t m_currentRow{1};
92 std::string m_bottomHalf;
96 std::string m_writeBuffer;
Class encapsulating a cell value.
Definition XLCellValue.hpp:79
A structure that represents a cell to be appended via the streaming API.
Definition XLStreamWriter.hpp:25
XLStreamCell(XLCellValue val, XLStyleIndex style)
Constructs a styled streaming cell with an explicitly assigned style index.
Definition XLStreamWriter.hpp:38
XLCellValue value
Definition XLStreamWriter.hpp:40
XLStreamCell(XLCellValue val)
Explicitly constructs a styled streaming cell from an XLCellValue.
Definition XLStreamWriter.hpp:31
std::optional< XLStyleIndex > styleIndex
Definition XLStreamWriter.hpp:41
Definition XLStreamWriter.hpp:45
XLStreamWriter(const XLStreamWriter &)=delete
XLStreamWriter & operator=(const XLStreamWriter &)=delete
A class encapsulating an Excel worksheet. Access to XLWorksheet objects should be via the workbook ob...
Definition XLWorksheet.hpp:118
Definition IZipArchive.hpp:18
size_t XLStyleIndex
Definition XLStyles.hpp:31
Definition XLCellIterator.hpp:121