database.h
来自「用VC写的一个数据库」· C头文件 代码 · 共 29 行
H
29 行
#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 + =
减小字号Ctrl + -
显示快捷键?