Changes in src/logger.hpp [06c7a3:aee1a3]
- File:
-
- 1 edited
-
src/logger.hpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/logger.hpp
r06c7a3 raee1a3 11 11 #include <iostream> 12 12 13 #include "Patterns/Singleton.hpp" 14 13 15 using namespace std; 14 16 15 17 class Verbose; 16 18 17 class logger { 19 class logger : public Singleton<logger> { 20 friend class Singleton<logger>; 18 21 public : 19 22 static ostream *nix; 20 23 static int verbosity; 21 24 22 static logger* getInstance();23 static void purgeInstance();24 25 static bool DoOutput(); 25 26 static void setVerbosity(int verbosityLevel); … … 30 31 /** Do not call this destructor directly, use purgeInstance() instead. */ 31 32 ~logger(); 32 33 private:34 static logger* instance;35 33 }; 36 34
Note:
See TracChangeset
for help on using the changeset viewer.
