#include <TColStd_ListOfInteger.hxx>
#include <TColStd_ListIteratorOfListOfInteger.hxx>
#include <TDF_AttributeIterator.hxx>
-#ifdef DEB
+#ifdef OCCT_DEBUG
#define MAXUP 1000
#endif
//=======================================================================
Handle(TColStd_HArray1OfInteger) Arr1, Arr2;
Arr1 = OldAtt->Array();
Arr2 = CurrAtt->Array();
-#ifdef DEB
+#ifdef OCCT_DEBUG
if(Arr1.IsNull())
cout <<"DeltaOnModificationOfIntArray:: Old IntArray is Null" <<endl;
if(Arr2.IsNull())
}
}
OldAtt->RemoveArray();
-#ifdef DEB
+#ifdef OCCT_DEBUG
if(OldAtt->Array().IsNull())
cout << "BackUp Arr is Nullified" << endl;
#endif
{
Handle(TDF_Attribute) TDFAttribute = Attribute();
- Handle(TDataStd_IntegerArray) BackAtt = (*((Handle(TDataStd_IntegerArray)*)&TDFAttribute));
+ Handle(TDataStd_IntegerArray) BackAtt = Handle(TDataStd_IntegerArray)::DownCast (TDFAttribute);
if(BackAtt.IsNull()) {
-#ifdef DEB
+#ifdef OCCT_DEBUG
cout << "DeltaOnModificationOfIntArray::Apply: OldAtt is Null" <<endl;
#endif
return;
}
if(aCurAtt.IsNull()) {
-#ifdef DEB
+#ifdef OCCT_DEBUG
cout << "DeltaOnModificationOfIntArray::Apply: CurAtt is Null" <<endl;
#endif
return;
intArr->SetValue(i, IntArr->Value(i));
if(!myIndxes.IsNull() && !myValues.IsNull())
for(i = 1; i <= myIndxes->Upper();i++) {
-#ifdef DEB
+#ifdef OCCT_DEBUG
cout << "i = " << i << " myIndxes->Upper = " << myIndxes->Upper() << endl;
cout << "myIndxes->Value(i) = " << myIndxes->Value(i) << endl;
cout << "myValues->Value(i) = " << myValues->Value(i) << endl;
aCurAtt->myValue = intArr;
}
-#ifdef DEB
+#ifdef OCCT_DEBUG
cout << " << Array Dump after Delta Apply >>" <<endl;
Handle(TColStd_HArray1OfInteger) IntArr2 = aCurAtt->Array();
for(i=IntArr2->Lower(); i<=IntArr2->Upper() && i <= MAXUP;i++)