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 =
"");
88 static void loadPluginsFromDir(
const std::string &rootPath, PluginLoader *loader =
nullptr);
98 static bool loadPluginLibrary(
const std::string &filename, PluginLoader *loader =
nullptr);
107 static const std::string &getCurrentPluginFileName() {
108 return getInstance()->currentPluginLibrary;
112 PluginLibraryLoader() {}
114 bool initPluginDir(PluginLoader *loader,
bool recursive =
false);
117 static PluginLibraryLoader *getInstance() {
118 if (_instance ==
nullptr) {
119 _instance =
new PluginLibraryLoader();
124 static PluginLibraryLoader *_instance;
127 std::string pluginPath;
128 std::string currentPluginLibrary;
132 #endif // PLUGINLIBLOADER_H