Last change
on this file since 770138 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
|
Rev | Line | |
---|
[96d8dc] | 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 |
|
---|
[e9f2e1] | 13 | #include "Patterns/Singleton.hpp"
|
---|
| 14 |
|
---|
[96d8dc] | 15 | using namespace std;
|
---|
| 16 |
|
---|
| 17 | class Verbose;
|
---|
| 18 |
|
---|
[e9f2e1] | 19 | class errorLogger : public Singleton<errorLogger>{
|
---|
| 20 | friend class Singleton<errorLogger>;
|
---|
[96d8dc] | 21 | public :
|
---|
| 22 | static ostream *nix;
|
---|
| 23 | static int verbosity;
|
---|
| 24 |
|
---|
| 25 | static bool DoOutput();
|
---|
| 26 | static void setVerbosity(int verbosityLevel);
|
---|
| 27 |
|
---|
| 28 | protected:
|
---|
| 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 |
|
---|
| 36 | ostream& operator<<(class errorLogger&l, const Verbose& ost);
|
---|
| 37 | ostream& operator<<(class errorLogger*l, const Verbose& ost);
|
---|
| 38 |
|
---|
| 39 | #endif /* ERRORLOGGER_HPP_ */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.