OpenXLSX 1.12.1
Modern C++ Excel Library (Fork of OpenXLSX by Kenneth Troldal Balslev)
Loading...
Searching...
No Matches
XLSharedStringTable.hpp File Reference

Read-only shared-string table (SST) port. More...

#include "OpenXLSX-Exports.hpp"
#include <cstdint>
#include <string>
#include <string_view>
#include <unordered_map>
#include <vector>

Go to the source code of this file.

Data Structures

class  OpenXLSX::XLSharedStringTable
 Abstract read-only view of the workbook shared string table. More...
class  OpenXLSX::XLMapSharedStringTable
 In-memory read-only SST for unit tests and offline consumers (no document required). More...

Namespaces

namespace  OpenXLSX

Detailed Description

Read-only shared-string table (SST) port.

Stream readers and other consumers that only resolve SST indices to text should depend on this interface, not on the full XLDocument façade or the mutable XLSharedStrings implementation details.

Write paths (getOrCreateStringIndex / appendString / clearString) remain on XLSharedStrings via document.sharedStrings().

Prefer XLXmlFile::sharedStringTable() over parentDoc().sharedStrings() when only lookups are required.