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

📄 grep.h

📁 一个完全使用MFC框架开发的C++编译器的代码。功能十分强大可以编译大型程序。
💻 H
字号:
// ---- grep.h
#ifndef GREP_H
#define GREP_H

#include "GrepInput.h"
#include "GrepResult.h"
#include "ConsoleApp.h"

class Grep	{
	static Grep* pGrep;
	const int grepcount;
	enum GrepStatus { idle, starting, running, terminating, done };
	int grepstepper;
	static char* extensions[];
	GrepStatus status;
	bool m_bGrepInputCreated;	// true if grep input dialog has been created
	bool m_bGrepResultCreated;	// true if grep result dialog has been created
	UINT m_nGrepCount;			// # entries in grep log
	CString m_strParams;		// grep command line parameters
	std::vector<ErrorMessage> GrepLog;
	GrepResult* m_pdlgGrepResult;
	GrepInput* m_pdlgGrepInput;
	ConsoleApp* m_pConsoleApp;
	void RunGrep(const CString& params);
	void CollectMessages(DWORD bufct);
	static void Collect(DWORD bufct);
	static void Notify();
	void NotifyTermination();
public:
	Grep();
	~Grep();
	void OnGrep();
	void Stop();
	void SelectGrepLine(int nsel);
	bool IsRunning()
		{ return status == starting || status == running; }
};


#endif // GREP_H

⌨️ 快捷键说明

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