//============================================================================
SALOMEDSImpl_SComponent SALOMEDSImpl_StudyBuilder::NewComponent(const std::string& DataType)
{
+ std::cerr << "I'm here newComponent " << std::endl;
_errorCode = "";
CheckLocked();
-
+
SALOMEDSImpl_SComponent sco;
if(DataType.size() == 0) return sco;
//============================================================================
SALOMEDSImpl_SObject SALOMEDSImpl_StudyBuilder::NewObject(const SALOMEDSImpl_SObject& theFatherObject)
{
+ std::cerr << "I'm here newObject " << std::endl;
_errorCode = "";
CheckLocked();
}
if(_callbackOnRemove) _callbackOnRemove->OnRemoveSObject(anObject);
- _study->removeSO_Notification(anObject);
DF_Label Lab = anObject.GetLabel();
Lab.ForgetAllAttributes();
_doc->SetModified(true);
+ _study->removeSO_Notification(anObject);
return true;
}
}
if(_callbackOnRemove) _callbackOnRemove->OnRemoveSObject(anObject);
- _study->removeSO_Notification(anObject);
DF_Label Lab = anObject.GetLabel();
Lab.ForgetAllAttributes(true);
_doc->SetModified(true);
+ _study->removeSO_Notification(anObject);
return true;
}
} else {
_errorCode = "No persistent file";
}
-
+
return true;
}
Lab.ForgetAttribute (SALOMEDSImpl_SObject::GetGUID(aTypeOfAttribute));
_doc->SetModified(true);
+ _study->modifySO_Notification(anObject);
return true;
}