| 
            Last change
 on this file since bbd746 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
           | 
        
      
      
| Rev | Line |   | 
|---|
| [a80f419] | 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 | 
 | 
|---|
| [70672e3] | 11 | // include config.h
 | 
|---|
 | 12 | #ifdef HAVE_CONFIG_H
 | 
|---|
 | 13 | #include <config.h>
 | 
|---|
 | 14 | #endif
 | 
|---|
| [a80f419] | 15 | 
 | 
|---|
| [93abe8] | 16 | #include <string>
 | 
|---|
 | 17 | 
 | 
|---|
 | 18 | class ChronosTest;
 | 
|---|
 | 19 | 
 | 
|---|
| [a80f419] | 20 | /*********************************************** includes ***********************************/
 | 
|---|
 | 21 | 
 | 
|---|
 | 22 | /****************************************** forward declarations *****************************/
 | 
|---|
 | 23 | 
 | 
|---|
 | 24 | /********************************************** definitions *********************************/
 | 
|---|
 | 25 | 
 | 
|---|
 | 26 | class Info {
 | 
|---|
| [93abe8] | 27 |   //!> unit tests needs access to some internals
 | 
|---|
 | 28 |   friend class ChronosTest;
 | 
|---|
| [a80f419] | 29 | public :
 | 
|---|
 | 30 |   static int verbosity;
 | 
|---|
| [93abe8] | 31 |   const std::string FunctionName;
 | 
|---|
| [a80f419] | 32 | 
 | 
|---|
 | 33 |   Info(const char *msg);
 | 
|---|
 | 34 |   ~Info();
 | 
|---|
 | 35 |   static void setVerbosity(int verbosityLevel);
 | 
|---|
 | 36 | 
 | 
|---|
| [93abe8] | 37 | private:
 | 
|---|
 | 38 |   static class Chronos * timekeeper;
 | 
|---|
 | 39 |   static bool ChronosBlocker;
 | 
|---|
 | 40 |   static size_t NumberInfos;
 | 
|---|
| [a80f419] | 41 | };
 | 
|---|
 | 42 | 
 | 
|---|
 | 43 | #endif /* INFO_HPP_ */
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.