InMemoryOpcPackage
General
InMemoryOpcPackage és una classe en Aspose.Slides FOSS per a C++.
Paquet OPC en memòria amb suport de fitxers I/O ZIP. Gestió d’un paquet Open Packaging Conventions com a mapa en memoria dels noms de parts als arrays de bytes. Suporta la càrrega des i l’enregistrament a arxius Zip (pistes o flux de dades), preservant les parts desconegudes per fidelitat al viatge rotund.
Mètodes
| Signature | Description |
|---|---|
open(path: std::filesystem::path) → InMemoryOpcPackage | Open an OPC package from a file path. |
open(stream: std::istream) → InMemoryOpcPackage | Open an OPC package from a file path. |
create_new() → InMemoryOpcPackage | Create a new empty OPC package. |
save(path: std::filesystem::path) | Save the package to a file path as a ZIP archive. |
save(stream: std::ostream) | Save the package to a file path as a ZIP archive. |
set_part(part_name: std::string_view, content: std::string_view) | Store (or overwrite) a part with the given content. |
get_part_names() → std::vector<std::string> | Get a list of all part names in the package. |
source_path() → std::optional<std::string> | Get the original file path if the package was loaded from a file. |
close() | Close the package and release resources. Clears all in-memory part data. The package should not be used after closing. |