5 #ifndef CNOID_BASE_PLUGIN_MANAGER_H
6 #define CNOID_BASE_PLUGIN_MANAGER_H
9 #include "exportdecl.h"
14 class ExtensionManager;
22 static void finalize();
26 void doStartupLoading(
const char* pluginPathList);
27 void scanPluginFilesInPathList(
const std::string& pathList);
28 void scanPluginFilesInDirectoyOfExecFile();
29 void scanPluginFiles(
const std::string& pathString);
30 void clearUnusedPlugins();
32 bool finalizePlugins();
34 int numPlugins()
const;
36 const std::string& pluginPath(
int index)
const;
37 const std::string& pluginName(
int index)
const;
40 int pluginStatus(
int index)
const;
42 Plugin* findPlugin(
const std::string& name);
43 const std::string& getErrorMessage(
const std::string& name);
45 bool loadPlugin(
int index);
46 bool unloadPlugin(
int index);
47 bool unloadPlugin(
const std::string& name);
48 bool reloadPlugin(
const std::string& name);
50 const char* guessActualPluginName(
const std::string& name);