This class stores metadata about particular plugin. The plugin metadata are stored in plugin configuration file, which resides either besides the dynamic plugin binary in a filesystem or is compiled directly into executable with an static plugin. See Plugin management for tutorial and brief introduction into how plugins work.
The plugin configuration file has an simple syntax (see Utility::
Matrix.conf file for
# Dependencies depends=SomeRandomJohnDoesPlugin depends=BaseMatrixPlugin depends=SkyNetPlugin # Aliases provides=RealWorld provides=RealButSlightlyTwistedWorld # Optional plugin-specific data [data] description=My first matrix without bugs
According to the configuration file, the
Matrix plugin can be loaded only if
SkyNetPlugin are found can be loaded. It will be also loaded when requesting
RealWorld plugin, but only if this is the first plugin providing it.
auto name() const -> std::
- Plugin name.
auto depends() const -> const std::
- Plugins on which this plugin depend.
auto usedBy() const -> std::
- Plugins which depend on this plugin.
auto provides() const -> const std::
- Plugins which are provided by this plugin.
auto data() const -> const Utility::
- Plugin-specific data.
vector<std:: string>& Corrade:: PluginManager:: PluginMetadata:: provides() const
Plugins which are provided by this plugin.
List of plugin names that are alias to this plugin when loading the plugin by name (not as dependency) if there is no plugin with that name. If there is more than one alias for given name, the first found is used.