Salome HOME
Fix the deletion events problems
[modules/shaper.git] / src / ModelAPI / ModelAPI_AttributeSelection.h
index 3778ecdd4d30acc48d75b552e9ebb62df3c67378..b2986b3bb3b6fa963fd15c0977cbfb8e96b1ebeb 100644 (file)
@@ -39,28 +39,24 @@ class ModelAPI_AttributeSelection : public ModelAPI_Attribute
   }
 
   /// Returns the type of this class of attributes, not static method
-  virtual std::string attributeType()
-  {
-    return type();
-  }
+  MODELAPI_EXPORT virtual std::string attributeType();
 
   /// Returns a textual string of the selection
   virtual std::string namingName() = 0;
+  
+  /// Returns an id of the selection
+  virtual int Id() = 0;
 
 
   /// Selects sub-shape by the textual Name
   virtual void selectSubShape(const std::string& theType, const std::string& theSubShapeName) = 0;
 
   /// To virtually destroy the fields of successors
-  virtual ~ModelAPI_AttributeSelection()
-  {
-  }
+  MODELAPI_EXPORT virtual ~ModelAPI_AttributeSelection();
 
  protected:
   /// Objects are created for features automatically
-  MODELAPI_EXPORT ModelAPI_AttributeSelection()
-  {
-  }
+  MODELAPI_EXPORT ModelAPI_AttributeSelection();
 };
 
 //! Pointer on double attribute