Returns True if the %study has been modified and not saved.
*/
boolean IsModified();
+
+/*!
+ Marks the %study as being modified and not saved.
+*/
+ void Modified();
+
/*!
Determines the file where the %study has been saved
*/
else isModified = _corba_impl->IsModified();
return isModified;
}
+
+void SALOMEDS_Study::Modified()
+{
+ if (_isLocal) {
+ SALOMEDS::Locker lock;
+ _local_impl->Modify();
+ }
+ else _corba_impl->IsModified();
+}
+
std::string SALOMEDS_Study::URL()
{
virtual bool IsSaved();
virtual void IsSaved(bool save);
virtual bool IsModified();
+ virtual void Modified();
virtual std::string URL();
virtual void URL(const std::string& url);
virtual int StudyId();
return _impl->IsModified();
}
+//============================================================================
+/*! Function : Modified
+ * Purpose : Set a Modified flag of a Study to True
+ */
+//============================================================================
+void SALOMEDS_Study_i::Modified()
+{
+ SALOMEDS::Locker lock;
+ _impl->Modify();
+}
+
+
//============================================================================
/*! Function : URL
* Purpose : get URL of the study (persistent reference of the study)
*/
virtual CORBA::Boolean IsModified();
+ //! method to set a Modified flag of a Study to True
+ virtual void Modified();
+
+
//! method to get URL of the study (idem GetPersistentReference)
/*!
\return char* arguments, the study URL
virtual bool IsSaved() = 0;
virtual void IsSaved(bool save) = 0;
virtual bool IsModified() = 0;
+ virtual void Modified() = 0;
virtual std::string URL() = 0;
virtual void URL(const std::string& url) = 0;
virtual int StudyId() = 0;