X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelAPI%2FModelAPI_AttributeSelection.h;h=495da4180492d8eb36b9d62ba4d6e7978e6bd698;hb=b900918cef83bb82217e7221c7ff0ad9d8a6dbe9;hp=fc7675f48b196a8ef2f8a5a251f6a521448e58d4;hpb=8f59919e6ca915db6a58baf5d7924eeb22ba327b;p=modules%2Fshaper.git diff --git a/src/ModelAPI/ModelAPI_AttributeSelection.h b/src/ModelAPI/ModelAPI_AttributeSelection.h index fc7675f48..495da4180 100644 --- a/src/ModelAPI/ModelAPI_AttributeSelection.h +++ b/src/ModelAPI/ModelAPI_AttributeSelection.h @@ -33,16 +33,13 @@ class ModelAPI_AttributeSelection : public ModelAPI_Attribute virtual bool update() = 0; /// Returns the type of this class of attributes - static std::string type() + static std::string typeId() { return "Selection"; } /// 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; @@ -55,15 +52,11 @@ class ModelAPI_AttributeSelection : public ModelAPI_Attribute 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