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

📄 dbcontrol.h

📁 数据库模拟程序 实现控制台命令词法分析
💻 H
字号:
// DBControl.h: interface for the CDBControl class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_DBCONTROL_H__D909373F_C69E_4F35_92F9_58F0ADEF999F__INCLUDED_)
#define AFX_DBCONTROL_H__D909373F_C69E_4F35_92F9_58F0ADEF999F__INCLUDED_

#include "StdAfx.h"	// Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CDBControl  
{
public:
	int RewriteCiDian();
	int RewriteIndexFile();
	int CDBControl::ReadFromCiDian(long indexID, Data &data);
	int ReadFromCiDian(const IndexForCiDian &index, Data &data);
	int InsertIntoValue(CString strCmd, Word word[], int len);
	int Select();
	long findInIndexFile(IndexForCiDian &findIndex);
	int Drop(CString  CmdLine, Word word[], int LenOfWord);
	void ReadFromIndex();
	int CDBControl::ReadFromIndex(long indexID, IndexForCiDian &index);
	int len;
	Word* word;
	CDBControl(CString str, Word *word, int LenOfWord);
	void CheckCMD(int cmdType);
	int indexArray_len;
	int dataArray_len;
	int initTable();
	Data data;
	IndexForCiDian *indexArray;
	int AddToDataCiDian(const Data &dataFile, long &start);
	int AddToIndex_ForCiDian(const IndexForCiDian &index);
	int isExistTheKey(CString str);
	CString m_strCmd;
	int SelectFrom(CString  CmdLine, Word word[], int LenOfWord);
	int CreateTable(CString  CmdLine, Word word[], int LenOfWord);
	CDBControl();
	virtual ~CDBControl();

};

#endif // !defined(AFX_DBCONTROL_H__D909373F_C69E_4F35_92F9_58F0ADEF999F__INCLUDED_)

⌨️ 快捷键说明

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