44 lines
774 B
C++
44 lines
774 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_)
|
|
|