| Last change
 on this file since 8e24ef was             93abe8, checked in by Frederik Heber <heber@…>, 15 years ago | 
        
          | 
Added static and private object counter Info::NumberInfos.
 | 
        
          | 
              
Property                 mode
 set to                 100644 | 
        
          | File size:
            883 bytes | 
      
      
| Line |  | 
|---|
| 1 | /* | 
|---|
| 2 | * Info.hpp | 
|---|
| 3 | * | 
|---|
| 4 | *  Created on: Nov 25, 2009 | 
|---|
| 5 | *      Author: heber | 
|---|
| 6 | */ | 
|---|
| 7 |  | 
|---|
| 8 | #ifndef INFO_HPP_ | 
|---|
| 9 | #define INFO_HPP_ | 
|---|
| 10 |  | 
|---|
| 11 | // include config.h | 
|---|
| 12 | #ifdef HAVE_CONFIG_H | 
|---|
| 13 | #include <config.h> | 
|---|
| 14 | #endif | 
|---|
| 15 |  | 
|---|
| 16 | #include <string> | 
|---|
| 17 |  | 
|---|
| 18 | class ChronosTest; | 
|---|
| 19 |  | 
|---|
| 20 | /*********************************************** includes ***********************************/ | 
|---|
| 21 |  | 
|---|
| 22 | /****************************************** forward declarations *****************************/ | 
|---|
| 23 |  | 
|---|
| 24 | /********************************************** definitions *********************************/ | 
|---|
| 25 |  | 
|---|
| 26 | class Info { | 
|---|
| 27 | //!> unit tests needs access to some internals | 
|---|
| 28 | friend class ChronosTest; | 
|---|
| 29 | public : | 
|---|
| 30 | static int verbosity; | 
|---|
| 31 | const std::string FunctionName; | 
|---|
| 32 |  | 
|---|
| 33 | Info(const char *msg); | 
|---|
| 34 | ~Info(); | 
|---|
| 35 | static void setVerbosity(int verbosityLevel); | 
|---|
| 36 |  | 
|---|
| 37 | private: | 
|---|
| 38 | static class Chronos * timekeeper; | 
|---|
| 39 | static bool ChronosBlocker; | 
|---|
| 40 | static size_t NumberInfos; | 
|---|
| 41 | }; | 
|---|
| 42 |  | 
|---|
| 43 | #endif /* INFO_HPP_ */ | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.