//
// This file is part of Open CASCADE Technology software library.
//
-// This library is free software; you can redistribute it and / or modify it
-// under the terms of the GNU Lesser General Public version 2.1 as published
+// This library is free software; you can redistribute it and/or modify it under
+// the terms of the GNU Lesser General Public License version 2.1 as published
// by the Free Software Foundation, with special exception defined in the file
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
// distribution for complete text of the license and disclaimer of any warranty.
TDF_AttributeDeltaList added, forgoten, resumed, removed, modified;
Handle(TDF_AttributeDelta) AD;
if (D->GetUndos().IsEmpty()) {
- di << "no UNDO available" << "\n";
+ di << "no UNDO available\n";
return 0;
}
Handle(TDF_Delta) DELTA = D->GetUndos().Last();
else if (AD->IsKind(STANDARD_TYPE(TDF_DeltaOnRemoval))) {removed.Append(AD);}
else if (AD->IsKind(STANDARD_TYPE(TDF_DeltaOnModification))) {modified.Append(AD);}
else {
- Standard_DomainError::Raise("DDocStd_DumpCommand : unknown delta");
+ throw Standard_DomainError("DDocStd_DumpCommand : unknown delta");
}
}
//
di << "ADDED :";
it.Initialize(added);
if (it.More()) di << "\n";
- else di << " empty" << "\n";
+ else di << " empty\n";
for (;it.More();it.Next()) {
TDF_Tool::Entry (it.Value()->Label(),string);
di << "- " << string.ToCString() << " ";
di << "FORGOTEN :";
it.Initialize(forgoten);
if (it.More()) di << "\n";
- else di << " empty" << "\n";
+ else di << " empty\n";
for (;it.More();it.Next()) {
TDF_Tool::Entry (it.Value()->Label(),string);
di << "- " << string.ToCString() << " ";
di << "RESUMED :";
it.Initialize(resumed);
if (it.More()) di << "\n";
- else di << " empty" << "\n";
+ else di << " empty\n";
for (;it.More();it.Next()) {
TDF_Tool::Entry (it.Value()->Label(),string);
di << "- " << string.ToCString() << " ";
di << "REMOVED :";
it.Initialize(removed);
if (it.More()) di << "\n";
- else di << " empty" << "\n";
+ else di << " empty\n";
for (;it.More();it.Next()) {
TDF_Tool::Entry (it.Value()->Label(),string);
di << "- " << string.ToCString() << " ";
di << "MODIFIED :";
it.Initialize(modified);
if (it.More()) di << "\n";
- else di << " empty" << "\n";
+ else di << " empty\n";
for (;it.More();it.Next()) {
TDF_Tool::Entry (it.Value()->Label(),string);
di << "- " << string.ToCString() << " ";
}
return 0;
}
- di << "TDocStd_DumpCommand : Error" << "\n";
+ di << "TDocStd_DumpCommand : Error\n";
return 1;
}