22 Star 28 Fork 8

红薯/Apache Log Analyzer

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
ApacheLogAnalyzerDoc.h 2.11 KB
一键复制 编辑 原始数据 按行查看 历史
Winter Lau 提交于 2015-11-09 17:13 +08:00 . init
// ApacheLogAnalyzerDoc.h : interface of the CLogAnalyzerDoc class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_APACHELOGANALYZERDOC_H__323B720C_C900_402A_A491_E4C5CE41529A__INCLUDED_)
#define AFX_APACHELOGANALYZERDOC_H__323B720C_C900_402A_A491_E4C5CE41529A__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#pragma warning(disable:4786)
#include <string>
#include <list>
#include <map>
#include "ApacheLogAnalyzerView.h"
using namespace std;
#define STAT_BEGIN 1 //统计开始
#define STAT_REFRESH 2 //更新进度栏
#define STAT_FINISH 3 //统计完成
class CLogAnalyzerDoc : public CDocument
{
protected: // create from serialization only
CWinThread *m_hThread;
static CLogAnalyzerDoc *m_pThis;
static UINT StatApacheLogProc(LPVOID dwParam);
CLogAnalyzerDoc();
DECLARE_DYNCREATE(CLogAnalyzerDoc)
// Attributes
public:
map<string,__int64> m_hostVisitCount;
map<string,__int64> m_hostPageSize;
map<int,int> m_errorCode;
list<int> m_errorLines;
int m_visitCount;
__int64 m_totalPageSize;
BOOL m_bStop;
// Operations
public:
inline BOOL handleLine(int, string);
CLogAnalyzerView* GetView();
void ResetVariant();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CLogAnalyzerDoc)
public:
virtual BOOL OnNewDocument();
virtual void Serialize(CArchive& ar);
virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
virtual BOOL CanCloseFrame(CFrameWnd* pFrame);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CLogAnalyzerDoc();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
protected:
//{{AFX_MSG(CLogAnalyzerDoc)
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_APACHELOGANALYZERDOC_H__323B720C_C900_402A_A491_E4C5CE41529A__INCLUDED_)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/ld/Apache-Log-Analyzer.git
git@gitee.com:ld/Apache-Log-Analyzer.git
ld
Apache-Log-Analyzer
Apache Log Analyzer
master

搜索帮助