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

📄 dbtestresu.h

📁 嵌入式系统PDA的流程
💻 H
字号:
#ifndef DBTESTRESU_H_HEADER_INCLUDED_C2879165
#define DBTESTRESU_H_HEADER_INCLUDED_C2879165
#include "DBOpersBase.h"

class TestContent;
class SysTime;
//##ModelId=3D572E8A01F7
//##Documentation
//## 对测试结果表进行操作的类
class DBTestResu : public DBOpersBase
{
  protected:
	virtual CHAR* GetTableName();
	virtual UWORD GetFieldCnt();

  private:

	//static member to record the number.

	static SHORT m_iNewNum;

	static SHORT m_iTotalNum;

  public:
	SHORT GetRecCnt();

	//overland DelRec, only for count the number of recorder.
	Err DelRec(
        //##Documentation
        //## 记录ID号
        SHORT iRecID);

    //##Documentation
    //## 表中记录是否已达最大条数
    virtual BOOLEAN IsFull();

	enum
	{
		IS_NEW		= 0,
		RECV_TIME	= 1,
		CONTENT		= 2,
		SEND_TIME	= 3,

		FIELD_COUNT	= 4,

		RECV_TIME_LEN = 20,

		MAX_REC_COUNT = 30,
	};

	SHORT AddTestRec(TestContent *pTestContent, SysTime *SendTime);

    SHORT GetNewCnt();

    Err SetIsNewFlag(SHORT iRecID, BOOLEAN isNew = TRUE);

    Err GetIsNewFlag(SHORT iRecID, BOOLEAN *isNew);

    Err GetRecvTime(SHORT iRecID, CHAR* pszTime);

	Err GetContent(SHORT iRecID, TestContent *pTestContent);
};

#endif /* DBTESTRESU_H_HEADER_INCLUDED_C2879165 */

⌨️ 快捷键说明

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