Files
gjm 164968b62e chore
把非utf8-bom编码的cpp/h文件改为 utf8 bom 编码, msvc识别utf8编码时,如果不是bom格式的,会使用当前cp_oem来解码.
2026-10-04 00:04:20 +08:00

44 lines
781 B
C++

#if !defined(_DBFFIELDS_H__INCLUDED_)
#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;
} _Field_; // 与tch_untility内冲突
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_)