www.pudn.com > VC++-develop-GIS.rar > DataBaseSet.h


#if !defined(AFX_DATABASESET_H__2E69F1D4_2188_11D3_B434_CAB6E5000000__INCLUDED_) 
#define AFX_DATABASESET_H__2E69F1D4_2188_11D3_B434_CAB6E5000000__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// DataBaseSet.h : header file 
// 
 
///////////////////////////////////////////////////////////////////////////// 
// CDataBaseSet recordset 
 
class CDataBaseSet : public CRecordset 
{ 
public: 
	CDataBaseSet(CDatabase* pDatabase = NULL); 
	DECLARE_DYNAMIC(CDataBaseSet) 
 
protected: 
	CString m_strCondition[30];	//用来存储查询条件,可以最多存储30个查询条件 
	short m_NumbStr;		//存储的查询条件的数目 
public: 
	BOOL AddStr(CString m_str); 
	BOOL ModifyStr(int Index,CString m_str); 
	BOOL DeleteStr(int Index); 
	BOOL GetStr(int Index,CString& m_str); 
 
// Field/Param Data 
	//{{AFX_FIELD(CDataBaseSet, CRecordset) 
	//}}AFX_FIELD 
 
	virtual int GetID()=0; 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CDataBaseSet) 
	//}}AFX_VIRTUAL 
 
// Implementation 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
}; 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_DATABASESET_H__2E69F1D4_2188_11D3_B434_CAB6E5000000__INCLUDED_)