[Compbench-devel] CompBenchmarks++/libcompbenchmarks/UI UI.cpp, 1.12, 1.13 UI.h, 1.11, 1.12
Brought to you by:
xfred
From: Frederic T. <xf...@us...> - 2007-08-21 19:53:51
|
Update of /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/UI In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv2118 Modified Files: UI.cpp UI.h Log Message: Handles CBM::Result posts. Index: UI.h =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/UI/UI.h,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** UI.h 1 Aug 2007 19:48:38 -0000 1.11 --- UI.h 21 Aug 2007 19:53:48 -0000 1.12 *************** *** 12,15 **** --- 12,16 ---- #include <UI/UI-Msg.h> #include <Base/Thread.h> + #include <Base/Result.h> namespace CBM { *************** *** 74,77 **** --- 75,80 ---- virtual UIMsg *outputInfo(std::string _text); + virtual UIMsg *outputInfo(CBM::Result *_r); + virtual UIMsg *Progress(float _pc); *************** *** 80,84 **** virtual UIMsg *outputKO(std::string _test = ""); - virtual void Display(UIMsg *_msg) = 0; virtual void DisplayProgressUpdate(UIMsg *_msg) = 0; --- 83,86 ---- Index: UI.cpp =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/UI/UI.cpp,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** UI.cpp 1 Aug 2007 19:48:38 -0000 1.12 --- UI.cpp 21 Aug 2007 19:53:48 -0000 1.13 *************** *** 330,335 **** } - - UIMsg *UI::outputInfo(std::string _test) { --- 330,333 ---- *************** *** 341,344 **** --- 339,371 ---- } + UIMsg *UI::outputInfo(CBM::Result *_r) + { + std::string tmp; + UIMsg *msg = currentMsg(); + + tmp="Value="; + tmp+=_r->Value(); + outputInfo(tmp); + + tmp="buildTime="; + tmp+=_r->compilationTime(); + outputInfo(tmp); + + tmp="execTime="; + tmp+=_r->executionTime(); + outputInfo(tmp); + + tmp="Testsuite="; + tmp+=_r->tested(); + outputInfo(tmp); + + + tmp="Tested="; + tmp+=_r->testOk(); + outputInfo(tmp); + + return(msg); + } + UIMsg *UI::Progress(float _pc) { |