Salome HOME
merge from branch DEV tag mergeto_trunk_04apr08
[modules/yacs.git] / src / engine / Container.cxx
index 802fe1dda71bdb727883aabbbc3ea524b9801f27..b7d093fe89ed83a16f98c15ebd69b3220f78b61d 100644 (file)
@@ -52,3 +52,12 @@ std::string Container::getProperty(const std::string& name)
   return _propertyMap[name];
 }
 
+void Container::setProperties(std::map<std::string,std::string> properties)
+{
+  _propertyMap.clear();
+  std::map<std::string,std::string>::iterator it;
+  for (it = properties.begin(); it != properties.end(); ++it)
+    {
+      setProperty((*it).first, (*it).second); // setProperty virtual and derived
+    }
+}