Debug.h
From Giona
(Difference between revisions)
Line 1: | Line 1: | ||
<pre> | <pre> | ||
+ | |||
+ | #ifndef DEBUG_H_ | ||
+ | #define DEBUG_H_ | ||
+ | |||
+ | #include <ctime> | ||
+ | #include <iostream> | ||
+ | #include "gionaTypes.h" | ||
+ | |||
+ | static bool debug_on; | ||
+ | |||
+ | class Debug | ||
+ | { | ||
+ | public: | ||
+ | |||
+ | static void setDebugOn(); | ||
+ | static void setDebugOff(); | ||
+ | static void debug(STRING txt); | ||
+ | private: | ||
+ | |||
+ | }; | ||
+ | |||
+ | #endif /*DEBUG_H_*/ | ||
Revision as of 16:51, 13 December 2007
#ifndef DEBUG_H_ #define DEBUG_H_ #include <ctime> #include <iostream> #include "gionaTypes.h" static bool debug_on; class Debug { public: static void setDebugOn(); static void setDebugOff(); static void debug(STRING txt); private: }; #endif /*DEBUG_H_*/