OpcPackage
Overview
OpcPackage is a class in Aspose.Slides FOSS for C++.
Abstract interface for an OPC package that stores named parts as byte arrays. Concrete implementations may back this with a ZIP file, in-memory map, etc.
This class provides 5 methods for working with OpcPackage objects in C++ programs.
Available methods include: delete_part, get_part, has_part, set_part, ~OpcPackage.
All public members are accessible to any C++ application after installing the Aspose.Slides FOSS for C++ package.
Methods
| Signature | Description |
|---|---|
~OpcPackage() | |
get_part(part_name: std::string_view) → std::optional<std::vector<uint8_t>> | Retrieve a part’s content by name. Returns nullopt if the part does not exist. |
set_part(part_name: std::string_view, content: std::vector<uint8_t>) | Store (or overwrite) a part with the given content. |
has_part(part_name: std::string_view) → bool | Check whether a part exists in the package. |
delete_part(part_name: std::string_view) → bool | Delete a part from the package. |