📄 loghndlr.h
字号:
// LogHndlr.h : interface of the CLogHndlr class
//
/////////////////////////////////////////////////////////////////////////////
// Written by : T. Kulathu Sarma
// This file is part of Singleton application to demonstrate the concept of Singleton classes.
// This file is provided "as is" with no expressed or implied warranty.
#ifndef _LOG_HANDLER
#define _LOG_HANDLER
#include "MsgHndlr.h"
// Class declaration for CLogHndlr
class CLogHndlr : public CMsgHndlr
{
// Destructor
public :
virtual ~CLogHndlr();
DECLARE_DYNCREATE( CLogHndlr )
// Services - Message Handling method(s)
public :
virtual INT HandleMessage( LPCSTR, INT = INFO_TYPE, DWORD = 0 );
// Services - Log file Get/Set method(s)
public :
INT SetLogFile( LPCSTR );
INT GetLogFile( CString & );
protected :
// Protected constructor
CLogHndlr();
private :
// Private Copy constructor and Assignment operator, to hide it from clients
CLogHndlr( const CLogHndlr & );
CLogHndlr & operator = ( const CLogHndlr & );
// Attributes
protected :
CString m_csLogFile;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -