Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::state::ContentRegistry Class Reference

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)

Detailed Description

Installed content lookup.

Content packs are data-only and live under the same user-data root used by pulp content install.

Constructor & Destructor Documentation

◆ ContentRegistry()

pulp::state::ContentRegistry::ContentRegistry ( std::filesystem::path data_root = platform_data_root())
explicit

Member Function Documentation

◆ content_root()

std::filesystem::path pulp::state::ContentRegistry::content_root ( ) const

◆ content_root_for_data_root()

std::filesystem::path pulp::state::ContentRegistry::content_root_for_data_root ( const std::filesystem::path & data_root)
static

◆ data_root()

const std::filesystem::path & pulp::state::ContentRegistry::data_root ( ) const
inline

◆ packs_for_plugin() [1/2]

std::vector< ContentPackInfo > pulp::state::ContentRegistry::packs_for_plugin ( const ContentCapabilityManifest & manifest) const

Return installed packs whose capabilities/kinds match the plugin manifest.

◆ packs_for_plugin() [2/2]

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.

◆ platform_data_root()

std::filesystem::path pulp::state::ContentRegistry::platform_data_root ( )
static

◆ presets_for_plugin()

std::vector< PresetInfo > pulp::state::ContentRegistry::presets_for_plugin ( const ContentCapabilityManifest & manifest) const

Return content-pack presets as read-only factory/expansion presets.


The documentation for this class was generated from the following file: