source: molecuilder/src/errorlogger.hpp@ a71ad8

Last change on this file since a71ad8 was e9f2e1, checked in by Tillmann Crueger <crueger@…>, 15 years ago

Made the errorLogger use the new Singleton framework

  • Property mode set to 100644
File size: 807 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 <iostream>
12
13#include "Patterns/Singleton.hpp"
14
15using namespace std;
16
17class Verbose;
18
19class errorLogger : public Singleton<errorLogger>{
20 friend class Singleton<errorLogger>;
21public :
22 static ostream *nix;
23 static int verbosity;
24
25 static bool DoOutput();
26 static void setVerbosity(int verbosityLevel);
27
28protected:
29 /** Do not call this constructor directly, use getInstance() instead. */
30 errorLogger();
31 /** Do not call this destructor directly, use purgeInstance() instead. */
32 ~errorLogger();
33
34};
35
36ostream& operator<<(class errorLogger&l, const Verbose& ost);
37ostream& operator<<(class errorLogger*l, const Verbose& ost);
38
39#endif /* ERRORLOGGER_HPP_ */
Note: See TracBrowser for help on using the repository browser.