⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sh_log.h

📁 rsa算法打的一个包
💻 H
字号:
// SH_Log.h: interface for the SH_Log class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_SH_LOG_H__574B007B_7C53_446C_8D2C_2498661EFE38__INCLUDED_)
#define AFX_SH_LOG_H__574B007B_7C53_446C_8D2C_2498661EFE38__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "SH_Object.h"

#define     LOG_TO_NONE     0
#define     LOG_TO_OUTPUT   1
#define     LOG_TO_FILE     2
#define     LOG_TO_NET      4
#define     LOG_TO_ALL      (LOG_TO_OUTPUT|LOG_TO_FILE|LOG_TO_NET)


class AFX_EXT_CLASS SH_Log : public SH_Object  
{
public:
	SH_Log();
	SH_Log(int iKind,BOOL bShowTime = FALSE);
	virtual ~SH_Log();
    VOID Write(LPCTSTR fmt,...);

    VOID SetLogFile(LPCTSTR cszFile);
    VOID SetLogKind(int iKind);

    LPCTSTR GetLogFile();
    int     GetKind();
    VOID    Enable(BOOL bEnabled);
    VOID    ShowTime(BOOL bShow);

protected:
    VOID    WriteToOutput(LPCTSTR cszInfo);
    VOID    WriteToFile(LPCTSTR cszInfo);
    VOID    WriteToNet(LPCTSTR cszInfo);
    LPCTSTR GetCurrentTime();

private:
    int       m_iKind;
    CString   m_strLogFile;
    CString   m_strCurrent;
    char    * m_pBuffer;
    BOOL      m_bEnabled;
    BOOL      m_bShowTime;
};

#endif // !defined(AFX_SH_LOG_H__574B007B_7C53_446C_8D2C_2498661EFE38__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -