git-svn-id: https://clonekeenplus.svn.sourceforge.net/svnroot/clonekeenplus/cgenius/trunk@218 4df4b0f3-56ce-47cb-b001-ed939b7d65a6
49 lines
939 B
C++
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_ */
|