📄 table.h
字号:
/* Copyright(C) 1999, 2000 by JiangSu Bell Software CO.,LTD. */
/*
Name: table.h Version: 1.0.0
Created by HanBing Date: 2000-08-08
Comment: Our group defining all base-class sets
Modified:
1) 2000-08-08 HanBing - Create;
*/
#ifndef __TABLE__
#define __TABLE__
class CTable
{
public:
CTable( XW_Connection& conn = DefaultConnect );
CTable( CTable& Tab );
~CTable();
long QuerybyIndex( T_LIST<CField>& Ind );
long Query( char *condition = NULL );
long Next();
int Insert();
int Update();
int Delete();
void SetTableName( const char* name );
inline const char* Name()
{
return TableName;
}
CField& Field( const char* name );
inline void GoFirst()
{
Fields.GoHead();
}
inline CField* NextField()
{
return Fields.Next();
}
inline CField* Current()
{
return Fields.Current();
}
inline XW_Connection& Connect()
{
return *connect;
}
protected:
CTable& operator = ( CTable& Tab );
T_LIST<CField> Fields;
char *TableName;
long nRow;
private:
XW_Connection *connect;
Cursor QueryCursor;
Cursor InsertCursor;
Cursor UpdateCursor;
Cursor DeleteCursor;
char *pcSQL;
char *pcIndex;
};
#endif __TABLE__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -