[Compbench-devel] CompBenchmarks++ libcompbenchmarks.cpp, 1.1, 1.2 libcompbenchmarks.h, 1.1, 1.2
Brought to you by:
xfred
From: Frederic T. <xf...@us...> - 2006-12-28 13:22:18
|
Update of /cvsroot/compbench/CompBenchmarks++ In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv20039 Modified Files: libcompbenchmarks.cpp libcompbenchmarks.h Log Message: Parametrable verbosity. Index: libcompbenchmarks.h =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** libcompbenchmarks.h 1 Nov 2006 13:20:05 -0000 1.1 --- libcompbenchmarks.h 28 Dec 2006 13:22:15 -0000 1.2 *************** *** 24,27 **** --- 24,31 ---- #endif + /** Enable/disable verbosity + * \sa UO_verbose */ + extern void setVerbosity(int v); + /** Defines version of the libcompbenchmarks library */ extern char *libcompbenchmarks_version; *************** *** 34,36 **** --- 38,45 ---- + /** Verbose mode. + * If set to 0, disable verbose mode (UI messages disabled). */ + extern int UO_verbose; + + #endif Index: libcompbenchmarks.cpp =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** libcompbenchmarks.cpp 1 Nov 2006 13:20:05 -0000 1.1 --- libcompbenchmarks.cpp 28 Dec 2006 13:22:15 -0000 1.2 *************** *** 5,6 **** --- 5,13 ---- int UO_enableTestSuite = 1; int UO_force = 0; + int UO_verbose = 1; + + + void setVerbosity(int v) + { + UO_verbose=v; + } |