| 
            Last change
 on this file since 115378 was             115378, checked in by Frederik Heber <heber@…>, 15 years ago           | 
        
        
          | 
             
Changes to allow for (re-)incorporation of CodePatterns into MoleCuilder. 
 
library: 
 
- no more suffixed with version, this should be dealt by pkg-config (.pc) or a
contained version information.
 - corrected and extended .pc file
 - m4 macro ax_codepatterns.m4 created to allow for easy checking with autotools
 
 
codepatterns-config: 
 
- if pkg-config fails there is a small tool that tells about necessary cflags
and the likes to compile with CodePatterns library (this was developed before
we noticed we had a (half-)working pkg-config present).
 
 
smaller changes: 
 
- moved all Helpers files to src/Helpers (again).
 - changed include paths for Assert.hpp, ... accordingly.
 - version is not prefixed with "v" anymore.
 - small stuff in fast_functions.hpp is absolete (stl::algorithms)
 - Helpers/enumeration.hpp contains enumeration class ("iterable enum")
  
           | 
        
        
          
            
              - 
Property                 mode
 set to                 
100644
               
             
           | 
        
        
          | 
            File size:
            779 bytes
           | 
        
      
      
| Rev | Line |   | 
|---|
| [a80f419] | 1 | /*
 | 
|---|
 | 2 |  * logger.hpp
 | 
|---|
 | 3 |  *
 | 
|---|
 | 4 |  *  Created on: Oct 19, 2009
 | 
|---|
 | 5 |  *      Author: metzler
 | 
|---|
 | 6 |  */
 | 
|---|
 | 7 | 
 | 
|---|
 | 8 | #ifndef LOGGER_HPP_
 | 
|---|
 | 9 | #define LOGGER_HPP_
 | 
|---|
 | 10 | 
 | 
|---|
 | 11 | #include <iosfwd>
 | 
|---|
 | 12 | 
 | 
|---|
 | 13 | #include "Patterns/Singleton.hpp"
 | 
|---|
 | 14 | 
 | 
|---|
 | 15 | using namespace std;
 | 
|---|
 | 16 | 
 | 
|---|
 | 17 | class Verbose;
 | 
|---|
 | 18 | 
 | 
|---|
 | 19 | class logger : public Singleton<logger> {
 | 
|---|
 | 20 |   friend class Singleton<logger>;
 | 
|---|
 | 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 |   logger();
 | 
|---|
 | 32 |   /** Do not call this destructor directly, use purgeInstance() instead. */
 | 
|---|
 | 33 |   ~logger();
 | 
|---|
 | 34 | };
 | 
|---|
 | 35 | 
 | 
|---|
 | 36 | ostream& operator<<(class logger&l, const Verbose& ost);
 | 
|---|
 | 37 | ostream& operator<<(class logger*l, const Verbose& ost);
 | 
|---|
 | 38 | 
 | 
|---|
 | 39 | #endif /* LOGGER_HPP_ */
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.