|
/////////////////////////////////////////////////////////////////////////////
/*
�����: �������� �.�.
����������: alxsoft@gazinter.net
*/
/////////////////////////////////////////////////////////////////////////////
#if !defined(ALX_DBFFIELDS_H__INCLUDED_)
#define ALX_DBFFIELDS_H__INCLUDED_
#include "DBFDef.h"
////////////////////////////////////////////////////////////////////////
// CDBFFieldInfo
typedef struct DBFField
{
CString m_strName; // ��� ����
TCHAR m_chType; // ��� ����
unsigned short m_nLen; // ������ ����
unsigned char m_nDec; // ������� �����
} Field;
////////////////////////////////////////////////////////////////////////
// CDBFFields
class ALX_EXT_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[](CString strNameFld);
private:
FIELD_REC* m_pFields; // ��������� �� ��������� �����
Field m_CurField; // ������� ����
short m_nFieldCount; // ���-�� �����
DBF_CHAR* m_pCurRec; // ��������� �� ������� ������
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(ALX_DBFFIELDS_H__INCLUDED_)
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
Year of birth - 1974.
Eeducation - was ended by Kaliningrad State University in 1997.
Now I work as the engineer-programmer in Kaliningrad (RUSSIA).