]> Shamusworld >> Repos - architektonas/blobdiff - src/base/debug.h
Removed unnecessary RS_ prefix from classes and whatnot.
[architektonas] / src / base / debug.h
index 771719b0ee81399e138251256d0b1f9f42a2d85a..dc53e73c7223161a91af6dce099babda416ca30d 100644 (file)
@@ -9,7 +9,7 @@
 #include <stdio.h>
 #include <QtCore>
 
-#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
                 *  <li>D_DEBUGGING: very verbose
                 * </ul>
                 */
-               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;
 };