mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-18 13:05:46 -04:00
Initial community commit
This commit is contained in:
37
Src/nde/win/IndexField.h
Normal file
37
Src/nde/win/IndexField.h
Normal file
@ -0,0 +1,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 wchar_t *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);
|
||||
|
||||
wchar_t *GetIndexName(void);
|
||||
int TranslateToIndex(int Id, IndexField *index);
|
||||
Index *index; // TODO: make protected
|
||||
protected:
|
||||
int Position;
|
||||
int DataType;
|
||||
wchar_t *Name;
|
||||
};
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user