Update of /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/Plan
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv13974
Modified Files:
Plan-Batch.cpp
Log Message:
Progress update changes.
store() method moved in Plan object.
Index: Plan-Batch.cpp
===================================================================
RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/Plan/Plan-Batch.cpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** Plan-Batch.cpp 31 Jul 2007 20:58:40 -0000 1.8
--- Plan-Batch.cpp 1 Aug 2007 19:46:18 -0000 1.9
***************
*** 20,25 ****
#include <UI/UI.h>
- #include <libcompbenchmarks.h>
-
using namespace CBM;
--- 20,23 ----
***************
*** 464,467 ****
--- 462,470 ----
}
+ void PlanBatch::setIteration(int _it)
+ {
+ iteration=_it;
+ }
+
CBM::Compiler *PlanBatch::currentCompiler(void)
{
***************
*** 515,518 ****
--- 518,522 ----
return(0);
}
+
C=currentCompiler();
O=currentCompilerOptions();
***************
*** 520,523 ****
--- 524,529 ----
P=B->Package();
+ cbmUI->Progress(((currentIteration())*100.0)/totalIterations());
+
if (!simule) {
bmValue="0";
***************
*** 551,562 ****
iteration++;
! if (!simule) {
! Verbosity b = UO_verbose;
!
! UO_verbose=CBM::None;
! plan->store();
! UO_verbose=b;
! }
!
return(currentIteration()<totalIterations());
}
--- 557,564 ----
iteration++;
! cbmUI->Progress((currentIteration()*100.0)/totalIterations());
! if (currentIteration()==totalIterations())
! cbmUI->outputOK();
!
return(currentIteration()<totalIterations());
}
|