Update of /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv1598
Modified Files:
libcompbenchmarks.cpp libcompbenchmarks.h
Log Message:
Verbosity (of displayed XML messages) can be changed by command line option.
Simplified interface.
Index: libcompbenchmarks.h
===================================================================
RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/libcompbenchmarks.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** libcompbenchmarks.h 26 Jan 2007 01:48:07 -0000 1.2
--- libcompbenchmarks.h 7 Jun 2007 16:22:31 -0000 1.3
***************
*** 25,31 ****
namespace CBM {
! /** Enable/disable verbosity
! * \sa UO_verbose */
! extern void setVerbosity(int v);
/** Defines version of the libcompbenchmarks library */
--- 25,32 ----
namespace CBM {
!
! typedef enum Verbosity {
! None, Basic, All
! };
/** Defines version of the libcompbenchmarks library */
***************
*** 38,50 ****
extern int UO_force;
! /** Verbose mode.
! * If set to 0, disable verbose mode (UI messages disabled). */
! extern int UO_verbose;
extern int UO_verbose_dl;
-
- /** Enable exits on fatal error.
- * Set to 1 in Perl wrapper; defaults to 0. */
- extern int UO_fatal;
}
--- 39,46 ----
extern int UO_force;
! /** Verbosity flag */
! extern Verbosity UO_verbose;
extern int UO_verbose_dl;
}
Index: libcompbenchmarks.cpp
===================================================================
RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/libcompbenchmarks.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** libcompbenchmarks.cpp 17 Apr 2007 18:22:05 -0000 1.3
--- libcompbenchmarks.cpp 7 Jun 2007 16:22:31 -0000 1.4
***************
*** 11,22 ****
char *CBM::libcompbenchmarks_version = VERSION;
! int CBM::UO_enableTestSuite = 1;
! int CBM::UO_force = 0;
! int CBM::UO_verbose = 1;
! int CBM::UO_verbose_dl = 0;
! int CBM::UO_fatal = 1;
- void CBM::setVerbosity(int v)
- {
- CBM::UO_verbose=v;
- }
--- 11,17 ----
char *CBM::libcompbenchmarks_version = VERSION;
! int CBM::UO_enableTestSuite = 1;
! int CBM::UO_force = 0;
! CBM::Verbosity CBM::UO_verbose = CBM::Basic;
! int CBM::UO_verbose_dl = 0;
|