Salome HOME
Add Mirror and fix tests
[modules/shaper.git] / src / ModelHighAPI / ModelHighAPI_Tools.cpp
index 9250494b128f5356883ca93bca3c18a7a551e69e..2c300e15ccf65463bb12f384bdb5f4e66bdadd80 100644 (file)
@@ -102,6 +102,15 @@ void fillAttribute(const std::list<ModelHighAPI_RefAttr> & theValue,
     it->appendToList(theAttribute);
 }
 
+//--------------------------------------------------------------------------------------
+void fillAttribute(const std::list<std::shared_ptr<ModelAPI_Object> > & theValue,
+                   const std::shared_ptr<ModelAPI_AttributeRefList> & theAttribute)
+{
+  theAttribute->clear();
+  for (auto it = theValue.begin(); it != theValue.end(); ++it)
+    theAttribute->append(*it);
+}
+
 //--------------------------------------------------------------------------------------
 void fillAttribute(const ModelHighAPI_Selection & theValue,
                    const std::shared_ptr<ModelAPI_AttributeSelection> & theAttribute)