OTPNitro
 All Classes Files Functions Variables Macros
page.h
Go to the documentation of this file.
1 #include <fstream>
2 #include <string.h>
3 
4 #ifndef _MSC_VER
5 # include <dirent.h>
6 #endif
7 
8 #ifdef __unix__
9 # include <sys/stat.h>
10 #elif __APPLE__
11 # include <sys/stat.h>
12 #endif
13 
14 #include "rand.h"
15 #include "otpnitro.h"
16 
17 using namespace std;
18 
22 class Page {
23  char REL_PATH[MAX_PATH];
24  int MAX_CHARS;
25  int MAX_PAGES;
26  string dirPath(string);
27  string filePath(int, string);
28 
29  public:
30  Page(void);
31  bool generate(string);
32  bool write(int, string, string);
33  int next(string);
34  bool burn(int,string);
35  string read(int, string);
36  string get();
37  string list();
38 };
39