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/Int128Field.h | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Src/nde/Int128Field.h (limited to 'Src/nde/Int128Field.h') diff --git a/Src/nde/Int128Field.h b/Src/nde/Int128Field.h new file mode 100644 index 00000000..a358a6e9 --- /dev/null +++ b/Src/nde/Int128Field.h @@ -0,0 +1,38 @@ +/* --------------------------------------------------------------------------- + Nullsoft Database Engine + -------------------- + codename: Near Death Experience +--------------------------------------------------------------------------- */ + +/* --------------------------------------------------------------------------- + + Int128Field Class Prototypes + +--------------------------------------------------------------------------- */ + +#ifndef NULLSOFT_NDE_INT128FIELD_H +#define NULLSOFT_NDE_INT128FIELD_H + +#include "Field.h" + +class Int128Field : public Field +{ +protected: + 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); + virtual bool ApplyFilter(Field *Data, int op); + void InitField(void); + char Value[16]; +public: + ~Int128Field(); + Int128Field(void *value); + Int128Field(); + void *GetValue(void); + void SetValue(const void *value); +}; + + + +#endif \ No newline at end of file -- cgit