Files
envi-code/SourceCode/Code2026/Dimension/DBFFields.h
T

43 lines
781 B
C++
Raw Normal View History

2026-10-04 00:04:20 +08:00
#if !defined(_DBFFIELDS_H__INCLUDED_)
2026-09-28 15:28:50 +08:00
#define _DBFFIELDS_H__INCLUDED_
#include "DBFDef.h"
#include "TDbfString.h"
typedef struct DBFField
{
CTDbfString m_strName;
char m_chType;
unsigned short m_nLen;
unsigned char m_nDec;
2026-10-04 00:04:20 +08:00
} _Field_; // 与tch_untility内冲突
2026-09-28 15:28:50 +08:00
class CDBFFields
{
friend class CDBFTableDef;
friend class CDBFRecordset;
friend class CDBFCursorset;
friend class CDBFMemCursorset;
public:
CDBFFields();
~CDBFFields();
short GetFieldCount();
FIELD_REC* GetFieldRec(int nIndexFld) const;
_Field_& operator[](int nIndexFld);
_Field_& operator[](CTDbfString strNameFld);
private:
FIELD_REC* m_pFields;
_Field_ m_CurField;
short m_nFieldCount;
DBF_CHAR* m_pCurRec;
};
//{{AFX_INSERT_LOCATION}}
#endif // !defined(_DBFFIELDS_H__INCLUDED_)