|
OpenXLSX 1.12.1
Modern C++ Excel Library (Fork of OpenXLSX by Kenneth Troldal Balslev)
|
Abstract sheet-read port for formula evaluation. More...
#include <XLEvaluationContext.hpp>
Public Member Functions | |
| virtual | ~XLEvaluationContext ()=default |
| virtual XLCellValue | cellValue (std::string_view ref) const =0 |
| Resolve a single-cell reference to its live (or mapped) value. | |
Abstract sheet-read port for formula evaluation.
Decouples XLFormulaEngine from concrete workbook types. Implementations resolve a single-cell reference string (e.g. "A1", "$B$2", "Sheet1!C3", or quoted 'My Sheet'!A1) to an XLCellValue. Range expansion remains the engine's responsibility; only single-cell refs are requested.
Unknown / out-of-range cells should return an empty XLCellValue{}.
|
virtualdefault |
|
nodiscardpure virtual |
Resolve a single-cell reference to its live (or mapped) value.
| ref | Raw reference text as seen by the formula engine. |
Implemented in OpenXLSX::XLMapEvaluationContext, and OpenXLSX::XLWorksheetEvaluationContext.