//=======================================================================
//function : NewEmpty
-//purpose :
+//purpose :
//=======================================================================
Handle(TDF_Attribute) BinMDataStd_NamedDataDriver::NewEmpty() const
{
Handle(TColStd_HArray1OfInteger) aTargetArray = new TColStd_HArray1OfInteger (low, up);
if(!theSource.GetIntArray (&(aTargetArray->ChangeArray1())(low), up-low+1))
return Standard_False;
-
+
Standard_Boolean Ok = anIntArrays.Bind(aKey, aTargetArray);
aResult |= Ok;
}
}
- if (aResult)
+ if (aResult)
T->ChangeArraysOfIntegers(anIntArrays);
}
Standard_Integer low, up;
if (! (theSource >> low >> up))
return Standard_False;
- if(up < low) Standard_False;
+ if (up < low)
+ return Standard_False;
if(low | up) {
Handle(TColStd_HArray1OfReal) aTargetArray =
new TColStd_HArray1OfReal(low, up);
Handle(TDataStd_NamedData) S = Handle(TDataStd_NamedData)::DownCast (theSource);
if(S.IsNull()) return;
// Standard_Integer i=0;
-
+
if(S->HasIntegers() && !S->GetIntegersContainer().IsEmpty()) {
theTarget.PutInteger(1) << S->GetIntegersContainer().Extent(); //dim
TColStd_DataMapIteratorOfDataMapOfStringInteger itr(S->GetIntegersContainer());
} else {
theTarget.PutInteger(0).PutInteger(0);
}
-
+
if(S->HasReals() && !S->GetRealsContainer().IsEmpty()) {
theTarget.PutInteger(1) << S->GetRealsContainer().Extent();
TDataStd_DataMapIteratorOfDataMapOfStringReal itr(S->GetRealsContainer());