{
}
-SalomeHPContainer::SalomeHPContainer(const SalomeHPContainer& other):_componentNames(other._componentNames),_shutdownLevel(999),_sct(other._sct)
+SalomeHPContainer::SalomeHPContainer(const SalomeHPContainer& other):_componentNames(other._componentNames),_shutdownLevel(999),_sct(other._sct),_initScript(other._initScript)
{
}
iss >> val;
setSizeOfPool(val);
}
+ else if(name==INITIALIZE_SCRIPT_KEY)
+ {
+ _initScript=value;
+ }
else
_sct.setProperty(name,value);
}
std::ostringstream oss; oss << getSizeOfPool();
return oss.str();
}
+ else if(name==INITIALIZE_SCRIPT_KEY)
+ {
+ return _initScript;
+ }
else
return _sct.getProperty(name);
}
void SalomeHPContainer::clearProperties()
{
+ _initScript.clear();
_sct.clearProperties();
}
std::map<std::string,std::string> ret(_sct.getProperties());
std::ostringstream oss; oss << getSizeOfPool();
ret[SIZE_OF_POOL_KEY]=oss.str();
+ if(!_initScript.empty())
+ ret[INITIALIZE_SCRIPT_KEY]=_initScript;
return ret;
}