📄 database.h
字号:
#ifndef _DATABASE_H
#define _DATABASE_H
#define WIN32
#include "DataRecord.h"
#include "RecordFormat.h"
class CDataBase:public GUtSafeVector<CDataRecord>
{
public:
CDataBase(void);
CDataBase(GUtString name);
~CDataBase(void);
bool SetFormat(CRecordFormat &format);
CRecordFormat GetFormat();
bool AddRecord(CDataRecord &record);
bool DeleteRecord(int index);
bool InsertRecord(int index,CDataRecord &record);
bool SetRecord(int index);
GUtString GetName();
bool operator==(CDataBase &dataBase)const;
void AddFormatCell(GUtString &cell);
void AddRecordCell(GUtString &cell);
protected:
GUtString m_sName;
CRecordFormat m_Format;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -