Salome HOME
Example "PythonFeatures" plugin removed
[modules/shaper.git] / src / ModelAPI / ModelAPI_AttributeSelectionList.h
index 6dc13dd3a6b35c9a8467b16af7efe4e010c8c8e1..fec280f37ece835150537c58ec98a6e44d01ffd7 100644 (file)
@@ -1,3 +1,5 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
 // File:        ModelAPI_AttributeSelectionList.h
 // Created:     22 Oct 2014
 // Author:      Mikhail PONIKAROV
@@ -18,14 +20,18 @@ class ModelAPI_AttributeSelectionList : public ModelAPI_Attribute
 {
  public:
   /// Adds the new reference to the end of the list
-  virtual void append(
-    const ResultPtr& theContext, const boost::shared_ptr<GeomAPI_Shape>& theSubShape) = 0;
+  virtual void append(const ResultPtr& theContext,
+                      const GeomShapePtr& theSubShape) = 0;
 
   /// Returns the number ofselection attributes in the list
   virtual int size() = 0;
 
+  virtual int selectionType() = 0;
+
+  virtual void setSelectionType(int) = 0;
+
   /// Returns the attribute selection by the index (zero based)
-  virtual boost::shared_ptr<ModelAPI_AttributeSelection> value(const int theIndex) = 0;
+  virtual std::shared_ptr<ModelAPI_AttributeSelection> value(const int theIndex) = 0;
 
   /// Returns all attributes
   virtual void clear() = 0;
@@ -55,6 +61,6 @@ class ModelAPI_AttributeSelectionList : public ModelAPI_Attribute
 };
 
 //! Pointer on double attribute
-typedef boost::shared_ptr<ModelAPI_AttributeSelectionList> AttributeSelectionListPtr;
+typedef std::shared_ptr<ModelAPI_AttributeSelectionList> AttributeSelectionListPtr;
 
 #endif