Exemple #1
0
void AgentManager::loadAllPlugins()
{
	unloadAllPlugins();
	
    std::map<std::string,std::string> conf = getPluginConfigure();
    if(!conf.empty()){
        loadPluginsFromConfig(conf);
    }else{
		OPENSDK_WARN("AgentManager", "no config use debug mode");
        setDebugMode(true);
    }
}
bool AgentManager::initWithConfigureFile()
{
	std::map<std::string, std::string> conf = getPluginConfigure();
	return init(conf);
}