XlsxWorkbookArchiveHelpers
Overview
XlsxWorkbookArchiveHelpers เป็นคลาสใน Aspose.Cells FOSS สําหรับ C++.
วิธีช่วยภายในสําหรับการอ่านส่วนของหนังสือทํางาน XLSX จากอาร์คิฟ ZIP.
หมวดนี้ให้ 21 วิธีในการทํางานกับวัตถุ XlsxWorkbookArchiveHelpers ในโปรแกรม C++. วิธีการที่ใช้ได้แก่: AddIssue, EnsureSeekable, FindRelationshipTarget, FindRelationshipTargetByType, GetEntry, GetRelationshipTargetKind, LoadDateStyleIndexes, LoadDocument, LoadRelationships, LoadSharedStrings, LooksLikeDateFormat, NormalizeFormula,และ 9 วิธีเพิ่มเติม. สมาชิกสาธารณะทุกคนสามารถเข้าถึงการใช้งาน C++ ใดก็ได้หลังจากติดตั้งแพ็คเกจ Aspose.Cells FOSS for C++.
Methods
| Signature | Description |
|---|---|
XlsxWorkbookArchiveHelpers() | เรียก XlsxWorkbookArchiveHelpers ในตัวอย่างนี้ XlsxWorkbookArchiveHelpers. |
EnsureSeekable(stream: std::vector<uint8_t>) → std::vector<uint8_t> | การันตีว่าพัฟเฟอร์ไบต์สามารถค้นหาได้ (เอกลักษณ์สําหรับข้อมูลในความจํา). |
GetEntry(archive: ZipArchive, uri: std::string_view) → ZipArchiveEntry | ได้รับการเข้า ZIP โดย URI, ปกติแสลัสนําและ backslashes. |
LoadDocument(entry: ZipArchiveEntry) → XmlDocument | โหลดเอกสาร XML จาก ZIP เอนก์ท. |
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> | อัตราการอัดตาราง string ที่แบ่งจากเอกสารเก็บของ. |
LoadDateStyleIndexes(archive: ZipArchive, workbookRelationships: std::unordered_map<std::string, std::string>, options: LoadOptions, diagnostics: LoadDiagnostics) → std::unordered_set<int> | อัตราการอัดชุดอินเด็กซ์ในรูปแบบเซลล์ที่ใช้รูป แบบเลขวัน. |
ParseBoolAttribute(attribute: XmlAttribute) → bool | การพาราณคุณสมบัติ boolean (“1” หรือ “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 | แก้ไข URI ของส่วนของใบทํางานจาก id ความสัมพันธ์, กลับไปที่ประกอบการ. |
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 | การทดสอบว่ารหัสรูปแบบเลขดูเหมือนในรูป แบบวัน/เวลาหรือไม่. |