]> Shamusworld >> Repos - architektonas/blobdiff - src/base/debug.h
Major refactor of Architektonas: Jettisoning old cruft.
[architektonas] / src / base / debug.h
diff --git a/src/base/debug.h b/src/base/debug.h
deleted file mode 100644 (file)
index dc53e73..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-#ifndef __DEBUG_H__
-#define __DEBUG_H__
-
-#ifdef hpux
-#include <sys/_size_t.h>
-#endif
-
-#include <iostream>
-#include <stdio.h>
-#include <QtCore>
-
-#define DEBUG Debug::instance()
-
-/**
- * Debugging facilities.
- *
- * @author James Hammons
- * @author Andrew Mustun
- */
-class Debug
-{
-       public:
-               /**
-                * Enum for debug levels. Only messages of the current
-                * or a higher level are printed.
-                * <ul>
-                *  <li>D_NOTHING:  nothing
-                *  <li>D_CRITICAL: critical messages
-                *  <li>D_ERROR:    errors
-                *  <li>D_WARNING:  warnings
-                *  <li>D_NOTICE:   notes
-                *  <li>D_INFORMATIONAL: infos
-                *  <li>D_DEBUGGING: very verbose
-                * </ul>
-                */
-               enum DebugLevel { D_NOTHING,
-                       D_CRITICAL,
-                       D_ERROR,
-                       D_WARNING,
-                       D_NOTICE,
-                       D_INFORMATIONAL,
-                       D_DEBUGGING };
-
-       private:
-               Debug();
-
-       public:
-               static Debug * instance();
-               static void deleteInstance();
-
-               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 Debug * uniqueInstance;
-
-               DebugLevel debugLevel;
-               FILE * stream;
-};
-
-#endif // __DEBUG_H__