OpenXLSX 1.9.1
Loading...
Searching...
No Matches
OpenXLSX::XLStreamCell Class Reference

A structure that represents a cell to be appended via the streaming API. More...

#include <XLStreamWriter.hpp>

Public Member Functions

 XLStreamCell (XLCellValue val)
 Explicitly constructs a styled streaming cell from an XLCellValue.
 
 XLStreamCell (XLCellValue val, XLStyleIndex style)
 Constructs a styled streaming cell with an explicitly assigned style index.
 

Data Fields

XLCellValue value
 
std::optional< XLStyleIndexstyleIndex
 

Detailed Description

A structure that represents a cell to be appended via the streaming API.

By explicitly constructing an XLStreamCell, users can attach specific styles to a streamed row without buffering the entire DOM in memory.

Constructor & Destructor Documentation

◆ XLStreamCell() [1/2]

OpenXLSX::XLStreamCell::XLStreamCell ( XLCellValue  val)
inlineexplicit

Explicitly constructs a styled streaming cell from an XLCellValue.

Parameters
valThe cell value (e.g. integer, string, double).

◆ XLStreamCell() [2/2]

OpenXLSX::XLStreamCell::XLStreamCell ( XLCellValue  val,
XLStyleIndex  style 
)
inline

Constructs a styled streaming cell with an explicitly assigned style index.

Parameters
valThe cell value.
styleThe XLStyleIndex (e.g. retrieved from doc.workbook().styles().create(...))

Field Documentation

◆ styleIndex

std::optional<XLStyleIndex> OpenXLSX::XLStreamCell::styleIndex

◆ value

XLCellValue OpenXLSX::XLStreamCell::value

The documentation for this class was generated from the following file: