Files
commandergenius/src/CLogFile.h
gerstrong 8352242dc6 Main Changes:
- Added automatic frameskip support
- Improved Timers speed

git-svn-id: https://clonekeenplus.svn.sourceforge.net/svnroot/clonekeenplus/cgenius/trunk@6 4df4b0f3-56ce-47cb-b001-ed939b7d65a6
2009-06-07 11:44:08 +00:00

51 lines
947 B
C++

/*
* CLogFile.h
*
* Created on: 20.04.2009
* Author: gerstrong
*/
#ifndef CLOGFILE_H_
#define CLOGFILE_H_
#define REVISION "CloneKeenPlus Beta v0.2.9.1 (Commander Genius)"
#include <stdio.h>
#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 (int Color, const char *Text);
void textOut (int Color, bool List, const char *Text);
void ftextOut (const char *Text, ...);
void ftextOut (int Color, const char *Text, ...);
void ftextOut (int Color, bool List, const char *Text, ...);
void FunctionResult (const char *Name, bool Result);
private:
FILE *m_Logfile;
};
#endif /* CLOGFILE_H_ */