📄 clsrecordset.h
字号:
#ifndef __CLSRECORDSET_H__
#define __CLSRECORDSET_H__
#include "clsdbtools.h"
#ifdef _FORLINUX_
class ClsRecordset
#else
class __declspec(dllexport) ClsRecordset
#endif
{
public:
ClsRecordset(ClsDbTools *pDbt);
~ClsRecordset();
int getPosition(int *iPosition);
int Move(int iRowNum);
int MoveFirst();
int MoveLast();
int MovePrevious();
int MoveNext();
int getRecordCount(int *iRecordCount);
int getFieldCount(int *iFieldCount);
int getFieldName(int fieldnum, char *sFieldName);
int getFieldIndex(const char *fieldName, int *iFieldNum);
int getFieldValue(int fieldnum, void *pResult);
int getFieldValue(const char *fieldName, void *pResult);
int getRecordStr(char *sResult, char *sDelim);
int getRecord(char *sResult, char *sDelim);
int getErrorMsg(char *sError);
private:
#ifdef _FORLINUX_
GList *m_dbList;
#else
vector <record*> m_dbvector;
//vector <int>::size_type m_idbvector;
#endif
record *m_gpointer;
char **m_setcolName; //the field name
int m_pos; //the record index
int m_setcolNum; //the field number
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -