00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef NDEBUG_H
00023 #define NDEBUG_H
00024
00029 #include "nbaseoutput.h"
00030 #include "nstring.h"
00031 #include "ncolordefs.h"
00032
00036 class DllDeclSpec NDebug: public NBaseOutput {
00037 public:
00041 ~NDebug(void);
00042
00047 static NDebug print(void);
00048
00054 NDebug &operator<<(nint32 val);
00055
00061 NDebug &operator<<(nuint32 val);
00062
00068 NDebug &operator<<(nint64 val);
00069
00075 NDebug &operator<<(nuint64 val);
00076
00082 NDebug &operator<<(double d);
00083
00089 NDebug &operator<<(char c);
00090
00096 NDebug &operator<<(const NString &str);
00097
00103 NDebug &operator<<(const void *ptr);
00104
00113 NDebug &operator<<(const char *str);
00114
00115 protected:
00119 NDebug(void);
00120
00121 void print(int val);
00122 void print(double d);
00123 void print(char c);
00124 void print(const NString &str);
00125 void println(const NString &str);
00126
00127 };
00128
00129 #endif // NDEBUG_H