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

📄 atcommands.h

📁 串口开发的另一种方式.rar
💻 H
字号:
#ifndef ATCOMMANDS_H_
#define ATCOMMANDS_H_

#include<vector>
using namespace std;

// contents of a command
typedef struct STCommand
{
	UINT iCommandCode;
	string strCommandName;
	string strExplain;
}*pSTCommand;

// AT-commands class
class CATCommand
{
public:
	CATCommand();
	virtual ~CATCommand();

// operations
public:
	BOOL LoadFile(TCHAR* FileName); /* Load a File */
	UINT AddCommand(STCommand *pCommand); /* Add a command */
	BOOL DeleteCommand(UINT commandCode); /* Delete a command */
	void ExecuteCommand(const TCHAR* strCommand); /* Execute a command */
	void ExecuteCommand(UINT commandCode); /* Execute a command of a code */
	void SaveFile(TCHAR* FileName); /* Save File */
	void Release(); /* Release the resource */

    // 06/06/16 ADDED BY LI BIN
	void AttachWin(CWnd* pWin, DWORD msg) { m_pWin = pWin; m_winMsg = msg; }

// Attributes 
public:
	vector<pSTCommand> Vcommands;
private:
	string myFileName;
	int iTotalLines;

    // 06/06/16 ADDED BY LI BIN
    CWnd* m_pWin;
	DWORD m_winMsg;
	
protected:
};

#endif

⌨️ 快捷键说明

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