| Last change
 on this file since a80f419 was             a80f419, checked in by Frederik Heber <heber@…>, 15 years ago | 
        
          | 
First version.
 
Everything was extracted from project MoleCuilder and adapted such that itruns on its own (i.e. new configure.ac, Makefile.am structure, stuff for
 libtool versioning, ...)
 
 | 
        
          | 
              
Property                 mode
 set to                 100644 | 
        
          | File size:
            834 bytes | 
      
      
| Line |  | 
|---|
| 1 | /* | 
|---|
| 2 | * errorLogger.hpp | 
|---|
| 3 | * | 
|---|
| 4 | *  Created on: Oct 19, 2009 | 
|---|
| 5 | *      Author: metzler | 
|---|
| 6 | */ | 
|---|
| 7 |  | 
|---|
| 8 | #ifndef ERRORLOGGER_HPP_ | 
|---|
| 9 | #define ERRORLOGGER_HPP_ | 
|---|
| 10 |  | 
|---|
| 11 | #include <iosfwd> | 
|---|
| 12 |  | 
|---|
| 13 | #include "Patterns/Singleton.hpp" | 
|---|
| 14 |  | 
|---|
| 15 | using namespace std; | 
|---|
| 16 |  | 
|---|
| 17 | class Verbose; | 
|---|
| 18 |  | 
|---|
| 19 | class errorLogger : public Singleton<errorLogger>{ | 
|---|
| 20 | friend class Singleton<errorLogger>; | 
|---|
| 21 | public : | 
|---|
| 22 | static ostream *nix; | 
|---|
| 23 | static int verbosity; | 
|---|
| 24 |  | 
|---|
| 25 | static bool DoOutput(); | 
|---|
| 26 | static void setVerbosity(int verbosityLevel); | 
|---|
| 27 | static int getVerbosity(); | 
|---|
| 28 |  | 
|---|
| 29 | protected: | 
|---|
| 30 | /** Do not call this constructor directly, use getInstance() instead. */ | 
|---|
| 31 | errorLogger(); | 
|---|
| 32 | /** Do not call this destructor directly, use purgeInstance() instead. */ | 
|---|
| 33 | ~errorLogger(); | 
|---|
| 34 |  | 
|---|
| 35 | }; | 
|---|
| 36 |  | 
|---|
| 37 | ostream& operator<<(class errorLogger&l, const Verbose& ost); | 
|---|
| 38 | ostream& operator<<(class errorLogger*l, const Verbose& ost); | 
|---|
| 39 |  | 
|---|
| 40 | #endif /* ERRORLOGGER_HPP_ */ | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.