00001 #ifndef LOG_H
00002 #define LOG_H
00003
00004 #if (defined WIN32 || defined (_WIN32))
00005 # undef __WINDOWS__
00006 # define __WINDOWS__
00007 # undef __MSDOS__
00008 # define __MSDOS__
00009 # undef UNIX
00010 # undef unix
00011 # undef __unix__
00012 #endif
00013
00014 #if (defined WINDOWS || defined (_WINDOWS) || defined (__WINDOWS__))
00015 # undef __WINDOWS__
00016 # define __WINDOWS__
00017 # undef __MSDOS__
00018 # define __MSDOS__
00019 #endif
00020
00021 #include <string>
00022 #include <matrix/newmat.h>
00023 #include <ExampleModel.h>
00024 #include <ReferenceModel.h>
00025
00026 using namespace std;
00027 using namespace model;
00028
00047 class log {
00048
00049 public:
00050 static const char* m_filename;
00051 static bool m_debug;
00052 static void write(string log);
00053 static void write(string log, double data);
00054 static void write(string log, int data);
00055 static void write(string log, Matrix data);
00056 static void write(string log, ExampleModel data);
00057 static void write(string log, ReferenceModel data);
00058 static void setDebug(bool debug);
00059 static void clear();
00060 #ifdef __unix__
00061 static void _strtime(char* output);
00062 #endif
00063
00064 };
00065
00071 #endif //LOG_H
00072