Salome HOME
Issue #1834: Fix length of lines
[modules/shaper.git] / src / Model / Model_AttributeString.h
index e99f21763a4c658d53439b469c2665d28f55e070..0d5e382ae02519f4261ee3149fd5d15f01d95ebe 100644 (file)
@@ -11,7 +11,7 @@
 #include <ModelAPI_AttributeString.h>
 
 #include <TDF_Label.hxx>
-#include <Handle_TDataStd_Name.hxx>
+#include <TDataStd_Name.hxx>
 
 #include <string>
 
@@ -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;
 };