1 // Name : ModelHighAPI_Tools.cpp
5 // 07/06/16 - Sergey POKHODENKO - Creation of the file
7 //--------------------------------------------------------------------------------------
8 #include "ModelHighAPI_Tools.h"
10 #include <ModelAPI_AttributeSelectionList.h>
11 #include <ModelAPI_AttributeString.h>
13 #include "ModelHighAPI_Selection.h"
14 //--------------------------------------------------------------------------------------
15 void fillAttribute(const std::list<ModelHighAPI_Selection> & theValue,
16 const std::shared_ptr<ModelAPI_AttributeSelectionList> & theAttribute)
18 theAttribute->clear();
19 for (auto it = theValue.begin(); it != theValue.end(); ++it)
20 it->appendToList(theAttribute);
23 //--------------------------------------------------------------------------------------
24 void fillAttribute(const std::string & theValue,
25 const std::shared_ptr<ModelAPI_AttributeString> & theAttribute)
27 theAttribute->setValue(theValue);
29 //--------------------------------------------------------------------------------------