00001
00007 #ifndef DEBUG_H_
00008 #define DEBUG_H_
00009 #include <iostream>
00010
00011 using namespace std;
00012
00014
00022 namespace debug
00023 {
00024
00033 class Debug
00034 {
00035 public:
00037 Debug();
00039 virtual ~Debug();
00048 void SetVerbosity(string verbositystr);
00054 string GetVerbosity();
00070 void Prntdbg(const char* file, int line, const char* function, int verb, string print);
00084 void Prnterr(const char* file, int line, const char* function, string print);
00085
00086
00087
00088
00089
00090 void SetDebug(bool debug, bool debugcode);
00092 void StopDebug();
00094 void StartDebug();
00100 bool isDebugging();
00101
00102 private:
00104 int verbosity;
00106 bool debug
00108 bool debugcode;
00109 };
00110
00111 }
00112
00113 #endif