Salome HOME
Store information about user-defined names in the data model.
[modules/shaper.git] / src / Model / Model_Data.h
index 836c4d646c038bec34d17fed3e914ee03b55cce5..8d12bc4d32a53f8ec81dec7a9b5d98aaec7262f2 100644 (file)
@@ -104,6 +104,8 @@ class Model_Data : public ModelAPI_Data
   MODEL_EXPORT virtual std::string name();
   /// Defines the name of the feature visible by the user in the object browser
   MODEL_EXPORT virtual void setName(const std::string& theName);
+  /// Return \c true if the object has been renamed by the user
+  MODEL_EXPORT virtual bool hasUserDefinedName() const;
   /// Returns the attribute that references to another document
   MODEL_EXPORT virtual std::shared_ptr<ModelAPI_AttributeDocRef> document(const std::string& theID);
   /// Returns the attribute that contains real value with double precision