1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
| #ifndef RKLOG_HEADER
| #define RKLOG_HEADER
| #include "DefineHeader.h"
|
| class CRKLog
| {
| public:
| bool GetEnableLog();
| void SetEnableLog(bool bEnable);
| property<CRKLog, bool, READ_WRITE> EnableLog;
| property<CRKLog, tstring, READ_ONLY> LogSavePath;
| CRKLog(bool enable = true);
| ~CRKLog();
| bool SaveBuffer(tstring fileName, PBYTE lpBuffer, DWORD dwSize);
| void PrintBuffer(tstring &strOutput, PBYTE lpBuffer, DWORD dwSize, UINT uiLineCount = 16);
| void Record(const tchar *lpFmt, ...);
|
| protected:
| private:
| bool m_enable;
| };
|
| #endif
|
|