X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fbase%2Fdebug.h;h=dc53e73c7223161a91af6dce099babda416ca30d;hb=e1d1cacbb43055988d0d9db632fdf05c0bea9543;hp=771719b0ee81399e138251256d0b1f9f42a2d85a;hpb=3239ef39dcee08fa6e8cd68cdf2727fc68cc7a8c;p=architektonas diff --git a/src/base/debug.h b/src/base/debug.h index 771719b..dc53e73 100644 --- a/src/base/debug.h +++ b/src/base/debug.h @@ -9,7 +9,7 @@ #include #include -#define RS_DEBUG RS_Debug::instance() +#define DEBUG Debug::instance() /** * Debugging facilities. @@ -17,7 +17,7 @@ * @author James Hammons * @author Andrew Mustun */ -class RS_Debug +class Debug { public: /** @@ -33,33 +33,33 @@ class RS_Debug *
  • D_DEBUGGING: very verbose * */ - enum RS_DebugLevel { D_NOTHING, - D_CRITICAL, - D_ERROR, - D_WARNING, - D_NOTICE, - D_INFORMATIONAL, - D_DEBUGGING }; + enum DebugLevel { D_NOTHING, + D_CRITICAL, + D_ERROR, + D_WARNING, + D_NOTICE, + D_INFORMATIONAL, + D_DEBUGGING }; private: - RS_Debug(); + Debug(); public: - static RS_Debug * instance(); + static Debug * instance(); static void deleteInstance(); - void setLevel(RS_DebugLevel level); - RS_DebugLevel getLevel(); - void print(RS_DebugLevel level, const char * format ...); + void setLevel(DebugLevel level); + DebugLevel getLevel(); + void print(DebugLevel level, const char * format ...); void print(const char * format ...); void printUnicode(const QString & text); void timestamp(); void setStream(FILE * s); private: - static RS_Debug * uniqueInstance; + static Debug * uniqueInstance; - RS_DebugLevel debugLevel; + DebugLevel debugLevel; FILE * stream; };