blob: dffaaf5693fe6df1d365e866fe4c0f4be5cc9d81 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef __DATABASE_H__
#define __DATABASE_H__
#include "database-types.h"
#include "database-segment.h"
#include "database-internal.h"
class Database : public Base {
public:
Database();
~Database();
DatabaseCell * getStart() { return start; }
DatabaseCell * getEnd() { return end; }
void setStart(DatabaseCell * newStart) { start = newStart; }
void setEnd(DatabaseCell * newEnd) { end = newEnd; }
Segment * getSegment(Uint32 id);
Uint32 GetNextSegId();
private:
DatabaseCell * start, * end;
};
#endif
|