mygenre(genre),
myfirstentry(1),mynbmaxentry(nbmaxentry),mynbentries(0),
myflag(myfirstentry,mynbmaxentry),
- myfunc(myfirstentry,mynbmaxentry),
myftyp(myfirstentry,mynbmaxentry),
myverbose(Standard_False),
myfverbose(myfirstentry,mynbmaxentry)
mygenre("flag"),
myfirstentry(1),mynbmaxentry(nbmaxentry),mynbentries(0),
myflag(myfirstentry,mynbmaxentry),
-myfunc(myfirstentry,mynbmaxentry),
myftyp(myfirstentry,mynbmaxentry),
myverbose(Standard_False),
myfverbose(myfirstentry,mynbmaxentry)
(const tf_value func, Standard_Integer& index)
{
for (Standard_Integer i=myfirstentry; i<=mynbentries; i++)
- if (myfunc.Value(i) == ((long)func)) { index = i; return Standard_True; }
+ if (myfunc.Value(i) == func) { index = i; return Standard_True; }
return Standard_False;
}
{ return (t_flag)myflag.Value(index); }
const tf_value TestTopOpeTools_Trace::Getfunc(const Standard_Integer index)
-{ return (tf_value)myfunc.Value(index); }
+{ return myfunc.Value(index); }
const te_ftyp TestTopOpeTools_Trace::Getftyp(const Standard_Integer index)
{
if ( Exist(flag,index) || ( mynbentries >= mynbmaxentry) ) return 1;
mynbentries++;
myflag.SetValue(mynbentries,flag);
- myfunc.SetValue(mynbentries,(long)func);
+ myfunc.SetValue(mynbentries,func);
myftyp.SetValue(mynbentries,(Standard_Integer)ftyp);
myfverbose.SetValue(mynbentries,Standard_False);
return 0;
#ifndef _TestTopOpeTools_Trace_HeaderFile
#define _TestTopOpeTools_Trace_HeaderFile
+#include <NCollection_Vector.hxx>
#include <TCollection_AsciiString.hxx>
#include <TColStd_Array1OfAsciiString.hxx>
#include <TColStd_Array1OfInteger.hxx>
// ==== Fields
- TCollection_AsciiString mygenre;
- Standard_Integer myfirstentry,mynbmaxentry,mynbentries;
- TColStd_Array1OfAsciiString myflag;
- TColStd_Array1OfInteger myfunc;
- TColStd_Array1OfInteger myftyp;
- Standard_Boolean myverbose;
- TColStd_Array1OfBoolean myfverbose;
+ TCollection_AsciiString mygenre;
+ Standard_Integer myfirstentry,mynbmaxentry,mynbentries;
+ TColStd_Array1OfAsciiString myflag;
+ NCollection_Vector<tf_value> myfunc;
+ TColStd_Array1OfInteger myftyp;
+ Standard_Boolean myverbose;
+ TColStd_Array1OfBoolean myfverbose;
+
};
#endif