Salome HOME
Added a method Modify to Study and a method SetModifyFlag to GenericAttribute. Now...
[modules/kernel.git] / src / SALOMEDSImpl / SALOMEDSImpl_GenericAttribute.cxx
index 9c8f1f2bda21d0e7c21f24b936ba684f6b678f8b..6f2384fb60499ce3057271c52892094a5d020478 100644 (file)
@@ -55,3 +55,13 @@ Handle(SALOMEDSImpl_SObject) SALOMEDSImpl_GenericAttribute::GetSObject()
   if(aLabel.IsNull()) return NULL;
   return SALOMEDSImpl_Study::SObject(aLabel);
 }
+
+void SALOMEDSImpl_GenericAttribute::SetModifyFlag()
+{
+   TDF_Label aLabel = Label();
+   if(aLabel.IsNull()) return; 
+
+  Handle(SALOMEDSImpl_Study) aStudy = SALOMEDSImpl_Study::GetStudy(aLabel);
+  if(!aStudy.IsNull()) aStudy->Modify();
+}
+