📄 buildrunlistener.h
字号:
// BuildRunListener.h: interface for the CBuildRunListener class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_BUILDRUNLISTENER_H__08209313_BD10_4D3D_B393_35E66478E969__INCLUDED_)
#define AFX_BUILDRUNLISTENER_H__08209313_BD10_4D3D_B393_35E66478E969__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "config.h"
class CBuildRunListener
{
public:
CBuildRunListener();
virtual ~CBuildRunListener();
enum ExecStepMsg
{
msg_StartTest = 0,
msg_EndTest,
msg_StartGetSourceCode ,
msg_GetSourceCodeSuccessed ,
msg_GetSourceCodeFailed ,
msg_NotFindProjectFile ,
msg_StartComplierProject ,
msg_ComplierProjectSuccessed,
msg_ComplierFileException ,
msg_ComplierProjectFailed ,
msg_RunExeSuccessed ,
msg_RunExeFailed ,
msg_FindTestResultXMLFileSuccessed,
msg_NotFindTestResultXMLFile
};
virtual void Clean() = 0;
// 报告运行过程
virtual void ReportExecStepMsg(ExecStepMsg msg) = 0;
// 报告运行结果
virtual BOOL ReportExecResult(const CString &strTestResultFile,
CTestProjectType project) = 0;
void SetProjectDir(const CString &strProjectDir)
{
m_strProjectDir = strProjectDir;
}
protected:
CString GetMsgText(ExecStepMsg msg);
protected:
CString m_strProjectDir;
};
#endif // !defined(AFX_BUILDRUNLISTENER_H__08209313_BD10_4D3D_B393_35E66478E969__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -