Go to the documentation of this file.00001 #pragma once
00002 #include <io.h>
00003 #include <stdio.h>
00004
00008 class Log {
00009 public:
00010 virtual ~Log(){}
00011
00013 virtual void print(const wchar* text) = 0;
00014
00017 virtual void print(const wchar* text, const char* file, const int line) = 0;
00018
00021 virtual void println(const wchar* text) = 0;
00022
00026 virtual void println(const wchar* text, const char* file, const int line) = 0;
00027 };
00028
00031 class CmdLogger :
00032 public Log
00033 {
00034 public:
00035 CmdLogger(void);
00036 ~CmdLogger(void);
00037
00038 void print(const wchar* text);
00039 void print(const wchar* text, const char* file, const int line);
00040 void println(const wchar* text);
00041 void println(const wchar* text, const char* file, const int line);
00042 private:
00043 FILE* file;
00044 };
00045
00048 class DummyLogger :
00049 public Log
00050 {
00051 public:
00052 DummyLogger(void);
00053 ~DummyLogger(void);
00054
00055 void print(const wchar* text);
00056 void print(const wchar* text, const char* file, const int line);
00057 void println(const wchar* text);
00058 void println(const wchar* text, const char* file, const int line);
00059 };