21 mXmlPluginTagName(
"Plugin"),
22 mSingletonHolder(
this)
46 mIsInitialise =
false;
68 MYGUI_LOG(Error,
"Cannot find symbol 'dllStartPlugin' in library " <<
_file);
85 DynLibList::iterator
it = mLibs.find(
_file);
86 if (
it != mLibs.end())
106 if (
node->getName() ==
"path")
112 else if (node->
getName() ==
"Plugin")
117 while (source_node.next(
"Source"))
120#if MYGUI_DEBUG_MODE == 1
121 if (build ==
"Debug")
122 source = source_node->getContent();
124 if (build !=
"Debug")
125 source = source_node->getContent();
145 MYGUI_LOG(Info,
"Plugin successfully installed");
153 PluginList::iterator
it = mPlugins.find(
_plugin);
154 if (
it != mPlugins.end())
160 MYGUI_LOG(Info,
"Plugin successfully uninstalled");
165 while (!mLibs.empty())
#define MYGUI_ASSERT(exp, dest)
#define MYGUI_LOG(level, text)
#define MYGUI_SINGLETON_DEFINITION(ClassName)
Resource holding data about a dynamic library.
static DynLibManager & getInstance()
Plugin manager. Load/unload and register plugins.
void unloadPlugin(const std::string &_file)
Unload plugin.
void installPlugin(IPlugin *_plugin)
void uninstallPlugin(IPlugin *_plugin)
void unloadAllPlugins()
Unload all plugins.
bool loadPlugin(const std::string &_file)
Load plugin.
static const char * getClassTypeName()
static ResourceManager & getInstance()
ElementEnumerator getElementEnumerator()
const std::string & getName() const
bool findAttribute(const std::string &_name, std::string &_value)
delegates::DelegateFunction< Args... > * newDelegate(void(*_func)(Args... args))