5 #include <sys/_size_t.h>
12 #define RS_DEBUG RS_Debug::instance()
15 * Debugging facilities.
17 * @author Andrew Mustun
23 * Enum for debug levels. Only messages of the current
24 * or a higher level are printed.
26 * <li>D_NOTHING: nothing
27 * <li>D_CRITICAL: critical messages
29 * <li>D_WARNING: warnings
31 * <li>D_INFORMATIONAL: infos
32 * <li>D_DEBUGGING: very verbose
35 enum RS_DebugLevel { D_NOTHING,
47 static RS_Debug * instance();
48 static void deleteInstance();
50 void setLevel(RS_DebugLevel level);
51 RS_DebugLevel getLevel();
52 void print(RS_DebugLevel level, const char * format ...);
53 void print(const char * format ...);
54 void printUnicode(const QString & text);
56 void setStream(FILE * s);
59 static RS_Debug * uniqueInstance;
61 RS_DebugLevel debugLevel;