From 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d Mon Sep 17 00:00:00 2001 From: Jef Date: Tue, 24 Sep 2024 14:54:57 +0200 Subject: Initial community commit --- Src/nde/osx/IndexField.h | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Src/nde/osx/IndexField.h (limited to 'Src/nde/osx/IndexField.h') diff --git a/Src/nde/osx/IndexField.h b/Src/nde/osx/IndexField.h new file mode 100644 index 00000000..faf6c7cb --- /dev/null +++ b/Src/nde/osx/IndexField.h @@ -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, 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 \ No newline at end of file -- cgit