#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_)