mydata.h

来自「使用VC6开发 通过并口操作IIC 使用winio驱动操作并口」· C头文件 代码 · 共 49 行

H
49
字号
// MyData.h: interface for the CMyData class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_MYDATA_H__8AEF1A40_38D4_4832_8139_C88C3F71510C__INCLUDED_)
#define AFX_MYDATA_H__8AEF1A40_38D4_4832_8139_C88C3F71510C__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <vector>
using namespace std;

class Row{
public:
	int nReg;
	BYTE Value[260];
	CString Name;
	CString Note;
	Row();
	virtual ~Row();
};

class CMyData  
{
public:
	void DeleteRow(int row);
	int GetRowLength(int row);
	void ClearAll();
	BYTE GetValue(int row);
	int AddRow();
	int GetSize();
	CString GetRow(int row);
	int AddRow(Row newRow);
	int AddRow(CString str);
	void SetValue(int Row,int Column,BYTE value);
	void SetNote(int row,CString note);
	void SetName(int row,CString name);
	BYTE GetValue(int Row,int Column);
	CString GetNote(int row);
	CString GetName(int row);
	CMyData();
	virtual ~CMyData();
private:
	vector<Row> List;
};

#endif // !defined(AFX_MYDATA_H__8AEF1A40_38D4_4832_8139_C88C3F71510C__INCLUDED_)

⌨️ 快捷键说明

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