winamp/Src/nde/osx/IndexField.h

37 lines
1.1 KiB
C
Raw Permalink Normal View History

2024-09-24 13:54:57 +01:00
/* ---------------------------------------------------------------------------
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, CFStringRef 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);
CFStringRef GetIndexName(void);
int TranslateToIndex(int Id, IndexField *index);
Index *index; // TODO: make protected
protected:
int Position;
int DataType;
CFStringRef Name;
};
#endif