XlsxWorkbookArchiveHelpers
XlsxWorkbookArchiveHelpers
Overzicht
XlsxWorkbookArchiveHelpers is een klasse in Aspose.Cells FOSS voor C++.
Interne hulpmethoden voor het lezen van XLSX-werkboekonderdelen uit een ZIP archief.
Deze klasse biedt 21 methoden voor het werken met XlsxWorkbookArchiveHelpers objecten in C++-programma’s. Beschikbare methoden omvatten: AddIssue, EnsureSeekable, FindRelationshipTarget, FindRelationshipTargetByType, GetEntry, GetRelationshipTargetKind, LoadDateStyleIndexes, LoadDocument, LoadRelationships, LoadSharedStrings, LooksLikeDateFormat, NormalizeFormula, en 9 extra methoden. Alle openbare leden zijn toegankelijk voor elke C++-applicatie na het installeren van het Aspose.Cells FOSS voor C++-pakket.
Methoden
| Handtekening | Beschrijving |
|---|---|
XlsxWorkbookArchiveHelpers() | Roept XlsxWorkbookArchiveHelpers aan op deze XlsxWorkbookArchiveHelpers instantie. |
EnsureSeekable(stream: std::vector<uint8_t>) → std::vector<uint8_t> | Zorgt ervoor dat de byte buffer doorzoekbaar is (identiteit voor in-memory data). |
GetEntry(archive: ZipArchive, uri: std::string_view) → ZipArchiveEntry | Haalt een ZIP entry op via URI, en normaliseert voorloop-slashes en backslashes. |
LoadDocument(entry: ZipArchiveEntry) → XmlDocument | Laadt een XML document van een ZIP entry. |
LoadRelationships(archive: ZipArchive, relationshipsUri: std::string_view, sourceUri: std::string_view) → std::unordered_map<std::string, std::string> | Laadt relaties uit een .rels-bestand in het archief. |
FindRelationshipTarget(workbookRelationships: std::unordered_map<std::string, std::string>, expectedPath: std::string_view) → std::string | Zoekt het eerste relatie-doel waarvan het opgeloste pad overeenkomt met expectedPath. |
FindRelationshipTargetByType(workbookRelationships: std::unordered_map<std::string, std::string>, relationshipType: std::string_view) → std::string | Zoekt het eerste relatie-doel waarvan het afgeleide type overeenkomt met relationshipType. |
LoadSharedStrings(archive: ZipArchive, workbookRelationships: std::unordered_map<std::string, std::string>, options: LoadOptions, diagnostics: LoadDiagnostics) → std::vector<std::string> | Laadt de gedeelde tekenreekstabel uit het archief. |
LoadDateStyleIndexes(archive: ZipArchive, workbookRelationships: std::unordered_map<std::string, std::string>, options: LoadOptions, diagnostics: LoadDiagnostics) → std::unordered_set<int> | Laadt de verzameling celopmaak-indexen die een datumcijferopmaak gebruiken. |
ParseBoolAttribute(attribute: XmlAttribute) → bool | Parseert een booleaans attribuut (“1” of “true” levert true op). |
ParseIntAttribute(attribute: XmlAttribute) → std::optional<int> | Parseert een integer-attribuut, retourneert leeg bij falen of een null-attribuut. |
ParseDoubleAttribute(attribute: XmlAttribute) → std::optional<double> | Parseert een double-attribuut, retourneert leeg bij falen of een null-attribuut. |
NormalizeFormula(value: std::string_view) → std::string | Normaliseert een formulestring door te trimmen en een leidende ‘=’ te verwijderen. |
ReadInlineString(inlineStringElement: XmlElement) → std::string | Leest de samengevoegde tekst uit een inline-string element. |
TryParseNumber(rawValue: std::string_view, numberValue: CellValue) → bool | Probeert een ruwe string te parsen als een getal (int of double). |
AddIssue(diagnostics: LoadDiagnostics, options: LoadOptions, issue: LoadIssue) | Registreert een laadprobleem en meldt de waarschuwingscallback indien aanwezig. |
ResolveWorksheetUri(sheetIndex: int, relationshipId: std::string_view, workbookRelationships: std::unordered_map<std::string, std::string>, archive: ZipArchive, diagnostics: LoadDiagnostics, sheetName: std::string_view, options: LoadOptions) → std::string | Bepaalt de worksheet-deel-URI op basis van een relationship-id, en valt terug op de conventie. |
ResolvePartUri(sourceUri: std::string_view, target: std::string_view) → std::string | Lost een relatief of absoluut doel op tegen een bron-URI. |
RelationshipPointsTo(candidate: std::string_view, expectedUri: std::string_view) → bool | Test of een kandidaatpad overeenkomt met een verwachte URI (niet-hoofdlettergevoelig). |
GetRelationshipTargetKind(candidate: std::string_view) → std::string | Bepaalt het relatietype aan de hand van een opgelost doelpad. |
LooksLikeDateFormat(formatCode: std::string_view) → bool | Test of een getalopmaakcode op een datum/tijd-opmaak lijkt. |