2014-03-05 21:41:27 +01:00
|
|
|
#ifndef _DB_H
|
|
|
|
#define _DB_H
|
|
|
|
|
2014-03-09 12:32:13 +01:00
|
|
|
#include <stdint.h>
|
2014-03-05 21:41:27 +01:00
|
|
|
#include <vector>
|
|
|
|
#include <list>
|
|
|
|
#include <string>
|
2014-03-09 12:32:13 +01:00
|
|
|
#include <utility>
|
2014-03-05 21:41:27 +01:00
|
|
|
|
2014-03-09 12:32:13 +01:00
|
|
|
typedef std::pair<int64_t, std::basic_string<unsigned char> > DBBlock;
|
2014-03-05 21:41:27 +01:00
|
|
|
typedef std::list<DBBlock> DBBlockList;
|
|
|
|
|
|
|
|
class DB {
|
|
|
|
public:
|
2014-03-28 21:47:19 +01:00
|
|
|
virtual std::vector<int64_t> getBlockPos() = 0;
|
|
|
|
virtual DBBlockList getBlocksOnZ(int zPos) = 0;
|
2014-03-05 21:41:27 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _DB_H
|