Unuk 1.0
src/libUnuk/Debug.h
Go to the documentation of this file.
00001 #ifndef _DEBUG_H_
00002 #define _DEBUG_H_
00003 #include <fstream>
00004 #include "string"
00005 
00006 class Debug {
00007 public:
00008   Debug(bool logToFile);
00009   ~Debug(void);
00010 
00011   // Log an error message.
00012   void message(std::string msg);
00013   void message(const char *msg, ...);
00014   static bool openLog(bool logToFile);
00015   static void closeLog(void);
00016   
00017   static Debug *logger;
00018 
00019 private: 
00020   std::ofstream logFile;
00021 };
00022 
00023 #endif // _DEBUG_H_
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines