blob: 8b66d315bdad82e707f16dcdebe51e4a5d0b578d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
/* ---------------------------------------------------------------------------
Nullsoft Database Engine
--------------------
codename: Near Death Experience
--------------------------------------------------------------------------- */
/* ---------------------------------------------------------------------------
IndexField Class Prototypes
--------------------------------------------------------------------------- */
#ifndef __INDEXFIELD_H
#define __INDEXFIELD_H
class IndexField : public Field
{
public:
IndexField(unsigned char id, int Pos, int type, const char *FieldName);
IndexField();
~IndexField();
virtual void ReadTypedData(const uint8_t *, size_t len);
virtual void WriteTypedData(uint8_t *, size_t len);
virtual size_t GetDataSize(void);
virtual int Compare(Field *Entry);
void InitField(void);
char *GetIndexName(void);
int TranslateToIndex(int Id, IndexField *index);
Index *index; // TODO: make protected
protected:
int Position;
int DataType;
char *Name;
};
#endif
|