Files
commandergenius/src/CLogFile.h
2009-08-09 13:52:35 +00:00

49 lines
939 B
C++

/*
* CLogFile.h
*
* Created on: 20.04.2009
* Author: gerstrong
*/
#ifndef CLOGFILE_H_
#define CLOGFILE_H_
#define REVISION "Commander Genius Release v0.3"
#include "CSingleton.h"
#define g_pLogFile CLogFile::Get()
#define MAX_BUFFER 1024
enum FONTCOLORS
{
BLACK,
RED,
GREEN,
BLUE,
PURPLE
};
class CLogFile : public CSingleton <CLogFile>
{
public:
CLogFile();
virtual ~CLogFile();
void CreateLogfile (const char *LogName);
void WriteTopic (const char *Topic, int Size);
void textOut (const char *Text);
void textOut (FONTCOLORS Color, const char *Text);
void textOut (FONTCOLORS Color, bool List, const char *Text);
void ftextOut (const char *Text, ...);
void ftextOut (FONTCOLORS Color, const char *Text, ...);
void fltextOut (FONTCOLORS Color, bool List, const char *Text, ...);
void FunctionResult (const char *Name, bool Result);
private:
FILE *m_Logfile;
};
#endif /* CLOGFILE_H_ */