}
A->SetValue(Val);
+
return A;
}
Backup();
myString = S;
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
Backup();
myString = S;
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
Backup();
myString = S;
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
//=======================================================================
myString = theValue;
SALOMEDSImpl_Study::IORUpdated(this);
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
//=======================================================================
Backup();
myValue = v;
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
//=======================================================================
Backup();
myValue = theValue;
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
Backup();
myString = S;
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
Backup();
myString = S;
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
//=======================================================================
Backup();
myString = S;
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
//=======================================================================
Backup();
mySequence = theSequence;
myIsScript = theScript;
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
TCollection_AsciiString SALOMEDSImpl_AttributePythonObject::GetObject() const
Backup();
myValue = v;
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
//=======================================================================
Backup();
myLabel = Origin;
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
//=======================================================================
Backup();
if (myValue.IsNull()) myValue = new TColStd_HSequenceOfInteger;
myValue->ChangeSequence() = other->Sequence();
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
void SALOMEDSImpl_AttributeSequenceOfInteger::ChangeValue(const Standard_Integer Index,const Standard_Integer Value)
CheckLocked();
Backup();
myValue->SetValue(Index, Value);
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
void SALOMEDSImpl_AttributeSequenceOfInteger::Add(const Standard_Integer Value)
CheckLocked();
Backup();
myValue->Append(Value);
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
void SALOMEDSImpl_AttributeSequenceOfInteger::Remove(const Standard_Integer Index)
CheckLocked();
Backup();
myValue->Remove(Index);
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
Standard_Integer SALOMEDSImpl_AttributeSequenceOfInteger::Length()
Backup();
if (myValue.IsNull()) myValue = new TColStd_HSequenceOfReal;
myValue->ChangeSequence() = other->Sequence();
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
void SALOMEDSImpl_AttributeSequenceOfReal::ChangeValue(const Standard_Integer Index,const Standard_Real Value)
CheckLocked();
Backup();
myValue->SetValue(Index, Value);
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
void SALOMEDSImpl_AttributeSequenceOfReal::Add(const Standard_Real Value)
CheckLocked();
Backup();
myValue->Append(Value);
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
void SALOMEDSImpl_AttributeSequenceOfReal::Remove(const Standard_Integer Index)
CheckLocked();
Backup();
myValue->Remove(Index);
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
Standard_Integer SALOMEDSImpl_AttributeSequenceOfReal::Length()
while (myCols->Length() < myNbColumns) { // append empty columns titles
myCols->Append(TCollection_ExtendedString(""));
}
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
+
}
void SALOMEDSImpl_AttributeTableOfInteger::SetTitle(const TCollection_ExtendedString& theTitle)
CheckLocked();
Backup();
myTitle = theTitle;
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
TCollection_ExtendedString SALOMEDSImpl_AttributeTableOfInteger::GetTitle() const
}
if(theRow > myNbRows) myNbRows = theRow;
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
Handle(TColStd_HSequenceOfInteger) SALOMEDSImpl_AttributeTableOfInteger::GetRowData(const Standard_Integer theRow)
aTitle += aUnit;
}
myRows->SetValue(theRow, aTitle);
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
void SALOMEDSImpl_AttributeTableOfInteger::SetRowUnit(const Standard_Integer theRow,
aTitle += theUnit;
myRows->SetValue(theRow, aTitle);
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
void SALOMEDSImpl_AttributeTableOfInteger::SetRowUnits(const Handle(TColStd_HSequenceOfExtendedString)& theUnits)
if (theUnits->Length() != GetNbRows()) Standard_Failure::Raise("Invalid number of rows");
int aLength = theUnits->Length(), i;
for(i = 1; i <= aLength; i++) SetRowUnit(i, theUnits->Value(i));
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
Handle(TColStd_HSequenceOfExtendedString) SALOMEDSImpl_AttributeTableOfInteger::GetRowUnits()
if (theTitles->Length() != GetNbRows()) Standard_Failure::Raise("Invalid number of rows");
int aLength = theTitles->Length(), i;
for(i = 1; i <= aLength; i++) SetRowTitle(i, theTitles->Value(i));
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
Handle(TColStd_HSequenceOfExtendedString) SALOMEDSImpl_AttributeTableOfInteger::GetRowTitles()
myRows->Append(TCollection_ExtendedString(""));
}
}
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
Backup();
while(myCols->Length() < theColumn) myCols->Append(TCollection_ExtendedString(""));
myCols->SetValue(theColumn,theTitle);
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
TCollection_ExtendedString SALOMEDSImpl_AttributeTableOfInteger::GetColumnTitle(const Standard_Integer theColumn) const
if (theTitles->Length() != myNbColumns) Standard_Failure::Raise("Invalid number of columns");
int aLength = theTitles->Length(), i;
for(i = 1; i <= aLength; i++) myCols->SetValue(i, theTitles->Value(i));
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
Handle(TColStd_HSequenceOfExtendedString) SALOMEDSImpl_AttributeTableOfInteger::GetColumnTitles()
}
myNbRows = theRow;
}
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
Standard_Boolean SALOMEDSImpl_AttributeTableOfInteger::HasValue(const Standard_Integer theRow,
while (myCols->Length() < myNbColumns) { // append empty columns titles
myCols->Append(TCollection_ExtendedString(""));
}
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
void SALOMEDSImpl_AttributeTableOfReal::SetTitle(const TCollection_ExtendedString& theTitle)
CheckLocked();
Backup();
myTitle = theTitle;
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
TCollection_ExtendedString SALOMEDSImpl_AttributeTableOfReal::GetTitle() const
}
if(theRow > myNbRows) myNbRows = theRow;
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
Handle(TColStd_HSequenceOfReal) SALOMEDSImpl_AttributeTableOfReal::GetRowData(const Standard_Integer theRow)
aTitle += aUnit;
}
myRows->SetValue(theRow, aTitle);
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
void SALOMEDSImpl_AttributeTableOfReal::SetRowUnit(const Standard_Integer theRow,
aTitle += theUnit;
myRows->SetValue(theRow, aTitle);
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
void SALOMEDSImpl_AttributeTableOfReal::SetRowUnits(const Handle(TColStd_HSequenceOfExtendedString)& theUnits)
if (theUnits->Length() != GetNbRows()) Standard_Failure::Raise("Invalid number of rows");
int aLength = theUnits->Length(), i;
for(i = 1; i <= aLength; i++) SetRowUnit(i, theUnits->Value(i));
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
Handle(TColStd_HSequenceOfExtendedString) SALOMEDSImpl_AttributeTableOfReal::GetRowUnits()
if (theTitles->Length() != GetNbRows()) Standard_Failure::Raise("Invalid number of rows");
int aLength = theTitles->Length(), i;
for(i = 1; i <= aLength; i++) SetRowTitle(i, theTitles->Value(i));
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
Handle(TColStd_HSequenceOfExtendedString) SALOMEDSImpl_AttributeTableOfReal::GetRowTitles()
myRows->Append(TCollection_ExtendedString(""));
}
}
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
Backup();
while(myCols->Length() < theColumn) myCols->Append(TCollection_ExtendedString(""));
myCols->SetValue(theColumn,theTitle);
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
TCollection_ExtendedString SALOMEDSImpl_AttributeTableOfReal::GetColumnTitle(const Standard_Integer theColumn) const
if (theTitles->Length() != myNbColumns) Standard_Failure::Raise("Invalid number of columns");
int aLength = theTitles->Length(), i;
for(i = 1; i <= aLength; i++) myCols->SetValue(i, theTitles->Value(i));
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
Handle(TColStd_HSequenceOfExtendedString) SALOMEDSImpl_AttributeTableOfReal::GetColumnTitles()
}
myNbRows = theRow;
}
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
Standard_Boolean SALOMEDSImpl_AttributeTableOfReal::HasValue(const Standard_Integer theRow,
while (myCols->Length() < myNbColumns) { // append empty columns titles
myCols->Append(TCollection_ExtendedString(""));
}
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
void SALOMEDSImpl_AttributeTableOfString::SetRowTitle(const Standard_Integer theRow,
aTitle += aUnit;
}
myRows->SetValue(theRow, aTitle);
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
void SALOMEDSImpl_AttributeTableOfString::SetRowUnit(const Standard_Integer theRow,
aTitle += theUnit;
myRows->SetValue(theRow, aTitle);
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
void SALOMEDSImpl_AttributeTableOfString::SetRowUnits(const Handle(TColStd_HSequenceOfExtendedString)& theUnits)
if (theTitles->Length() != GetNbRows()) Standard_Failure::Raise("Invalid number of rows");
int aLength = theTitles->Length(), i;
for(i = 1; i <= aLength; i++) SetRowTitle(i, theTitles->Value(i));
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
Handle(TColStd_HSequenceOfExtendedString) SALOMEDSImpl_AttributeTableOfString::GetRowTitles()
}
if(theRow > myNbRows) myNbRows = theRow;
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
void SALOMEDSImpl_AttributeTableOfString::SetTitle(const TCollection_ExtendedString& theTitle)
CheckLocked();
Backup();
myTitle = theTitle;
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
TCollection_ExtendedString SALOMEDSImpl_AttributeTableOfString::GetTitle() const
myRows->Append(TCollection_ExtendedString(""));
}
}
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
Backup();
while(myCols->Length() < theColumn) myCols->Append(TCollection_ExtendedString(""));
myCols->SetValue(theColumn,theTitle);
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
TCollection_ExtendedString SALOMEDSImpl_AttributeTableOfString::GetColumnTitle(const Standard_Integer theColumn) const
if (theTitles->Length() != myNbColumns) Standard_Failure::Raise("Invalid number of columns");
int aLength = theTitles->Length(), i;
for(i = 1; i <= aLength; i++) myCols->SetValue(i, theTitles->Value(i));
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
Handle(TColStd_HSequenceOfExtendedString) SALOMEDSImpl_AttributeTableOfString::GetColumnTitles()
}
myNbRows = theRow;
}
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
Standard_Boolean SALOMEDSImpl_AttributeTableOfString::HasValue(const Standard_Integer theRow,
Backup();
myRelation = theRelation;
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
//=======================================================================
for(;anIter.More();anIter.Next()) if(anIter.Value()->Label() == aRefLabel) return; //BugID: PAL6192
GetVariables().Append(aReference);
}
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
//=======================================================================
return;
}
}
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
//=======================================================================
myValue->SetValue(1, R);
myValue->SetValue(2, G);
myValue->SetValue(3, B);
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
//=======================================================================
for(int i = 1; i <= 3; i++)
myValue->SetValue(i, newArray->Value(i));
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
//=======================================================================
myValue->SetValue(1, R);
myValue->SetValue(2, G);
myValue->SetValue(3, B);
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
//=======================================================================
for(int i = 1; i <= 3; i++)
myValue->SetValue(i, newArray->Value(i));
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
//=======================================================================
}
// Set Father
TN->SetFather(this);
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
+
return !TN.IsNull();
}
}
TN->SetFather(this);
SetFirst(TN);
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
+
return !TN.IsNull();
}
GetPrevious()->SetNext(TN);
SetPrevious(TN);
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
+
return !TN.IsNull();
}
if (HasNext()) GetNext()->SetPrevious(TN);
SetNext(TN);
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
+
return !TN.IsNull();
}
SetNext(bid);
SetPrevious(bid);
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
+
return Standard_True;
}
void SALOMEDSImpl_AttributeTreeNode::SetTreeID (const Standard_GUID& explicitID)
{
myTreeID = explicitID;
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
CheckLocked();
Backup();
myFather = F;
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
//=======================================================================
CheckLocked();
Backup();
myNext = F;
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
CheckLocked();
Backup();
myPrevious = F;
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
//=======================================================================
CheckLocked();
Backup();
myFirst = F;
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
//=======================================================================
Backup();
myID = guid;
+
+ SetModifyFlag(); //SRN: Mark the study as being modified, so it could be saved
}
//=======================================================================
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();
+}
+
Standard_EXPORT virtual void CheckLocked();
Standard_EXPORT TCollection_AsciiString GetClassType() { return _type; }
Standard_EXPORT Handle(SALOMEDSImpl_SObject) GetSObject();
+Standard_EXPORT void SetModifyFlag();
Standard_EXPORT static char* Impl_GetType(const Handle(TDF_Attribute)& theAttr);
Standard_EXPORT static char* Impl_GetClassType(const Handle(TDF_Attribute)& theAttr);
return;
}
+
+void SALOMEDSImpl_Study::Modify()
+{
+ _errorCode = "";
+ _doc->Modify();
+}
//The method dump creates a txt file that contain a dump of the study, for debug use
Standard_EXPORT void dump(const TCollection_AsciiString& theFileName);
+ //This method marks the study as being modified
+ Standard_EXPORT void Modify();
+
public:
DEFINE_STANDARD_RTTI( SALOMEDSImpl_Study )
if(!_callbackOnRemove.IsNull() && Lab.IsDescendant(_doc->Main())) _callbackOnRemove->OnRemoveSObject(me);
- _doc->Modify();
-
return true;
}