21 #ifndef PLUGINLIBLOADER_H 22 #define PLUGINLIBLOADER_H 27 #include <tulip/tulipconf.h> 43 class TLP_SCOPE PluginLibraryLoader {
71 static void loadPlugins(PluginLoader *loader =
nullptr,
const std::string &pluginPath =
"");
90 static void loadPluginsFromDir(
const std::string &rootPath, PluginLoader *loader =
nullptr,
91 const std::string &userLocalPath =
"");
101 static bool loadPluginLibrary(
const std::string &filename, PluginLoader *loader =
nullptr);
110 static const std::string &getCurrentPluginFileName() {
111 return _currentPluginLibrary;
115 PluginLibraryLoader() {}
117 static bool initPluginDir(PluginLoader *loader,
bool recursive =
false,
118 const std::string &userPluginsPath =
"");
121 static std::string _message;
122 static std::string _pluginPath;
123 static std::string _currentPluginLibrary;
127 #endif // PLUGINLIBLOADER_H