dbtestresu.h
来自「嵌入式系统PDA的流程」· C头文件 代码 · 共 65 行
H
65 行
#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 + =
减小字号Ctrl + -
显示快捷键?