![]() |
Tulip
5.7.0
Large graphs analysis and drawing
|
#include <PluginLister.h>
Static Public Member Functions | |
static std::list< std::string > | availablePlugins () |
template<typename PluginType > | |
static std::list< std::string > | availablePlugins () |
static void | checkLoadedPluginsDependencies (tlp::PluginLoader *loader) |
static const std::list< tlp::Dependency > & | getPluginDependencies (const std::string &name) |
static std::string | getPluginLibrary (const std::string &name) |
static tlp::Plugin * | getPluginObject (const std::string &name, tlp::PluginContext *context=nullptr) |
template<typename PluginType > | |
static PluginType * | getPluginObject (const std::string &name, tlp::PluginContext *context=nullptr) |
static const ParameterDescriptionList & | getPluginParameters (const std::string &name) |
template<typename PluginType > | |
static bool | pluginExists (const std::string &pluginName) |
static bool | pluginExists (const std::string &pluginName) |
static const Plugin & | pluginInformation (const std::string &name) |
static void | registerPlugin (PluginFactory *objectFactory) |
static void | removePlugin (const std::string &name) |
The PluginLister class is a singleton used to list plugins currently loaded into Tulip and retrieve information about them.
This class holds various methods to check information about plugins currently loaded into Tulip. You can use it to list plugins, get dependencies information or create an instance of a plugin.
Definition at line 51 of file PluginLister.h.
|
static |
Gets the list of plugins.
|
inlinestatic |
Gets the list of plugins of a given type (template parameter).
Definition at line 119 of file PluginLister.h.
|
static |
Checks if all registered plug-ins have their dependencies met.
loader | If there are errors, the loader is informed about them so they can be displayed. |
|
static |
Gets the dependencies of a plug-in.
name | The name of the plug-in to retrieve the dependencies of. |
|
static |
Gets the library from which a plug-in has been loaded.
name | The name of the plug-in to retrieve the library of. |
|
static |
Constructs a plug-in.
name | The name of the plug-in to instantiate. |
p | The context to give to the plug-in. |
|
inlinestatic |
Similar to tlp::PluginLister::getPluginObject() but returns a typed instance.
This method instantiate a plugin from its name and returns it casted into the given type.
name | The plugin's name |
context | The context to give to the plugin |
Definition at line 102 of file PluginLister.h.
|
static |
Gets the list of parameters for the given plug-in.
name | The name of the plug-in to retrieve the parameters of. |
|
inlinestatic |
Checks if a plugin of a given type is loaded This method checks the plugin "pluginName" is currently loaded into Tulip and if it's of type PluginType.
PluginType | the class type of the plugin |
pluginName | the name of the plugin |
Definition at line 85 of file PluginLister.h.
|
static |
Checks if a given name is registered in this factory.
pluginName | The name of the plug-in to look for. |
|
static |
Gets more detailed information about one specific plug-in.
name | The name of the plugin to retrieve information for. |
|
static |
Registers a plugin into Tulip.
|
static |
Removes a plug-in from this factory. This is useful when a plug-in has unmet dependencies, or appears more than once.
name | The name of the plug-in to remove. |