21 #ifndef PLUGINLIBLOADER_H 22 #define PLUGINLIBLOADER_H 27 #include <tulip/tulipconf.h> 41 class TLP_SCOPE PluginLibraryLoader {
69 static void loadPlugins(PluginLoader *loader = NULL,
const std::string& pluginPath =
"");
78 static bool loadPluginLibrary(
const std::string & filename, PluginLoader *loader = NULL);
87 static const std::string& getCurrentPluginFileName() {
88 return getInstance()->currentPluginLibrary;
92 PluginLibraryLoader() {}
94 bool loadNextPluginLibrary(PluginLoader *loader);
96 bool initPluginDir(PluginLoader *loader);
99 static PluginLibraryLoader* getInstance() {
100 if(_instance == NULL) {
101 _instance =
new PluginLibraryLoader();
106 static PluginLibraryLoader* _instance;
109 std::string pluginPath;
110 std::string currentPluginLibrary;
115 #endif //PLUGINLIBLOADER_H