IndexRecord.h 574 B

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