Subversion Repositories spk

Rev

Rev 7 | Rev 9 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7 Rev 8
Line 1... Line 1...
1
#pragma once
1
#pragma once
2
 
2
 
3
#include "../CyString.h"
3
#include "../Utils/StringList.h"
4
#include <vector>
4
#include <vector>
-
 
5
#include <stdarg.h>
-
 
6
 
5
 
7
 
6
typedef struct {
8
typedef struct {
7
	CyString	sText;
9
	Utils::String	sText;
8
} SLog;
10
} SLog;
9
 
11
 
10
class SPKEXPORT CLog
12
class SPKEXPORT CLog
11
{
13
{
12
public:
14
public:
Line 24... Line 26...
24
public:
26
public:
25
	static CLog *m_pInstance;
27
	static CLog *m_pInstance;
26
	static CLog *create();
28
	static CLog *create();
27
	static void release();
29
	static void release();
28
 
30
 
29
	static void log(const CyString &sLogText);
31
	static void log(const Utils::String &sLogText);
30
	static void logf(const char *sLogText, ...);
32
	static void logf(const char *sLogText, ...);
31
	void _log(const CyString &sLogText);
33
	void _log(const Utils::String &sLogText);
32
	void _logf(const char *sLogText, ...);
34
	void _logf(const char *sLogText, ...);
33
 
35
 
34
	virtual void displayLog(const CyString &sLogText) const;
36
	virtual void displayLog(const Utils::String &sLogText) const;
35
 
37
 
36
	void clear();
38
	void clear();
37
	SLog *firstLog();
39
	SLog *firstLog();
38
};
40
};
39
 
41
 
Line 50... Line 52...
50
	}
52
	}
51
 
53
 
52
	virtual ~CConsoleLog(void)
54
	virtual ~CConsoleLog(void)
53
	{
55
	{
54
	}
56
	}
55
	virtual void displayLog(const CyString &sLogText) const
57
	virtual void displayLog(const Utils::String &sLogText) const
56
	{
58
	{
57
		printf("%s", ((CyString)sLogText).c_str());
59
		printf("%s\n", sLogText.c_str());
58
	}
60
	}
59
};
61
};