minetest-mapper-cpp/db.h

25 lines
506 B
C
Raw Normal View History

2014-03-05 12:41:27 -08:00
#ifndef _DB_H
#define _DB_H
2014-03-09 04:32:13 -07:00
#include <stdint.h>
2014-03-05 12:41:27 -08:00
#include <vector>
#include <string>
2014-03-09 04:32:13 -07:00
#include <utility>
2014-03-05 12:41:27 -08:00
#include "types.h"
#include "BlockPos.h"
2014-03-05 12:41:27 -08:00
class DB {
public:
typedef std::pair<BlockPos, ustring> Block;
typedef std::vector<BlockPos> BlockPosList;
virtual const BlockPosList &getBlockPos()=0;
virtual int getBlocksUnCachedCount(void)=0;
virtual int getBlocksCachedCount(void)=0;
virtual int getBlocksReadCount(void)=0;
virtual Block getBlockOnPos(const BlockPos &pos)=0;
2014-03-05 12:41:27 -08:00
};
#endif // _DB_H