Elektra 0.11.0
|
A plugin database that works with added fake data. More...
#include <plugindatabase.hpp>
Public Member Functions | |
std::vector< std::string > | listAllPlugins () const |
list all plugins | |
std::string | lookupInfo (PluginSpec const &spec, std::string const &which) const |
lookup contract clauses or dynamic information | |
func_t | getSymbol (PluginSpec const &whichplugin, std::string const &which) const |
get exported plugin symbol | |
![]() | |
std::vector< std::string > | listAllPlugins () const |
list all plugins | |
std::string | lookupInfo (PluginSpec const &spec, std::string const &which) const |
lookup contract clauses or dynamic information | |
func_t | getSymbol (PluginSpec const &whichplugin, std::string const &which) const |
get exported plugin symbol | |
PluginSpec | lookupMetadata (std::string const &which) const |
lookup which plugin handles metadata | |
PluginSpec | lookupProvides (std::string const &provides) const |
lookup which plugin is a provider for that plugin | |
std::map< int, PluginSpec > | lookupAllProvidesWithStatus (std::string const &provides) const |
looks up all plugins which are a suitable provider | |
std::vector< PluginSpec > | lookupAllProvides (std::string const &provides) const |
looks up all plugins which are a suitable provider | |
virtual std::vector< std::string > | listAllPlugins () const =0 |
list all plugins | |
virtual std::string | lookupInfo (PluginSpec const &whichplugin, std::string const &which) const =0 |
lookup contract clauses or dynamic information | |
virtual func_t | getSymbol (PluginSpec const &whichplugin, std::string const &which) const =0 |
get exported plugin symbol | |
virtual PluginSpec | lookupMetadata (std::string const &which) const =0 |
lookup which plugin handles metadata | |
virtual PluginSpec | lookupProvides (std::string const &provides) const =0 |
lookup which plugin is a provider for that plugin | |
virtual std::map< int, PluginSpec > | lookupAllProvidesWithStatus (std::string const &provides) const =0 |
looks up all plugins which are a suitable provider | |
virtual std::vector< PluginSpec > | lookupAllProvides (std::string const &provides) const =0 |
looks up all plugins which are a suitable provider | |
Public Attributes | |
std::unordered_map< PluginSpec, std::unordered_map< std::string, std::string >, PluginSpecHash, PluginSpecName > | data |
only data from here will be returned | |
Additional Inherited Members | |
![]() | |
enum | Status { provides , real , missing } |
![]() | |
static int | calculateStatus (std::string statusString) |
A plugin database that works with added fake data.
|
virtual |
get exported plugin symbol
whichplugin | from which plugin? |
which | which symbol would you like to look up? |
Implements kdb::tools::PluginDatabase.
|
virtual |
list all plugins
If Elektra is compiled with plugins, it will search for shared libraries. In any case, if no shared libraries were found it will fallback to an internal list (plugins that were compiled together with Elektra).
Implements kdb::tools::PluginDatabase.
|
virtual |
lookup contract clauses or dynamic information
whichplugin | about which plugin? |
which | about which clause in the contract? |
Implements kdb::tools::PluginDatabase.
|
mutable |
only data from here will be returned