blob: 19d7f81282846144a85cbbab243f786aff5cc22c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#include <string.h>
#include <stdlib.h>
const size_t NAVIGATION_HISTORY_SIZE = 32;
class CNavigation
{
size_t history[NAVIGATION_HISTORY_SIZE];
size_t historystart, historyend, historycurrent;
public:
CNavigation() : historystart(0),historyend(0),historycurrent(0) {}
void saveposn(size_t posn);
void writeposn(size_t posn);
bool forward(size_t& loc);
bool back(size_t& loc);
void setSaveData(unsigned char*& data, unsigned short& len, unsigned char* src, unsigned short srclen);
void putSaveData(unsigned char*& src, unsigned short& srclen);
};
|