Installed content lookup. More...
#include <content_registry.hpp>
Public Member Functions | |
| ContentRegistry (std::filesystem::path data_root=platform_data_root()) | |
| const std::filesystem::path & | data_root () const |
| std::filesystem::path | content_root () const |
| std::vector< ContentPackInfo > | packs_for_plugin (const std::string &plugin_id) const |
| Return all installed packs for a plugin id, without capability filtering. | |
| std::vector< ContentPackInfo > | packs_for_plugin (const ContentCapabilityManifest &manifest) const |
| Return installed packs whose capabilities/kinds match the plugin manifest. | |
| std::vector< PresetInfo > | presets_for_plugin (const ContentCapabilityManifest &manifest) const |
| Return content-pack presets as read-only factory/expansion presets. | |
Static Public Member Functions | |
| static std::filesystem::path | platform_data_root () |
| static std::filesystem::path | content_root_for_data_root (const std::filesystem::path &data_root) |
Installed content lookup.
Content packs are data-only and live under the same user-data root used by pulp content install.
|
explicit |
| std::filesystem::path pulp::state::ContentRegistry::content_root | ( | ) | const |
|
static |
|
inline |
| std::vector< ContentPackInfo > pulp::state::ContentRegistry::packs_for_plugin | ( | const ContentCapabilityManifest & | manifest | ) | const |
Return installed packs whose capabilities/kinds match the plugin manifest.
| std::vector< ContentPackInfo > pulp::state::ContentRegistry::packs_for_plugin | ( | const std::string & | plugin_id | ) | const |
Return all installed packs for a plugin id, without capability filtering.
|
static |
| std::vector< PresetInfo > pulp::state::ContentRegistry::presets_for_plugin | ( | const ContentCapabilityManifest & | manifest | ) | const |
Return content-pack presets as read-only factory/expansion presets.