aboutsummaryrefslogtreecommitdiff
path: root/Src/nde/android/IndexRecord.h
blob: f3be2bde9608dd71377f932fd9ba77379202e7d3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once
/*
Android (linux) implementation
*/
#include <stdio.h>
#include "Record.h"
#include <nu/PtrDeque2.h>
class IndexField;
class IndexRecord : public RecordBase
{
public:
	IndexRecord(int RecordPos, int insertionPoint, VFILE *FileHandle, Table *p);
	void BuildCollaboration();
	bool NeedFix();
	IndexField *GetIndexByName(const char *name);
	int GetColumnCount() { return Fields.size() - 1; }
	bool CheckIndexing(int v);
	int WriteFields(Table *ParentTable);
	int WriteIndex(Table *ParentTable);
	typedef bool (*FieldsWalker)(IndexRecord *record, Field *entry, void *context);
	void WalkFields(FieldsWalker callback, void *context);
};