// File: TestTopOpeTools_Trace.cxx // Created: Mon Aug 1 12:13:25 1994 // Author: Jean Yves LEBEY // #include TestTopOpeTools_Trace::TestTopOpeTools_Trace (const Standard_Integer nbmaxentry, const TCollection_AsciiString& genre) : mygenre(genre), myfirstentry(1),mynbmaxentry(nbmaxentry),mynbentries(0), myflag(myfirstentry,mynbmaxentry), myfunc(myfirstentry,mynbmaxentry), myftyp(myfirstentry,mynbmaxentry), myverbose(Standard_False), myfverbose(myfirstentry,mynbmaxentry) {} TestTopOpeTools_Trace::TestTopOpeTools_Trace (const Standard_Integer nbmaxentry) : mygenre("flag"), myfirstentry(1),mynbmaxentry(nbmaxentry),mynbentries(0), myflag(myfirstentry,mynbmaxentry), myfunc(myfirstentry,mynbmaxentry), myftyp(myfirstentry,mynbmaxentry), myverbose(Standard_False), myfverbose(myfirstentry,mynbmaxentry) {} Standard_Integer TestTopOpeTools_Trace::Add (const t_flag flag,tf_value func) { return Add(flag,(tf_value)func,te_value); } Standard_Integer TestTopOpeTools_Trace::SetVerbose (const Standard_Boolean b) { myverbose = b; return 0;} Standard_Integer TestTopOpeTools_Trace::SetVerbose (const t_flag flag,const Standard_Boolean b) { Standard_Integer index; if ( !Exist(flag,index) ) return 1; if (b) cout<<"set "<= mynbmaxentry) ) return 1; mynbentries++; myflag.SetValue(mynbentries,flag); myfunc.SetValue(mynbentries,(long)func); myftyp.SetValue(mynbentries,(Standard_Integer)ftyp); myfverbose.SetValue(mynbentries,Standard_False); return 0; }