1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
3 // File: FeaturesPlugin_Group.cpp
4 // Created: 08 Oct 2014
5 // Author: Sergey BELASH
7 #include "FeaturesPlugin_Group.h"
9 #include <ModelAPI_Data.h>
10 #include <ModelAPI_Document.h>
11 #include <ModelAPI_AttributeInteger.h>
12 #include <ModelAPI_AttributeString.h>
13 #include <ModelAPI_AttributeSelectionList.h>
14 #include <ModelAPI_ResultGroup.h>
19 FeaturesPlugin_Group::FeaturesPlugin_Group()
23 void FeaturesPlugin_Group::initAttributes()
25 //data()->addAttribute(FeaturesPlugin_Group::NAME_ID(), ModelAPI_AttributeString::typeId());
26 data()->addAttribute(FeaturesPlugin_Group::LIST_ID(), ModelAPI_AttributeSelectionList::typeId());
29 void FeaturesPlugin_Group::execute()
31 if (results().empty()) { // just create result if not exists
32 ResultPtr aGroup = document()->createGroup(data());