diff options
Diffstat (limited to 'Database/database.h')
-rw-r--r-- | Database/database.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Database/database.h b/Database/database.h new file mode 100644 index 0000000..dffaaf5 --- /dev/null +++ b/Database/database.h @@ -0,0 +1,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 |