[Compbench-devel] CompBenchmarks++/System System.cpp, 1.18, 1.19 System.h, 1.17, 1.18
Brought to you by:
xfred
From: Frederic T. <xf...@us...> - 2007-01-15 17:39:43
|
Update of /cvsroot/compbench/CompBenchmarks++/System In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27307 Modified Files: System.cpp System.h Log Message: Internal methods to display all packages and benchmarks informations. Index: System.cpp =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/System/System.cpp,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** System.cpp 11 Jan 2007 20:34:56 -0000 1.18 --- System.cpp 15 Jan 2007 17:39:32 -0000 1.19 *************** *** 220,223 **** --- 220,254 ---- } + void CBMSystem::displayAllPackages(void) + { + int i; + int n = packageNumber(); + CBMPackage *P; + + for(i=0; i<n; i++) { + P=Package(i); + P->display(); + } + } + + void CBMSystem::displayAllBenchmarks(void) + { + int i; + int n = packageNumber(); + int j; + int m; + CBMPackage *P; + CBMBenchmark *B; + + for(i=0; i<n; i++) { + P=Package(i); + m=P->benchmarkNumber(); + for(j=0; j<m; j++) { + B=P->Benchmark(i); + B->display(); + } + } + } + std::string CBMSystem::Split(const std::string& str, const std::string& delim, unsigned int wantedIndex) { Index: System.h =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/System/System.h,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** System.h 10 Jan 2007 18:04:30 -0000 1.17 --- System.h 15 Jan 2007 17:39:32 -0000 1.18 *************** *** 141,144 **** --- 141,147 ---- virtual class CBMBenchmark *Benchmark(std::string bid); + virtual void displayAllPackages(void); + virtual void displayAllBenchmarks(void); + /** Split a std::string. * Split given string as sub-strings, according to an arbitrary delimiter. |