X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fbase%2Fdebug.h;fp=src%2Fbase%2Fdebug.h;h=0000000000000000000000000000000000000000;hb=9f6ad3fe0b9cb30115a5d38e8af3aebed0d70c08;hp=dc53e73c7223161a91af6dce099babda416ca30d;hpb=43c13b052d069ba435277d93867380d00c04931f;p=architektonas diff --git a/src/base/debug.h b/src/base/debug.h deleted file mode 100644 index dc53e73..0000000 --- a/src/base/debug.h +++ /dev/null @@ -1,66 +0,0 @@ -#ifndef __DEBUG_H__ -#define __DEBUG_H__ - -#ifdef hpux -#include -#endif - -#include -#include -#include - -#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. - *
    - *
  • D_NOTHING: nothing - *
  • D_CRITICAL: critical messages - *
  • D_ERROR: errors - *
  • D_WARNING: warnings - *
  • D_NOTICE: notes - *
  • D_INFORMATIONAL: infos - *
  • D_DEBUGGING: very verbose - *
- */ - 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__