1
0

IndexRecord.h 597 B

12345678910111213141516171819
  1. #pragma once
  2. #include <stdio.h>
  3. #include "Record.h"
  4. #include "../nu/PtrDeque2.h"
  5. class IndexRecord : public RecordBase
  6. {
  7. public:
  8. IndexRecord(int RecordPos, int insertionPoint, VFILE *FileHandle,Table *p);
  9. void BuildCollaboration();
  10. bool NeedFix();
  11. IndexField *GetIndexByName(const wchar_t *name);
  12. int GetColumnCount() { return Fields.size() - 1; }
  13. bool CheckIndexing(int v);
  14. int WriteFields(Table *ParentTable);
  15. int WriteIndex(Table *ParentTable);
  16. typedef bool (*FieldsWalker)(IndexRecord *record, Field *entry, void *context);
  17. void WalkFields(FieldsWalker callback, void *context);
  18. };