XlsxWorkbookArchiveHelpers

XlsxWorkbookArchiveHelpers

개요

XlsxWorkbookArchiveHelpers은 Aspose.Cells C++용 FOSS에 포함된 클래스입니다.

내부 헬퍼 메서드로, ZIP 아카이브에서 XLSX 워크북 파트를 읽습니다.

이 클래스는 C++ 프로그램에서 XlsxWorkbookArchiveHelpers 객체를 다루기 위한 21개의 메서드를 제공합니다. 사용 가능한 메서드에는 AddIssue, EnsureSeekable, FindRelationshipTarget, FindRelationshipTargetByType, GetEntry, GetRelationshipTargetKind, LoadDateStyleIndexes, LoadDocument, LoadRelationships, LoadSharedStrings, LooksLikeDateFormat, NormalizeFormula 및 추가 9개의 메서드가 포함됩니다. Aspose.Cells C++용 FOSS 패키지를 설치한 후 모든 C++ 애플리케이션에서 공개 멤버에 접근할 수 있습니다.

메서드

시그니처설명
XlsxWorkbookArchiveHelpers()이 XlsxWorkbookArchiveHelpers 인스턴스에서 XlsxWorkbookArchiveHelpers를 호출합니다.
EnsureSeekable(stream: std::vector<uint8_t>) → std::vector<uint8_t>바이트 버퍼가 시크 가능하도록 보장합니다(메모리 내 데이터의 경우 동일합니다).
GetEntry(archive: ZipArchive, uri: std::string_view) → ZipArchiveEntryURI로 ZIP 항목을 가져오며, 앞쪽 슬래시와 백슬래시를 정규화합니다.
LoadDocument(entry: ZipArchiveEntry) → XmlDocumentZIP 항목에서 XML 문서를 로드합니다.
LoadRelationships(archive: ZipArchive, relationshipsUri: std::string_view, sourceUri: std::string_view) → std::unordered_map<std::string, std::string>아카이브에 있는 .rels 파일에서 관계를 로드합니다.
FindRelationshipTarget(workbookRelationships: std::unordered_map<std::string, std::string>, expectedPath: std::string_view) → std::string해결된 경로가 expectedPath와 일치하는 첫 번째 관계 대상을 찾습니다.
FindRelationshipTargetByType(workbookRelationships: std::unordered_map<std::string, std::string>, relationshipType: std::string_view) → std::string추론된 종류가 relationshipType과 일치하는 첫 번째 관계 대상을 찾습니다.
LoadSharedStrings(archive: ZipArchive, workbookRelationships: std::unordered_map<std::string, std::string>, options: LoadOptions, diagnostics: LoadDiagnostics) → std::vector<std::string>아카이브에서 공유 문자열 테이블을 로드합니다.
LoadDateStyleIndexes(archive: ZipArchive, workbookRelationships: std::unordered_map<std::string, std::string>, options: LoadOptions, diagnostics: LoadDiagnostics) → std::unordered_set<int>날짜 숫자 형식을 사용하는 셀 서식 인덱스 집합을 로드합니다.
ParseBoolAttribute(attribute: XmlAttribute) → bool불리언 속성을 파싱하고, "1" 또는 "true"는 true를 반환합니다.
ParseIntAttribute(attribute: XmlAttribute) → std::optional<int>정수 속성을 파싱하고, 실패하거나 속성이 null인 경우 빈 값을 반환합니다.
ParseDoubleAttribute(attribute: XmlAttribute) → std::optional<double>실수 속성을 파싱하고, 실패하거나 속성이 null인 경우 빈 값을 반환합니다.
NormalizeFormula(value: std::string_view) → std::string수식 문자열을 트리밍하고 앞에 있는 ‘=‘를 제거하여 정규화합니다.
ReadInlineString(inlineStringElement: XmlElement) → std::string인라인 문자열 요소에서 연결된 텍스트를 읽습니다.
TryParseNumber(rawValue: std::string_view, numberValue: CellValue) → bool원시 문자열을 숫자(int 또는 double)로 파싱하려 시도합니다.
AddIssue(diagnostics: LoadDiagnostics, options: LoadOptions, issue: LoadIssue)로드 문제를 기록하고, 존재하는 경우 경고 콜백에 알립니다.
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관계 ID에서 워크시트 파트 URI를 해결하고, 규칙에 따라 대체합니다.
ResolvePartUri(sourceUri: std::string_view, target: std::string_view) → std::string소스 URI에 대해 상대 또는 절대 대상을 해결합니다.
RelationshipPointsTo(candidate: std::string_view, expectedUri: std::string_view) → bool후보 경로가 예상 URI와 일치하는지(대소문자 구분 없이) 테스트합니다.
GetRelationshipTargetKind(candidate: std::string_view) → std::string해결된 대상 경로에서 관계 유형을 추론합니다.
LooksLikeDateFormat(formatCode: std::string_view) → bool숫자 형식 코드가 날짜/시간 형식처럼 보이는지 테스트합니다.

참조

 한국어