First real upload of the files used for developing
git-svn-id: https://clonekeenplus.svn.sourceforge.net/svnroot/clonekeenplus/cgenius/trunk@5 4df4b0f3-56ce-47cb-b001-ed939b7d65a6
This commit is contained in:
50
src/CLogFile.h
Normal file
50
src/CLogFile.h
Normal file
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* CLogFile.h
|
||||
*
|
||||
* Created on: 20.04.2009
|
||||
* Author: gerstrong
|
||||
*/
|
||||
|
||||
#ifndef CLOGFILE_H_
|
||||
#define CLOGFILE_H_
|
||||
|
||||
#define REVISION "CloneKeenPlus Beta v0.2.9.0 (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_ */
|
||||
Reference in New Issue
Block a user