const std::string& aPluginScript,
const std::string& aPluginConf)
{
- PluginType aType = PluginType::Binary;
+ PluginType aType = Config_ModuleReader::Binary;
std::string aPluginName;
if (!aPluginLibrary.empty()) {
aPluginName = aPluginLibrary;
if (aPluginConf.empty()) {
- aType = PluginType::Intrenal;
+ aType = Config_ModuleReader::Intrenal;
}
} else if (!aPluginScript.empty()) {
aPluginName = aPluginScript;
- aType = PluginType::Python;
+ aType = Config_ModuleReader::Python;
}
if(!aPluginName.empty()) {
myPluginTypes[aPluginName] = aType;
void Config_ModuleReader::loadPlugin(const std::string thePluginName)
{
- PluginType aType = PluginType::Binary;
+ PluginType aType = Config_ModuleReader::Binary;
if(myPluginTypes.find(thePluginName) != myPluginTypes.end()) {
aType = myPluginTypes.at(thePluginName);
}
switch (aType) {
- case PluginType::Python:
+ case Config_ModuleReader::Python:
loadScript(thePluginName);
break;
- case PluginType::Binary:
- case PluginType::Intrenal:
+ case Config_ModuleReader::Binary:
+ case Config_ModuleReader::Intrenal:
default:
loadLibrary(thePluginName);
break;
myGroups.erase(aMyGroup);
send(aGroup, false);
std::set<char*>::iterator anIt = myFlushed.find(theID.myID);
- if (anIt != myFlushed.end())
- myFlushed.erase(myFlushed.find(theID.myID));
+ if (anIt != myFlushed.end()) {
+ myFlushed.erase(anIt);
+ }
}
}