Salome HOME
Split circle. Remain coincidence with newly created arc (issue #1725)
[modules/shaper.git] / src / Model / Model_AttributeString.h
index 2d1ba634dea54673f8a62b93e388d4b1413c463d..0d5e382ae02519f4261ee3149fd5d15f01d95ebe 100644 (file)
@@ -22,7 +22,8 @@
 
 class Model_AttributeString : public ModelAPI_AttributeString
 {
-  Handle_TDataStd_Name myString;
+  Handle_TDataStd_Name myString; ///< container of the string value
+  TDF_Label myLab; ///< if attribute is not initialized, store label here
  public:
   /// Defines the std::string value
   MODEL_EXPORT virtual void setValue(const std::string& theValue);
@@ -33,6 +34,8 @@ class Model_AttributeString : public ModelAPI_AttributeString
  protected:
   /// Initializes attibutes
   Model_AttributeString(TDF_Label& theLabel);
+  /// Reinitializes the internal state of the attribute (may be needed on undo/redo, abort, etc)
+  virtual void reinit();
 
   friend class Model_Data;
 };